From a1f0c148dde9483a192afa34a9dea47219b974a6 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Mar 2019 11:33:59 +0300 Subject: Align with latest bdep-new --- libbpkg/buildfile | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/libbpkg/buildfile b/libbpkg/buildfile index 00b2b1f..82aac78 100644 --- a/libbpkg/buildfile +++ b/libbpkg/buildfile @@ -11,27 +11,44 @@ lib{bpkg}: {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{bpkg}: bin.lib.version = @"-$version.project_id" -else - lib{bpkg}: bin.lib.version = @"-$version.major.$version.minor" - cxx.poptions =+ "-I$out_root" "-I$src_root" + obja{*}: cxx.poptions += -DLIBBPKG_STATIC_BUILD objs{*}: cxx.poptions += -DLIBBPKG_SHARED_BUILD -lib{bpkg}: cxx.export.poptions = "-I$out_root" "-I$src_root" +# Export options. +# +lib{bpkg}: +{ + cxx.export.poptions = "-I$out_root" "-I$src_root" + cxx.export.libs = $int_libs +} + liba{bpkg}: cxx.export.poptions += -DLIBBPKG_STATIC libs{bpkg}: cxx.export.poptions += -DLIBBPKG_SHARED -lib{bpkg}: 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{bpkg}: bin.lib.version = @"-$version.project_id" +else + lib{bpkg}: bin.lib.version = @"-$version.major.$version.minor" -# Install into the libbpkg/ subdirectory of, say, /usr/include/. +# Install into the libbpkg/ subdirectory of, say, /usr/include/ +# recreating subdirectories. # -{hxx ixx txx}{*}: install = include/libbpkg/ +{hxx ixx txx}{*}: +{ + install = include/libbpkg/ + install.subdirs = true +} -- cgit v1.1