aboutsummaryrefslogtreecommitdiff
path: root/build/root.build
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-09-08 16:26:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-09-12 20:19:13 +0300
commitefa2666ada7fcc7679ee8b6031d71855f46e5c6d (patch)
tree2b6dbaf962a908cd3c67ff8958d20865ff2c2473 /build/root.build
parent4aa63bc7037cb6c6162eb014f00ddba5c677a169 (diff)
Use ad hoc recipes to compile options.cli file
Diffstat (limited to 'build/root.build')
-rw-r--r--build/root.build19
1 files changed, 13 insertions, 6 deletions
diff --git a/build/root.build b/build/root.build
index aea8d03..a07e058 100644
--- a/build/root.build
+++ b/build/root.build
@@ -1,6 +1,13 @@
# file : build/root.build
# license : GNU GPL v3; see accompanying LICENSE file
+config [bool] config.odb.develop ?= false
+
+develop = $config.odb.develop
+
+define cli: file
+cli{*}: extension = cli
+
cxx.std = latest
using cxx
@@ -46,11 +53,11 @@ if ($build.mode != 'skeleton')
config [config.report] plugin_dir
- # Load the cli module but only if it's available. This way a distribution
- # that includes pre-generated files can be built without installing cli.
- # This is also the reason why we need to explicitly spell out individual
- # source file prerequisites instead of using the cli.cxx{} group (it won't
- # be there unless the module is configured).
+ # Extract the copyright notice from the LICENSE file.
+ #
+ # Note that cat is a builtin which means this is both portable and fast.
#
- using? cli
+ copyright = $process.run_regex(cat $src_root/LICENSE, \
+ 'Copyright \(c\) (.+)\.', \
+ '\1')
}