From 8f2a63aa4e0e047154b09c7d0fd0f392bdf46f44 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 14 Dec 2015 13:49:32 +0200 Subject: Use new build2 features to handle apache modules (mod_ prefix, etc) --- brep/buildfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'brep/buildfile') 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. -- cgit v1.1