|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r63927 - trunk/tools/build/v2/build
From: ghost_at_[hidden]
Date: 2010-07-12 11:11:13
Author: vladimir_prus
Date: 2010-07-12 11:11:13 EDT (Mon, 12 Jul 2010)
New Revision: 63927
URL: http://svn.boost.org/trac/boost/changeset/63927
Log:
Use toolset.requirements in targets.py
Text files modified:
trunk/tools/build/v2/build/targets.py | 7 +++----
trunk/tools/build/v2/build/toolset.py | 6 ++++--
2 files changed, 7 insertions(+), 6 deletions(-)
Modified: trunk/tools/build/v2/build/targets.py
==============================================================================
--- trunk/tools/build/v2/build/targets.py (original)
+++ trunk/tools/build/v2/build/targets.py 2010-07-12 11:11:13 EDT (Mon, 12 Jul 2010)
@@ -77,7 +77,7 @@
import sys
from b2.util.utility import *
-import property, project, virtual_target, property_set, feature, generators
+import property, project, virtual_target, property_set, feature, generators, toolset
from virtual_target import Subvariant
from b2.exceptions import *
from b2.util.sequence import unique
@@ -142,8 +142,7 @@
main target
'project' is the project where the main taret is to be declared."""
- # FIXME: revive after toolset.requirements are ported.
- #specification.append(toolset.requirements)
+ specification.extend(toolset.requirements())
requirements = property_set.refine_from_user_input(
project.get("requirements"), specification,
@@ -1252,7 +1251,7 @@
# Are there any top-level generators for this type/property set.
if not generators.find_viable_generators (self.type_, prop_set):
- print "error: no generators were found for type '$(self.type)'"
+ print "error: no generators were found for type '" + self.type_ + "'"
print "error: and the requested properties"
print "error: make sure you've configured the needed tools"
print "See http://boost.org/boost-build2/doc/html/bbv2/advanced/configuration.html"
Modified: trunk/tools/build/v2/build/toolset.py
==============================================================================
--- trunk/tools/build/v2/build/toolset.py (original)
+++ trunk/tools/build/v2/build/toolset.py 2010-07-12 11:11:13 EDT (Mon, 12 Jul 2010)
@@ -10,7 +10,7 @@
""" Support for toolset definition.
"""
-import feature, property, generators
+import feature, property, generators, property_set
from b2.util.utility import *
from b2.util import set
@@ -369,6 +369,8 @@
__module_flags.setdefault(m, []).append(f)
__flags.setdefault(rule_or_module, []).append(f)
+__requirements = []
+
def requirements():
"""Return the list of global 'toolset requirements'.
Those requirements will be automatically added to the requirements of any main target."""
@@ -380,9 +382,9 @@
they were specified literally. For best results, all requirements added should
be conditional or indirect conditional."""
- # FIXME:
#if ! $(.ignore-requirements)
#{
+ print "XXXX", requirements
__requirements.extend(requirements)
#}
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