aboutsummaryrefslogtreecommitdiff
path: root/bpkg/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-09-07 15:59:37 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-09-07 15:59:37 +0200
commitb1078fdb9fac747c19dbdacd24c2838aae7d9f6b (patch)
tree3452bab97d91b063ac3cac2cb3d84ae184c21858 /bpkg/buildfile
parent8f94aaa067426a259f5396abdaf4945671799b5c (diff)
Implement cfg-create command
Diffstat (limited to 'bpkg/buildfile')
-rw-r--r--bpkg/buildfile18
1 files changed, 12 insertions, 6 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile
index 0e03e93..e058957 100644
--- a/bpkg/buildfile
+++ b/bpkg/buildfile
@@ -7,15 +7,20 @@ using cli
import libs = libbutl%lib{butl}
import libs += libbpkg%lib{bpkg}
-exe{bpkg}: cxx{diagnostics utility} cli.cxx{common-options} \
- cxx{bpkg} cli.cxx{bpkg-options} \
- cxx{help} cli.cxx{help-options} \
- cxx{rep-create} cli.cxx{rep-create-options} \
+exe{bpkg}: cxx{diagnostics utility} \
+ cli.cxx{common-options} cxx{types-parsers} \
+ cxx{bpkg} cli.cxx{bpkg-options} \
+ cxx{help} cli.cxx{help-options} \
+ cxx{cfg-create} cli.cxx{cfg-create-options} \
+ cxx{rep-create} cli.cxx{rep-create-options} \
$libs
+#@@ --cxx-prologue "#include <brep/types-parsers>"
+
cli.options += -I $src_root --include-with-brackets --include-prefix bpkg \
---guard-prefix BPKG --generate-file-scanner --cli-namespace bpkg::cli \
---generate-specifier --generate-parse --long-usage --exclude-base
+--guard-prefix BPKG --cxx-prologue-file $src_base/types-parsers \
+--cli-namespace bpkg::cli --generate-file-scanner --generate-specifier \
+--generate-parse --long-usage --exclude-base
# Option length must be the same to get commands/topics/options lists
# aligned in the general help.
@@ -27,4 +32,5 @@ cli.cxx{bpkg-options}: cli{bpkg-options}
cli.cxx{bpkg-options}: cli.options += --option-length 22 --short-usage
cli.cxx{help-options}: cli{help-options}
+cli.cxx{cfg-create-options}: cli{cfg-create-options}
cli.cxx{rep-create-options}: cli{rep-create-options}