diff options
author | Vladimir Prus <ghost@cs.msu.su> | 2010-02-28 08:22:46 +0000 |
---|---|---|
committer | Vladimir Prus <ghost@cs.msu.su> | 2010-02-28 08:22:46 +0000 |
commit | 0715213024e639a12e16e1dcb7361db79b844757 (patch) | |
tree | 5940fa8f836f8d7d5880e0e60ed40da239bf1c35 /Jamroot | |
parent | 284ae78e0d2f1fa7e5d108854f34f7ba47519a65 (diff) | |
download | boost-0715213024e639a12e16e1dcb7361db79b844757.tar.gz |
Implement --python-buildid.
Fixes #3544.
Patch from Gaudenz Steinlin.
[SVN r59987]
Diffstat (limited to 'Jamroot')
-rw-r--r-- | Jamroot | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -90,6 +90,12 @@ # --buildid=ID Adds the specified ID to the name of built # libraries. The default is to not add anything. # +# --python-buildid=ID Adds the specified ID to the name of built +# libraries that depend on Python. The default +# is to not add anything. This ID is added in +# addition t --buildid. +# +# # --help This message. # # --with-<library> Build and install the specified <library> @@ -352,6 +358,12 @@ if $(build-id) constant BUILD_ID : [ regex.replace $(build-id) "[*\\/:.\"\' ]" "_" ] ; } +# Python build id (only for Python libraries) +local python-id = [ MATCH "^--python-buildid=(.*)" : [ modules.peek : ARGV ] ] ; +if $(python-id) +{ + constant PYTHON_ID : [ regex.replace $(python-id) "[*\\/:.\"\']" "_" ] ; +} # This rule is called by Boost.Build to determine the name of target. We use it # to encode the build variant, compiler name and boost version in the target |