aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-06-28 09:50:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-06-28 09:50:24 +0200
commite8e2a63053ba5440cc9d4f62d248443e2b775e13 (patch)
treef2c44f88690331ae7766e92ac8a8ee1aa0175eb2
parent0353fc1c717d9bf1c0a6d082dcc8cbd549214d01 (diff)
Make plugin adhoc prerequisite of driver
-rw-r--r--odb/buildfile13
1 files changed, 9 insertions, 4 deletions
diff --git a/odb/buildfile b/odb/buildfile
index fda17c7..7a44790 100644
--- a/odb/buildfile
+++ b/odb/buildfile
@@ -38,14 +38,19 @@ gxx_name = $regex.replace($gxx_name, '\\', '\\\\') # Escape back slashes.
import libs = libcutl%lib{cutl}
import libs += libstudxml%lib{studxml}
-# @@ We need to somehow make exe depend on plugin but not link it so that
-# when, for example, exe is imported, plugin is updated as well. Feels
-# related to those ad hoc inputs.
-
./: exe{odb} plugin{odb}
+# We need to make driver depend on plugin but not link it so that when, for
+# example, driver is imported, plugin is updated as well.
+#
+# We, however, don't want to install via the driver since the same driver
+# build could be used with multiple plugin builds (e.g., for different GCC
+# versions, which is something distribution packagers sometimes want to do).
+# @@ For this we will have to wait for operation-specific values support.
+#
exe{odb}: cxx{odb}
exe{odb}: libus{odb}: bin.whole = false
+exe{odb}: plugin{odb}: include = adhoc
plugin{odb}: libus{odb}