2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-13 00:12:11 +00:00

Add 'version-suffix' rule.

This commit is contained in:
Stefan Seefeld
2018-02-06 21:35:16 -05:00
parent 0d5e76ebf2
commit c95f1302bf

View File

@@ -657,6 +657,15 @@ local rule system-library-dependencies ( target-os )
}
# Define a version suffix for libraries depending on Python.
# For example, Boost.Python built for Python 2.7 uses the suffix "27"
rule version-suffix ( version )
{
local major-minor = [ split-version $(version) ] ;
local suffix = $(major-minor:J="") ;
return $(suffix) ;
}
# Declare a target to represent Python's library.
#
local rule declare-libpython-target ( version ? : requirements * )