aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-03 19:29:54 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-03 19:29:54 -0300
commit74ad15b93b2c3816850acb702c669be8ce0fc4ab (patch)
treef98962c959afdbb7b0b6b02abc38098b62886bf6 /main.cpp
parent518028765c892b7a6a840cca92376ccc8b77b04c (diff)
- Merged boostpythongeneratorversion.h.in and generator_plugin_dir.h.in
into generatorrunnerconfig.h - Added some variables to FindGeneratorRunner.cmake * GENERATORRUNNER_PLUGIN_DIR The dir where the generator plugins should be installed. * GENERATORRUNNER_VERSION The generatorrunner current version.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.cpp b/main.cpp
index c9bbfbd37..bb852dbae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -26,8 +26,7 @@
#include <QLibrary>
#include <iostream>
#include <apiextractor/apiextractor.h>
-#include "boostpythongeneratorversion.h"
-#include "generator_plugin_dir.h"
+#include "generatorrunnerconfig.h"
#include "generator.h"
#if defined(Q_OS_WIN32)
@@ -113,7 +112,7 @@ int main(int argc, char *argv[])
GeneratorList generators;
if (args.contains("version")) {
- std::cout << "generator v" BOOSTPYTHONGENERATOR_VERSION << std::endl;
+ std::cout << "generator v" GENERATORRUNNER_VERSION << std::endl;
std::cout << "Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies)" << std::endl;
return EXIT_SUCCESS;
}
@@ -121,7 +120,7 @@ int main(int argc, char *argv[])
// Try to load a generator
QString generatorSet = args.value("generatorSet");
if (!generatorSet.isEmpty()) {
- QString generatorFile = QString(GENERATOR_PUGIN_DIR) + "/lib" + generatorSet + "_generator";
+ QString generatorFile = QString(GENERATORRUNNER_PUGIN_DIR) + "/lib" + generatorSet + "_generator";
QLibrary plugin(generatorFile);
getGeneratorsFunc getGenerators = reinterpret_cast<getGeneratorsFunc>(plugin.resolve("getGenerators"));
if (getGenerators)