diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-12-04 14:21:55 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-12-04 14:21:55 +0300 |
commit | 1e6cc82ee646189923037bf0dbd0e3d35e6da2a4 (patch) | |
tree | 183e6e9c5be22e08879337614f155ca5194de7ee | |
parent | 6b8768ab7fa9b051939932f5874da35c9e8fda49 (diff) |
Align with latest bdep-new
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | libhello/libhello/buildfile | 26 |
2 files changed, 21 insertions, 7 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..392d774 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.bdep/ + diff --git a/libhello/libhello/buildfile b/libhello/libhello/buildfile index 099058d..af42e5e 100644 --- a/libhello/libhello/buildfile +++ b/libhello/libhello/buildfile @@ -9,21 +9,30 @@ lib{hello}: {hxx ixx txx cxx}{** -version} hxx{version} $imp_libs $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) +} +# Build options. +# cxx.poptions =+ "-I$out_root" "-I$src_root" obja{*}: cxx.poptions += -DLIBHELLO_STATIC_BUILD objs{*}: cxx.poptions += -DLIBHELLO_SHARED_BUILD -lib{hello}: cxx.export.poptions = "-I$out_root" "-I$src_root" +# Export options. +# +lib{hello}: +{ + cxx.export.poptions = "-I$out_root" "-I$src_root" + cxx.export.libs = $int_libs +} liba{hello}: cxx.export.poptions += -DLIBHELLO_STATIC libs{hello}: cxx.export.poptions += -DLIBHELLO_SHARED -lib{hello}: 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. @@ -36,5 +45,8 @@ else # Install into the libhello/ subdirectory of, say, /usr/include/ # recreating subdirectories. # -{hxx ixx txx}{*}: install = include/libhello/ -{hxx ixx txx}{*}: install.subdirs = true +{hxx ixx txx}{*}: +{ + install = include/libhello/ + install.subdirs = true +} |