From d884732fd659f55d0de877777cb0a679bf341f97 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Mar 2019 13:28:08 +0300 Subject: Align with latest bdep-new --- libbbot/buildfile | 43 ++++++++++++++++++++++++++++++------------- 1 file 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 +} -- cgit v1.1