diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-03-05 13:28:08 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-03-05 13:28:08 +0300 |
commit | d884732fd659f55d0de877777cb0a679bf341f97 (patch) | |
tree | 43686b4bcd0c9cce8cfb3bcb34f0f37db5139863 | |
parent | baaa60433c0aac6121eadbcc495319463c709b95 (diff) |
Align with latest bdep-new
-rw-r--r-- | libbbot/buildfile | 43 |
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 +} |