aboutsummaryrefslogtreecommitdiff
path: root/libbbot/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libbbot/buildfile')
-rw-r--r--libbbot/buildfile43
1 files changed, 30 insertions, 13 deletions
diff --git a/libbbot/buildfile b/libbbot/buildfile
index 2d1f8c1..0b56dcf 100644
--- a/libbbot/buildfile
+++ b/libbbot/buildfile
@@ -11,27 +11,44 @@ lib{bbot}: {hxx ixx txx cxx}{* -version} {hxx}{version} $int_libs
# clean results in a state identical to distributed).
#
hxx{version}: in{version} $src_root/manifest
-hxx{version}: dist = true
-hxx{version}: clean = ($src_root != $out_root)
+hxx{version}:
+{
+ dist = true
+ clean = ($src_root != $out_root)
+}
-# For pre-releases use the complete version to make sure they cannot be used
-# in place of another pre-release or the final version.
+# Build options.
#
-if $version.pre_release
- lib{bbot}: bin.lib.version = @"-$version.project_id"
-else
- lib{bbot}: bin.lib.version = @"-$version.major.$version.minor"
-
cxx.poptions =+ "-I$out_root" "-I$src_root"
+
obja{*}: cxx.poptions += -DLIBBBOT_STATIC_BUILD
objs{*}: cxx.poptions += -DLIBBBOT_SHARED_BUILD
-lib{bbot}: cxx.export.poptions = "-I$out_root" "-I$src_root"
+# Export options.
+#
+lib{bbot}:
+{
+ cxx.export.poptions = "-I$out_root" "-I$src_root"
+ cxx.export.libs = $int_libs
+}
+
liba{bbot}: cxx.export.poptions += -DLIBBBOT_STATIC
libs{bbot}: cxx.export.poptions += -DLIBBBOT_SHARED
-lib{bbot}: cxx.export.libs = $int_libs
+# For pre-releases use the complete version to make sure they cannot be used
+# in place of another pre-release or the final version. See the version module
+# for details on the version.* variable values.
+#
+if $version.pre_release
+ lib{bbot}: bin.lib.version = @"-$version.project_id"
+else
+ lib{bbot}: bin.lib.version = @"-$version.major.$version.minor"
-# Install into the libbbot/ subdirectory of, say, /usr/include/.
+# Install into the libbbot/ subdirectory of, say, /usr/include/
+# recreating subdirectories.
#
-{hxx ixx txx}{*}: install = include/libbbot/
+{hxx ixx txx}{*}:
+{
+ install = include/libbbot/
+ install.subdirs = true
+}