aboutsummaryrefslogtreecommitdiff
path: root/mod/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-03-18 22:17:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-03-27 17:28:44 +0300
commit35359f038f571dc46de3d14af72a2bc911fb0a24 (patch)
treede3e89d678e78b9efc4d395274fd7ccc68f4a213 /mod/buildfile
parent8ad672cc7211952716ffe1fbf76c179b4f1149e3 (diff)
Implement brep-monitor
Diffstat (limited to 'mod/buildfile')
-rw-r--r--mod/buildfile31
1 files changed, 22 insertions, 9 deletions
diff --git a/mod/buildfile b/mod/buildfile
index 9300faf..ca46bc4 100644
--- a/mod/buildfile
+++ b/mod/buildfile
@@ -19,25 +19,38 @@ import libs += libbpkg%lib{bpkg}
import libs += libbbot%lib{bbot}
include ../libbrep/
-include ../web/
-mod{brep}: {hxx ixx txx cxx}{* -options} \
- {hxx ixx cxx}{ options} \
- ../libbrep/lib{brep} ../web/libus{web} $libs
+include ../web/xhtml/
+include ../web/server/
+
+./: mod{brep} {libue libus}{mod}
+
+libu_src = options-types types-parsers build-config
+
+mod{brep}: {hxx ixx txx cxx}{* -module-options -{$libu_src}} \
+ libus{mod} ../libbrep/lib{brep} ../web/server/libus{web-server} \
+ $libs
+
+{libue libus}{mod}: {hxx ixx cxx}{module-options} \
+ {hxx ixx txx cxx}{+{$libu_src} } \
+ $libs
+
+libus{mod}: ../web/xhtml/libus{xhtml}
+libue{mod}: ../web/xhtml/libue{xhtml}
# Generated options parser.
#
if $cli.configured
{
- cli.cxx{options}: cli{options}
+ cli.cxx{module-options}: cli{module}
# Set option prefix to the empty value to handle all unknown request
# parameters uniformly with a single catch block.
#
- cli.options += --std c++11 -I $src_root --include-with-brackets \
---include-prefix mod --guard-prefix MOD --generate-specifier \
---cxx-prologue "#include <mod/types-parsers.hxx>" \
---cli-namespace brep::cli --generate-file-scanner --suppress-usage \
+ cli.options += --std c++11 -I $src_root --include-with-brackets \
+--include-prefix mod --guard-prefix MOD --generate-specifier \
+--cxx-prologue "#include <mod/types-parsers.hxx>" \
+--cli-namespace brep::cli --generate-file-scanner --option-length 38 \
--generate-modifier --generate-description --option-prefix ""
# Include the generated cli files into the distribution and don't remove