aboutsummaryrefslogtreecommitdiff
path: root/bbot/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/buildfile')
-rw-r--r--bbot/buildfile10
1 files changed, 10 insertions, 0 deletions
diff --git a/bbot/buildfile b/bbot/buildfile
index 80c55f7..ce74c7a 100644
--- a/bbot/buildfile
+++ b/bbot/buildfile
@@ -72,6 +72,16 @@ for t: cxx{**.test...}
$d/exe{$n}: $d/libue{bbot}: bin.whole = false
}
+# Build options.
+#
+# Pass the copyright notice extracted from the LICENSE file.
+#
+copyright = $process.run_regex(cat $src_root/LICENSE, \
+ 'Copyright \(c\) (.+)\.', \
+ '\1')
+
+obj{agent/agent worker/worker}: cxx.poptions += -DBBOT_COPYRIGHT=\"$copyright\"
+
# Generated options parser.
#
if $cli.configured