From efa2666ada7fcc7679ee8b6031d71855f46e5c6d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 8 Sep 2022 16:26:08 +0300 Subject: Use ad hoc recipes to compile options.cli file --- build/root.build | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'build') 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') } -- cgit v1.1