summaryrefslogtreecommitdiff
path: root/cli/build/root.build
diff options
context:
space:
mode:
Diffstat (limited to 'cli/build/root.build')
-rw-r--r--cli/build/root.build15
1 files changed, 9 insertions, 6 deletions
diff --git a/cli/build/root.build b/cli/build/root.build
index 476b192..ec59426 100644
--- a/cli/build/root.build
+++ b/cli/build/root.build
@@ -12,14 +12,11 @@
# cli package configuration to point to its own binary (or a binary in another
# build configuration if you want to play it safe).
#
-# Note, though, that currently referring to the cli target in the project
-# itself ends up with the 'dependency cycle detected' error. In the future we
-# will fix that by using an ad hoc recipe instead of the cli module. But for
-# now you can workaround this issue by pointing to a binary in another
-# configuration.
-#
config [path] config.cli
+define cli: file
+cli{*}: extension = cli
+
cxx.std = latest
using cxx
@@ -52,3 +49,9 @@ if ($config.cli != [null] && $config.cli != false)
# Specify the test target for cross-testing.
#
test.target = $cxx.target
+
+# Extract the copyright notice from the LICENSE file.
+#
+copyright = $process.run_regex(cat $src_root/LICENSE, \
+ 'Copyright \(c\) (.+)\.', \
+ '\1')