diff options
Diffstat (limited to 'cli/buildfile')
-rw-r--r-- | cli/buildfile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cli/buildfile b/cli/buildfile index b267ab9..7d634e0 100644 --- a/cli/buildfile +++ b/cli/buildfile @@ -11,6 +11,16 @@ libue{cli}: {hxx ixx txx cxx}{** -cli -version -options} \ hxx{version}: in{version} $src_root/manifest +# Build options. +# +# Pass the copyright notice extracted from the LICENSE file. +# +copyright = $process.run_regex(cat $src_root/LICENSE, \ + 'Copyright \(c\) (.+)\.', \ + '\1') + +obj{cli}: cxx.poptions += -DCLI_COPYRIGHT=\"$copyright\" + # Generated options parser. # if $cli.configured |