summaryrefslogtreecommitdiff
path: root/Jamroot
diff options
context:
space:
mode:
authorVladimir Prus <ghost@cs.msu.su>2010-02-28 08:22:46 +0000
committerVladimir Prus <ghost@cs.msu.su>2010-02-28 08:22:46 +0000
commit0715213024e639a12e16e1dcb7361db79b844757 (patch)
tree5940fa8f836f8d7d5880e0e60ed40da239bf1c35 /Jamroot
parent284ae78e0d2f1fa7e5d108854f34f7ba47519a65 (diff)
downloadboost-0715213024e639a12e16e1dcb7361db79b844757.tar.gz
Implement --python-buildid.
Fixes #3544. Patch from Gaudenz Steinlin. [SVN r59987]
Diffstat (limited to 'Jamroot')
-rw-r--r--Jamroot12
1 files changed, 12 insertions, 0 deletions
diff --git a/Jamroot b/Jamroot
index ea8bfd64cb..1496414c48 100644
--- a/Jamroot
+++ b/Jamroot
@@ -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