diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-01 16:46:03 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-01 16:46:03 +0200 |
commit | a133e7b03bd67c992cfb240bd300967ffab31ba2 (patch) | |
tree | 02c54f4c9b7f48aeb5230e230a4bb00bb1609c2c /bbot/buildfile | |
parent | 2ae123ce8e8a874ada7e8c776abfc0742d862277 (diff) |
Setup build infra
Diffstat (limited to 'bbot/buildfile')
-rw-r--r-- | bbot/buildfile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/bbot/buildfile b/bbot/buildfile new file mode 100644 index 0000000..1f48062 --- /dev/null +++ b/bbot/buildfile @@ -0,0 +1,39 @@ +# file : bbot/buildfile +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +import libs = libbutl%lib{butl} +import libs += libbbot%lib{bbot} + +exe{bbot-agent}: \ +{ cxx}{ agent } {hxx ixx cxx}{ agent-options } \ +{hxx }{ bbot-version } \ + {hxx ixx cxx}{ common-options } \ +{hxx cxx}{ diagnostics } \ +{hxx }{ types } \ +{hxx cxx}{ types-parsers } \ +{hxx cxx}{ utility } \ + $libs + +# Generated options parser. +# +if $cli.configured +{ + cli.cxx{common-options}: cli{common} + cli.cxx{agent-options}: cli{agent} + + cli.options += -I $src_root --include-with-brackets --include-prefix bbot \ +--guard-prefix BBOT --cxx-prologue "#include <bbot/types-parsers>" \ +--cli-namespace bbot::cli --generate-specifier + + cli.cxx{common-options}: cli.options = $cli.options # No usage. + + # Usage options. + # + cli.options += --suppress-undocumented --long-usage --ansi-color \ +--page-usage 'bbot::print_$name$_' --option-length 20 + + # Include generated cli files into the distribution. + # + cli.cxx{*}: dist = true +} |