aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-05 17:43:33 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-05 22:49:26 +0300
commit8a5d81391b1d52df0bab539b010a0922a2a9110b (patch)
tree0a49f211a6e405c0d23ef5c9556ca853745e0f99
parent4c224c4e06a72ff6eef8eeaf079b1f0ede1bed67 (diff)
Align with latest bdep-new
-rw-r--r--libstudxml/buildfile47
1 files changed, 30 insertions, 17 deletions
diff --git a/libstudxml/buildfile b/libstudxml/buildfile
index fe0c856..cc5a1ca 100644
--- a/libstudxml/buildfile
+++ b/libstudxml/buildfile
@@ -28,20 +28,14 @@ lib{studxml}: details/genx/{h{*} c{*} doc{LICENSE README}}
# 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)
-
-details/genx/doc{README}@./: install = false
-details/genx/doc{LICENSE}@./: install = doc/GENX-LICENSE
+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{studxml}: bin.lib.version = @"-$version.project_id"
-else
- lib{studxml}: bin.lib.version = @"-$version.major.$version.minor"
-
if ($c.class == 'gcc')
{
# Disable warnings that pop up with -Wextra (e.g, -fimplicit-fallthrough)
@@ -51,19 +45,38 @@ if ($c.class == 'gcc')
details/genx/ c.coptions += -Wno-extra
}
-# We are a mixed C/C++ library, though C is implementatio-only, kind of: we
+# We are a mixed C/C++ library, though C is implementation-only, kind of: we
# need headers but not symbols.
#
cc.poptions =+ "-I$out_root" "-I$src_root"
+
obja{*}: cc.poptions += -DLIBSTUDXML_STATIC_BUILD
objs{*}: cc.poptions += -DLIBSTUDXML_SHARED_BUILD
+# Export options.
+#
lib{studxml}: cc.export.poptions = "-I$out_root" "-I$src_root"
+
liba{studxml}: cc.export.poptions += -DLIBSTUDXML_STATIC
libs{studxml}: cc.export.poptions += -DLIBSTUDXML_SHARED
-# Install into the libstudxml/ subdirectory of, say, /usr/include/ recreating
-# subdirectories. Bold, I know.
+# 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.
#
-{h hxx ixx txx}{*}: install = include/libstudxml/
-{h hxx ixx txx}{*}: install.subdirs = true
+if $version.pre_release
+ lib{studxml}: bin.lib.version = @"-$version.project_id"
+else
+ lib{studxml}: bin.lib.version = @"-$version.major.$version.minor"
+
+# Install into the libstudxml/ subdirectory of, say, /usr/include/
+# recreating subdirectories.
+#
+{h hxx ixx txx}{*}:
+{
+ install = include/libstudxml/
+ install.subdirs = true
+}
+
+details/genx/doc{README}@./: install = false
+details/genx/doc{LICENSE}@./: install = doc/GENX-LICENSE