|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49010 - trunk/tools/build/v2/tools/types
From: ghost_at_[hidden]
Date: 2008-09-29 12:00:33
Author: vladimir_prus
Date: 2008-09-29 12:00:32 EDT (Mon, 29 Sep 2008)
New Revision: 49010
URL: http://svn.boost.org/trac/boost/changeset/49010
Log:
Key some extensions on target-os, not host os.
Text files modified:
trunk/tools/build/v2/tools/types/exe.jam | 8 ++++++--
trunk/tools/build/v2/tools/types/lib.jam | 24 +++++++++++++-----------
trunk/tools/build/v2/tools/types/obj.jam | 8 ++++++--
3 files changed, 25 insertions(+), 15 deletions(-)
Modified: trunk/tools/build/v2/tools/types/exe.jam
==============================================================================
--- trunk/tools/build/v2/tools/types/exe.jam (original)
+++ trunk/tools/build/v2/tools/types/exe.jam 2008-09-29 12:00:32 EDT (Mon, 29 Sep 2008)
@@ -1,5 +1,9 @@
# Copyright David Abrahams 2004. 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)
-type EXE : exe : : NT CYGWIN ;
-type EXE ;
+
+import type ;
+
+type.register EXE ;
+type.set-generated-target-suffix EXE : <target-os>windows : "exe" ;
+type.set-generated-target-suffix EXE : <target-os>cygiwn : "exe" ;
Modified: trunk/tools/build/v2/tools/types/lib.jam
==============================================================================
--- trunk/tools/build/v2/tools/types/lib.jam (original)
+++ trunk/tools/build/v2/tools/types/lib.jam 2008-09-29 12:00:32 EDT (Mon, 29 Sep 2008)
@@ -7,23 +7,25 @@
type.register LIB ;
-if [ os.on-unix ]
-{
- type.set-generated-target-prefix LIB : : "lib" ;
-}
-
-type STATIC_LIB : lib a : LIB : NT CYGWIN ;
-type STATIC_LIB : a : LIB : MACOSX ;
-type STATIC_LIB : a : LIB ;
+type.set-generated-target-prefix LIB : : "lib" ;
+type.set-generated-target-prefix LIB : <target-os>windows : "" ;
+type.set-generated-target-prefix LIB : <target-os>cygwin : "" ;
+
+# FIXME: should not register both extensions on both
+# platforms.
+type.register STATIC_LIB : a lib : LIB ;
+
+type.set-generated-target-suffix STATIC_LIB : <target-os>windows : lib ;
+type.set-generated-target-suffix STATIC_LIB : <target-os>cygwin : lib ;
type.set-generated-target-prefix STATIC_LIB : : lib ;
type IMPORT_LIB : : STATIC_LIB ;
type.set-generated-target-suffix IMPORT_LIB : : lib ;
type.set-generated-target-prefix IMPORT_LIB : : "" ;
-type SHARED_LIB : dll : LIB : NT CYGWIN ;
-type SHARED_LIB : dylib : LIB : MACOSX ;
-type SHARED_LIB : so : LIB ;
+type.register SHARED_LIB : so dll dylib : LIB ;
+type.set-generated-target-suffix SHARED_LIB : <target-os>windows : dll ;
+type.set-generated-target-suffix SHARED_LIB : <target-os>darwin : dylib ;
type SEARCHED_LIB : : LIB ;
# This is needed so that when we create a target of SEARCHED_LIB
Modified: trunk/tools/build/v2/tools/types/obj.jam
==============================================================================
--- trunk/tools/build/v2/tools/types/obj.jam (original)
+++ trunk/tools/build/v2/tools/types/obj.jam 2008-09-29 12:00:32 EDT (Mon, 29 Sep 2008)
@@ -1,5 +1,9 @@
# Copyright David Abrahams 2004. 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)
-type OBJ : obj : : NT CYGWIN ;
-type OBJ : o ;
+
+import type ;
+
+type.register OBJ : o obj ;
+type.set-generated-target-suffix OBJ : <target-os>windows : obj ;
+type.set-generated-target-suffix OBJ : <target-os>cygwin : obj ;
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