From dd72117d8c87af140eedc6ac980c5a16a457e7c8 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 6 Jun 2020 22:42:16 +0300 Subject: Use ad hoc recipe for parsing code and documentation generating --- cli/build/root.build | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'cli/build/root.build') 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') -- cgit v1.1