aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-08 12:27:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-08 12:27:24 +0200
commit405fbdfff7c123a7c3081f3f501f4b82254e6957 (patch)
treeac2cc2cf3e865ce3ecabb44da88cbe11e272259b
parent00ba296b18211ccc6cdfc6b44468e923943a158e (diff)
Tweak buildfile
-rw-r--r--odb/buildfile14
1 files changed, 10 insertions, 4 deletions
diff --git a/odb/buildfile b/odb/buildfile
index e7e3f45..0dd11aa 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -2,15 +2,21 @@
# copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
# license : GNU GPL v3; see accompanying LICENSE file
+plugin_dir = $config.odb.plugin_dir
+
define plugin: libs
plugin{*}: bin.lib.prefix = # No lib prefix.
-plugin{*}: install = # @@ TODO
+
+# On Windows we want the plugin (odb.dll) to go into bin/ (default), next to
+# the driver (odb.exe) since failed that we won't be able to find libraries we
+# depend on.
+#
+if ($cxx.target.system != 'mingw32')
+ plugin{*}: install = $plugin_dir
import libs = libcutl%lib{cutl}
import libs += libstudxml%lib{studxml}
-plugin_dir = $config.odb.plugin_dir
-
./: exe{odb} plugin{odb}
exe{odb}: cxx{odb}
@@ -23,9 +29,9 @@ if ($cxx.target.system == 'mingw32')
libus{odb}: {hxx ixx txx cxx}{** -odb -options} {hxx ixx cxx}{options} $libs
+cxx.poptions += "-I$plugin_dir/include" -DODB_GCC_PLUGIN_DIR
cxx.poptions += -DODB_BUILD2 # @@ TMP while supporting other build systems.
-
# Don't install any of the plugin's headers.
#
{hxx ixx txx}{*}: install = false