aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-17 19:31:37 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-17 19:31:37 -0300
commite0c29962e6f334452f0c9db2caaf6ed18065de85 (patch)
treecee27801c196fbcacf6130ad64216af133b555dd /main.cpp
The End Is the Beginning Is the End
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp38
1 files changed, 38 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
new file mode 100644
index 000000000..8700551f5
--- /dev/null
+++ b/main.cpp
@@ -0,0 +1,38 @@
+/*
+ * This file is part of the Shiboken Python Binding Generator project.
+ *
+ * Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+ *
+ * Contact: PySide team <contact@pyside.org>
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ *
+ */
+
+#include <QtCore/QCoreApplication>
+#include <apiextractor/apiextractor.h>
+#include "headergenerator.h"
+#include "cppgenerator.h"
+
+int main(int argc, char *argv[])
+{
+ QCoreApplication app(argc, argv); // needed by qxmlpatterns
+
+ ApiExtractor extractor(argc, argv);
+ extractor.addGenerator(new HeaderGenerator);
+ extractor.addGenerator(new CppGenerator);
+ return extractor.exec();
+}
+