aboutsummaryrefslogtreecommitdiff
path: root/brep/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-14 13:49:32 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-14 13:49:32 +0200
commit8f2a63aa4e0e047154b09c7d0fd0f392bdf46f44 (patch)
tree6e9d2074d207e5406a374795d5a31b1439d46a5f /brep/buildfile
parent6e26a9508ec884e8efa8da16b31a8c784aa98c7e (diff)
Use new build2 features to handle apache modules (mod_ prefix, etc)
Diffstat (limited to 'brep/buildfile')
-rw-r--r--brep/buildfile14
1 files changed, 7 insertions, 7 deletions
diff --git a/brep/buildfile b/brep/buildfile
index c410763..1cdb864 100644
--- a/brep/buildfile
+++ b/brep/buildfile
@@ -4,12 +4,12 @@
using cli
-# @@ The target should actually be mod_brep.so, not libmod_brep.so. Such
-# customization is not supported yet.
-#
-./: libso{brep mod_brep}
+define mod: libso
+mod{*}: bin.libprefix = mod_
+
+./: libso{brep} mod{brep}
-# brep library build rules.
+# lib{brep}
#
import libs += libodb%lib{odb}
import libs += libodb-pgsql%lib{odb-pgsql}
@@ -20,7 +20,7 @@ brep = cxx{package package-traits package-odb}
libso{brep}: $brep $libs
libso{brep}: cxx.export.poptions = -I$out_root -I$src_root
-# mod_brep library build rules.
+# mod{brep}
#
import libs += libstudxml%lib{studxml}
@@ -31,7 +31,7 @@ brep = cxx{services diagnostics module repository-root package-search \
web = ../web/apache/cxx{request service} ../web/cxx{mime-url-encoding}
-libso{mod_brep}: $brep $web libso{brep} $libs
+mod{brep}: $brep $web libso{brep} $libs
# Set option prefix to the empty value to handle all unknown request parameters
# uniformly with a single catch block.