summaryrefslogtreecommitdiff
path: root/odb/odb/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'odb/odb/buildfile')
-rw-r--r--odb/odb/buildfile15
1 files changed, 13 insertions, 2 deletions
diff --git a/odb/odb/buildfile b/odb/odb/buildfile
index 34a6329..96eb95f 100644
--- a/odb/odb/buildfile
+++ b/odb/odb/buildfile
@@ -78,7 +78,19 @@ switch $cxx.target.system
plugin{odb}: cxx.loptions += -undefined dynamic_lookup
}
-libus{odb}: {hxx ixx txx cxx}{** -odb -options -pregenerated/**} $libs
+libus{odb}: {hxx ixx txx cxx}{** -odb -version -options -pregenerated/**} \
+ hxx{version} $libs
+
+# Include the generated version header into the distribution (so that we don't
+# pick up an installed one) and don't remove it when cleaning in src (so that
+# clean results in a state identical to distributed).
+#
+hxx{version}: in{version} $src_root/manifest
+hxx{version}:
+{
+ dist = true
+ clean = ($src_root != $out_root)
+}
# Build options.
#
@@ -86,7 +98,6 @@ libus{odb}: {hxx ixx txx cxx}{** -odb -options -pregenerated/**} $libs
#
cxx.poptions += "-I$plugin_dir/include"
cxx.poptions += "-DODB_GXX_NAME=\"$regex.replace($gxx_name, '\\', '\\\\')\""
-cxx.poptions += -DODB_BUILD2 # @@ TMP while supporting other build systems.
## Consumption build ($develop == false).
#