aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorLauro Neto <lauro.neto@openbossa.org>2009-09-03 10:38:55 -0300
committerLauro Neto <lauro.neto@openbossa.org>2009-09-03 10:41:28 -0300
commitb811be1ce4aa832ed7aa8542da535000924effa3 (patch)
treefa0853244e6129e38398e19dc7342df09e70513b /main.cpp
parent25b08270fed65b2ef6e93fc2687c12c900e26309 (diff)
Installs generator plugins in its own directory.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 1f6f76adc..c9bbfbd37 100644
--- a/main.cpp
+++ b/main.cpp
@@ -27,6 +27,7 @@
#include <iostream>
#include <apiextractor/apiextractor.h>
#include "boostpythongeneratorversion.h"
+#include "generator_plugin_dir.h"
#include "generator.h"
#if defined(Q_OS_WIN32)
@@ -120,7 +121,8 @@ int main(int argc, char *argv[])
// Try to load a generator
QString generatorSet = args.value("generatorSet");
if (!generatorSet.isEmpty()) {
- QLibrary plugin(generatorSet+"_generator");
+ QString generatorFile = QString(GENERATOR_PUGIN_DIR) + "/lib" + generatorSet + "_generator";
+ QLibrary plugin(generatorFile);
getGeneratorsFunc getGenerators = reinterpret_cast<getGeneratorsFunc>(plugin.resolve("getGenerators"));
if (getGenerators)
generators = getGenerators();