|
Boost-Commit : |
From: grafikrobot_at_[hidden]
Date: 2008-01-14 21:00:09
Author: grafik
Date: 2008-01-14 21:00:08 EST (Mon, 14 Jan 2008)
New Revision: 42786
URL: http://svn.boost.org/trac/boost/changeset/42786
Log:
Cleanup outdated win-sdk support extension.
Text files modified:
sandbox/tools/build_extensions/ext/windows-psdk.jam | 64 +++++++++------------------------------
1 files changed, 15 insertions(+), 49 deletions(-)
Modified: sandbox/tools/build_extensions/ext/windows-psdk.jam
==============================================================================
--- sandbox/tools/build_extensions/ext/windows-psdk.jam (original)
+++ sandbox/tools/build_extensions/ext/windows-psdk.jam 2008-01-14 21:00:08 EST (Mon, 14 Jan 2008)
@@ -1,4 +1,4 @@
-#~ Copyright Redshift Software, Inc. 2006.
+#~ Copyright Redshift Software, Inc. 2006-2008.
#~ Distributed under the Boost Software License, Version 1.0.
#~ (See accompanying file LICENSE_1_0.txt or copy at
#~ http://www.boost.org/LICENSE_1_0.txt)
@@ -19,60 +19,26 @@
### version number is optional and currently not used.
-import property ;
-import project ;
-import feature ;
-import toolset : flags ;
+import extension ;
-project.extension windows-psdk ;
-
-feature.feature windows-psdk-version
- :
- : propagated optional implicit ;
-
-feature.feature windows-psdk-location
- :
- : free ;
-
-local rule prop ( option )
-{
- local vals = [ MATCH "--([^-]+)-([^=]+)[=]?(.*)" : $(option) ] ;
- if $(vals[2])
- {
- return <windows-psdk-$(vals[1])>$(vals[2]) ;
- }
- else
- {
- return <windows-psdk-$(vals[1])>enable ;
- }
-}
+extension.declare windows-psdk ;
rule init ( version ? : location : options * )
{
- if $(version)
- {
- feature.extend windows-psdk-version : $(version) ;
- }
+ version ?= default ;
+ local requirements =
+ [ extension.define windows-psdk $(version) : $(location) : $(options) ]
+ <windows-psdk-version>$(version)
+ <windows-psdk-location>$(location)
+ #~ <toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
+ #~ <toolset>msvc:<define>_SCL_SECURE_NO_WARNINGS
+ ;
+ local common-requirements =
+ ;
- local requirements ;
- local toolsets ;
- for local option in $(options)
- {
- switch $(option)
- {
- case --enable-* :
- requirements = [ property.refine $(requirements) : [ prop $(option) ] ] ;
- case --disable-* :
- requirements = [ property.refine $(requirements) : [ prop $(option) ] ] ;
- case --toolset=* :
- {
- local toolset = [ MATCH "--toolset=(.*)" : $(option) ] ;
- toolsets += $(toolset) ;
- }
- }
- }
+ import modules ;
- for local toolset in $(toolsets)
+ for local toolset in [ MATCH "--toolset=(.*)" : $(options) ]
{
local tool = [ MATCH "([^-]+)" : $(toolset) ] ;
modules.call-in $(tool) :
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