diff options
Diffstat (limited to 'bbot/buildfile')
-rw-r--r-- | bbot/buildfile | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/bbot/buildfile b/bbot/buildfile index ce74c7a..bbca810 100644 --- a/bbot/buildfile +++ b/bbot/buildfile @@ -1,5 +1,5 @@ # file : bbot/buildfile -# license : TBC; see accompanying LICENSE file +# license : MIT; see accompanying LICENSE file # Systemd .service file. # @@ -21,22 +21,16 @@ import libs += libbbot%lib{bbot} # Agent is a systemd service. # -# @@ Have to package on Linux. -# -if ($cxx.target.class == "linux") -{ - ./: exe{bbot-agent} service{'bbot-agent@'} - - exe{bbot-agent}: agent/{hxx ixx txx cxx}{+agent} agent/libue{bbot} +./: exe{bbot-agent} \ + service{'bbot-agent@'}: include = ($cxx.target.class == 'linux') - agent/ - { - libue{bbot}: {hxx ixx txx cxx}{* -agent -agent-options -*.test...} \ - {hxx ixx cxx}{agent-options} \ - ../libue{bbot} - } +exe{bbot-agent}: agent/{hxx ixx txx cxx}{+agent} agent/libue{bbot} - cxx.libs += -ldl +agent/ +{ + libue{bbot}: {hxx ixx txx cxx}{* -agent -agent-options -*.test...} \ + {hxx ixx cxx}{agent-options} \ + ../libue{bbot} } ./: exe{bbot-worker}: worker/{hxx ixx txx cxx}{+worker} worker/libue{bbot} @@ -53,6 +47,9 @@ libue{bbot}: {hxx ixx txx cxx}{* -common-options -version -*.test...} \ {hxx}{version} \ $libs +if ($cxx.target.class == 'linux') + cxx.libs += -ldl + hxx{version}: in{version} $src_root/manifest # Unit tests. @@ -94,13 +91,15 @@ if $cli.configured --cxx-prologue "#include <bbot/types-parsers.hxx>" \ --cli-namespace bbot::cli --generate-specifier --generate-parse + # No usage. + # cli.cxx{common-options}: cli.options += --include-prefix bbot \ ---guard-prefix BBOT # No usage. +--guard-prefix BBOT --generate-vector-scanner --generate-group-scanner # Usage options. # cli.options += --suppress-undocumented --long-usage --ansi-color \ ---page-usage 'bbot::print_$name$_' --option-length 23 +--page-usage 'bbot::print_$name$_' --option-length 25 agent/cli.cxx{agent-options}: cli.options += --include-prefix bbot/agent \ --guard-prefix BBOT_AGENT |