aboutsummaryrefslogtreecommitdiff
path: root/brep/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-14 13:03:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-23 13:53:50 +0200
commitbcd246076540a8353fa55fc0a5e19343c1a2dbc9 (patch)
tree9fe2c24ca33b3d670267a5cbc8c8c756589f359b /brep/buildfile
parent24903813d11813f8ff9ac906d23b21e6c33b981d (diff)
Implement package search service mockup
Diffstat (limited to 'brep/buildfile')
-rw-r--r--brep/buildfile28
1 files changed, 22 insertions, 6 deletions
diff --git a/brep/buildfile b/brep/buildfile
index 5340d22..9b64ed4 100644
--- a/brep/buildfile
+++ b/brep/buildfile
@@ -6,20 +6,36 @@ using cli
.: libso{brep brep-apache}
-import libs += libbpkg%lib{bpkg}
-import libs += libodb-pgsql%lib{odb-pgsql}
+# brep library build rules.
+#
import libs += libodb%lib{odb}
+import libs += libodb-pgsql%lib{odb-pgsql}
+import libs += libbpkg%lib{bpkg}
brep = cxx{package package-odb}
+
libso{brep}: $brep $libs
libso{brep}: cxx.export.poptions = -I$out_root -I$src_root
-brep = cxx{diagnostics module services search view shared-database} \
- cli.cxx{options}
-web = ../web/apache/cxx{request service}
+# brep-apache library build rules.
+#
+import libs += libstudxml%lib{studxml}
+
+brep = cxx{diagnostics module services package-search package-version-search \
+ shared-database} cli.cxx{options}
+web = ../web/apache/cxx{request service} ../web/cxx{mime-url-encoding}
+
libso{brep-apache}: $brep $web libso{brep} $libs
+# Set option prefix to the empty value to handle all unknown request parameters
+# uniformly with a single catch block.
+#
+# @@ Adding --option-prefix "" leads to appearing the following warnings
+# related to options _parse methed:
+# brep/options.cxx:663:33: warning: unused parameter ‘opt_mode’ [-Wunused-parameter]
+# ::cli::unknown_mode opt_mode,
+#
cli.options += -I $src_root --include-with-brackets --include-prefix brep \
---guard-prefix BREP --generate-file-scanner --suppress-usage
+--guard-prefix BREP --generate-file-scanner --suppress-usage --option-prefix ""
cli.cxx{options}: cli{options}