|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r64363 - trunk/tools/build/v2/tools
From: ghost_at_[hidden]
Date: 2010-07-26 08:42:27
Author: vladimir_prus
Date: 2010-07-26 08:42:27 EDT (Mon, 26 Jul 2010)
New Revision: 64363
URL: http://svn.boost.org/trac/boost/changeset/64363
Log:
Export the 'variant' rule to Jamfiles
Text files modified:
trunk/tools/build/v2/tools/builtin.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Modified: trunk/tools/build/v2/tools/builtin.py
==============================================================================
--- trunk/tools/build/v2/tools/builtin.py (original)
+++ trunk/tools/build/v2/tools/builtin.py 2010-07-26 08:42:27 EDT (Mon, 26 Jul 2010)
@@ -11,10 +11,11 @@
import sys
from b2.build import feature, property, virtual_target, generators, type, property_set, scanner
from b2.util.utility import *
-from b2.util import path, regex
+from b2.util import path, regex, bjam_signature
import b2.tools.types
from b2.manager import get_manager
+
# Records explicit properties for a variant.
# The key is the variant name.
__variant_explicit_properties = {}
@@ -26,6 +27,7 @@
__variant_explicit_properties = {}
+@bjam_signature((["name"], ["parents_or_properties", "*"], ["explicit_properties", "*"]))
def variant (name, parents_or_properties, explicit_properties = []):
""" Declares a new variant.
First determines explicit properties for this variant, by
@@ -721,3 +723,5 @@
###
###
###
+
+get_manager().projects().add_rule("variant", variant)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk