diff options
Diffstat (limited to 'bpkg/buildfile')
-rw-r--r-- | bpkg/buildfile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile index 968f425..dc900d8 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -82,6 +82,16 @@ for t: cxx{**.test...} # Build options. # +obj{utility}: cxx.poptions += -DBPKG_EXE_SUFFIX='"'$bin.exe.suffix'"' + +# Pass the copyright notice extracted from the COPYRIGHT file. +# +copyright = $process.run_regex(cat $src_root/COPYRIGHT, \ + 'Copyright \(c\) (.+)\.', \ + '\1') + +obj{bpkg}: cxx.poptions += -DBPKG_COPYRIGHT=\"$copyright\" + # Disable "unknown pragma" warnings. # switch $cxx.class @@ -98,8 +108,6 @@ switch $cxx.class if ($cxx.id == 'msvc' && $cxx.version.major == 19 && $cxx.version.minor < 10) cxx.coptions += /wd4503 -obj{utility}: cxx.poptions += -DBPKG_EXE_SUFFIX='"'$bin.exe.suffix'"' - # Make sure backtrace includes function names. # if ($cxx.target.class == 'linux') |