aboutsummaryrefslogtreecommitdiff
path: root/bpkg/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'bpkg/buildfile')
-rw-r--r--bpkg/buildfile7
1 files changed, 7 insertions, 0 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile
index b99d465..955e39d 100644
--- a/bpkg/buildfile
+++ b/bpkg/buildfile
@@ -12,8 +12,15 @@ lib{bpkg}: \
$libs
cxx.poptions =+ -I$src_root
+
lib{bpkg}: cxx.export.poptions = -I$src_root
+liba{bpkg}: cxx.export.poptions += -DLIBBPKG_STATIC
+libs{bpkg}: cxx.export.poptions += -DLIBBPKG_SHARED
+
+obja{*}: cxx.poptions += -DLIBBPKG_STATIC_BUILD
+objs{*}: cxx.poptions += -DLIBBPKG_SHARED_BUILD
+
# Install into the bpkg/ subdirectory of, say, /usr/include/.
#
install.include = $install.include/bpkg