summaryrefslogtreecommitdiff
path: root/print/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-08-30 19:50:41 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-08-30 19:50:41 +0300
commit2adca26721d5e6c73f1bf75a2cb16fddce591dcc (patch)
treecabb2fa6025b7ff85df1229a7fb059fa3bedd6d0 /print/buildfile
parent926050227af570ab57201de16e952b21dd9c0d34 (diff)
Build infrastructure update
Diffstat (limited to 'print/buildfile')
-rw-r--r--print/buildfile17
1 files changed, 15 insertions, 2 deletions
diff --git a/print/buildfile b/print/buildfile
index 20a7d60..7f5c4bb 100644
--- a/print/buildfile
+++ b/print/buildfile
@@ -1,8 +1,21 @@
-lib{print}: {hxx cxx}{print}
+lib{print}: {hxx cxx}{print} hxx{export}
+
+# For pre-releases use the complete version to make sure they cannot be used
+# in place of another pre-release or the final version.
+#
+if $abi_prerelease
+ lib{print}: bin.lib.version = @-$version
+else
+ lib{print}: bin.lib.version = @-$abi_major.$abi_minor
cxx.poptions += -I$src_root
+obja{*}: cxx.poptions += -DLIBPRINT_STATIC_BUILD
+objs{*}: cxx.poptions += -DLIBPRINT_SHARED_BUILD
+
lib{print}: cxx.export.poptions = -I$src_root
+liba{print}: cxx.export.poptions += -DLIBPRINT_STATIC
+libs{print}: cxx.export.poptions += -DLIBPRINT_SHARED
# Install into the print/ subdirectory of, say, /usr/include/.
#
-install.include = $install.include/print
+install.include = $install.include/print/