From c79ba5c1b93aaad4c4bcaff1cb147eba24f2d4c4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 5 Mar 2019 15:06:58 +0300 Subject: Align with latest bdep-new --- odb/buildfile | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/odb/buildfile b/odb/buildfile index 3b8f0aa..4a9a7cc 100644 --- a/odb/buildfile +++ b/odb/buildfile @@ -16,32 +16,45 @@ details/shared-ptr/{hxx ixx txx cxx}{*} \ # clean results in a state identical to distributed). # hxx{version-build2}: in{version-build2} $src_root/manifest -hxx{version-build2}: dist = true -hxx{version-build2}: clean = ($src_root != $out_root) +hxx{version-build2}: +{ + 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{odb}: bin.lib.version = @"-$version.project_id" -else - lib{odb}: bin.lib.version = @"-$version.major.$version.minor" - cxx.poptions =+ "-I$out_root" "-I$src_root" -DLIBODB_BUILD2 + obja{*}: cxx.poptions += -DLIBODB_STATIC_BUILD objs{*}: cxx.poptions += -DLIBODB_SHARED_BUILD +# Export options. +# lib{odb}: cxx.export.poptions = "-I$out_root" "-I$src_root" -DLIBODB_BUILD2 + liba{odb}: cxx.export.poptions += -DLIBODB_STATIC libs{odb}: cxx.export.poptions += -DLIBODB_SHARED +# 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{odb}: bin.lib.version = @"-$version.project_id" +else + lib{odb}: bin.lib.version = @"-$version.major.$version.minor" + # Install into the odb/ subdirectory of, say, /usr/include/ recreating # subdirectories. # install_include = [dir_path] include/odb/ -{hxx ixx txx}{*}: install = $install_include -{hxx ixx txx}{*}: install.subdirs = true +{hxx ixx txx}{*}: +{ + install = $install_include + install.subdirs = true +} if ($cxx.target.class != "windows") details/win32/*: install = false -- cgit v1.1