diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-28 12:13:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-04-28 12:13:13 +0200 |
commit | 580f67e991f9ac7f53bd9430bb74b199209e065d (patch) | |
tree | 683da4894b0604d50f1ef330ecd825adca10d40d /bpkg/buildfile | |
parent | f086522a901442599566b60271efb5a4c7691d55 (diff) |
Switch to version module
Diffstat (limited to 'bpkg/buildfile')
-rw-r--r-- | bpkg/buildfile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile index 74ee29a..7def27f 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -10,13 +10,16 @@ lib{bpkg}: \ {hxx }{ version } \ $int_libs +hxx{version}: in{version} $src_root/file{manifest} +hxx{version}: dist = true + # For pre-releases use the complete version to make sure they cannot be used # in place of another pre-release or the final version. # -if $abi_prerelease - lib{bpkg}: bin.lib.version = @-$version +if $version.pre_release + lib{bpkg}: bin.lib.version = @"-$version.project_id" else - lib{bpkg}: bin.lib.version = @-$abi_major.$abi_minor + lib{bpkg}: bin.lib.version = @"-$version.major.$version.minor" cxx.poptions =+ "-I$src_root" obja{*}: cxx.poptions += -DLIBBPKG_STATIC_BUILD |