2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-15 13:02:11 +00:00

Modified Files:

index.htm - fixed reference to CVS repository
	libs/python/build/Jamfile - first stab at metrowerks Pro7 support
	status/Jamfile - added RUN_ALL_TESTS variables to force tests to run
	tools/build/boost-build.jam - fix BOOST_BUILD_INSTALLATION setting
	tools/build/metrowerks-tools.jam - command file support
	tools/build/msvc-tools.jam - permanent command file support
	tools/build/intel-win32-tools.jam - made it an extension of msvc-tools.jam
	tools/build/gcc-tools.jam  - made FINDLIBS change submitted by Toon Knapen
	tools/build/jam_src/variable.c - changed command-line/env. variable
					interpretation so that
					surrounding them with quotes causes
					no breaking at spaces.

These files were converted from tabs to spaces:

	boost/python/conversions.hpp
	boost/python/reference.hpp boost/python/detail/base_object.hpp
	boost/python/detail/functions.hpp
	boost/python/detail/wrap_python.hpp libs/python/test/comprehensive.cpp
	tools/build/boost-base.jam
	tools/build/como-tools.jam


[SVN r11652]
This commit is contained in:
Dave Abrahams
2001-11-10 22:16:01 +00:00
parent de59a71012
commit 4f7a212d2b
16 changed files with 138 additions and 176 deletions

View File

@@ -118,7 +118,7 @@ rule main-from-objects
{
# make compiled sources a dependency of target
MakeLocate $(<) : $(LOCATE_TARGET) ;
MakeLocate $(<) : $(LOCATE_TARGET) ;
Clean clean : $(<) ;
@@ -884,7 +884,7 @@ rule expand-build-request
# described.
return [ make-path-property-sets $(toolset)$(SLASH)$(variant)
: [ fixup-path-properties $(base-properties) $(free-properties)
$(defaulted-free-properties) ]
$(defaulted-free-properties) ]
: $(override-sets) ] ;
}

View File

@@ -3,5 +3,6 @@
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
BOOST_BUILD_INSTALLATION ?= $(BOOST_ROOT)/tools/build ;
SEARCH on <jam-module>allyourbase.jam = $(BOOST_BUILD_PATH) ;
include <jam-module>allyourbase.jam ;

View File

@@ -120,7 +120,7 @@ actions updated together piecemeal como-Archive-action
$(COMO_PATH_SETUP)
$(COMO_BASE_SETUP)
$(COMO_BIN_DIRECTORY)como -o "$(<:S=)" $(>)
REM if exist "$(<)" set _$(<:B)_="$(<)"
REM $(MSVC_TOOL_PATH)link /lib /out:"$(<)" %_$(<:B)_% "$(>)"
REM if exist "$(<)" set _$(<:B)_="$(<)"
REM $(MSVC_TOOL_PATH)link /lib /out:"$(<)" %_$(<:B)_% "$(>)"
}

View File

@@ -27,8 +27,8 @@ flags gcc CFLAGS <inlining>full : -finline-functions -Wno-inline ;
if $(UNIX)
{
flags gcc CFLAGS <threading>multi : -pthread ;
flags gcc LINKFLAGS <threading>multi : -pthread ;
flags gcc CFLAGS <threading>multi : -pthread ;
flags gcc LINKFLAGS <threading>multi : -pthread ;
}
flags gcc CFLAGS <profiling>on : -pg ;
@@ -74,7 +74,7 @@ rule Link-action
# for gcc, we repeat all libraries so that dependencies are always resolved
actions gcc-Link-action bind NEEDLIBS
{
$(GCC_BIN_DIRECTORY)g++ $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" -l$(FINDLIBS) "$(NEEDLIBS)" "$(NEEDLIBS)"
$(GCC_BIN_DIRECTORY)g++ $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS)
}
# older actions

View File

@@ -94,28 +94,38 @@ var_defines( char **e )
# ifdef OS_MAC
char split = ',';
# else
char split = ' ';
char split = ' ';
# endif
/* Split *PATH at :'s, not spaces */
if( val - 4 >= *e )
{
if( !strncmp( val - 4, "PATH", 4 ) ||
!strncmp( val - 4, "Path", 4 ) ||
!strncmp( val - 4, "path", 4 ) )
split = SPLITPATH;
}
/* Do the split */
for( pp = val + 1; p = strchr( pp, split ); pp = p + 1 )
{
string_append_range( buf, pp, p );
l = list_new( l, newstr( buf->value ) );
size_t len = strlen(val + 1);
if ( val[1] == '"' && val[len] == '"')
{
string_append_range( buf, val + 2, val + len );
l = list_new( l, newstr( buf->value ) );
string_truncate( buf, 0 );
}
}
else
{
/* Split *PATH at :'s, not spaces */
l = list_new( l, newstr( pp ) );
if( val - 4 >= *e )
{
if( !strncmp( val - 4, "PATH", 4 ) ||
!strncmp( val - 4, "Path", 4 ) ||
!strncmp( val - 4, "path", 4 ) )
split = SPLITPATH;
}
/* Do the split */
for( pp = val + 1; p = strchr( pp, split ); pp = p + 1 )
{
string_append_range( buf, pp, p );
l = list_new( l, newstr( buf->value ) );
string_truncate( buf, 0 );
}
l = list_new( l, newstr( pp ) );
}
/* Get name */
string_append_range( buf, *e, val );

View File

@@ -11,57 +11,28 @@
# compute INTEL tool path
# You can either put the intel-win32 bin directory in your PATH, or you can set
# INTELROOT to point at the intel-win32 installation directory
INTEL_TOOL_PATH = "$(INTEL_PATH)"$(SLASH)bin$(SLASH) ;
INTEL_TOOL_PATH ?= "$(INTEL_PATH)"$(SLASH)bin$(SLASH) ;
INTEL_TOOL_PATH ?= "" ; # Don't clobber adjoining text if INTELROOT isn't set
flags intel-win32 CFLAGS <debug-symbols>on : /Zi ;
flags intel-win32 LINKFLAGS <debug-symbols>on : /DEBUG ;
flags intel-win32 CFLAGS <optimization>off : /Od ;
flags intel-win32 CFLAGS <optimization>speed : /O2 ;
flags intel-win32 CFLAGS <optimization>space : /O1 ;
flags intel-win32 CFLAGS <inlining>off : /Ob0 ;
flags intel-win32 CFLAGS <inlining>on : /Ob1 ;
flags intel-win32 CFLAGS <inline>full : /Ob2 ;
flags intel-win32 CFLAGS <exception-handling>on : /GX ;
flags intel-win32 CFLAGS <rtti>on : /GR ;
# Note that these two options actually imply multithreading support on INTEL
# because there is no single-threaded dynamic runtime library. Specifying
# <threading>multi would be a bad idea, though, because no option would be
# matched when the build uses the default settings of <runtime-link>dynamic
# and <threading>single.
flags intel-win32 CFLAGS <runtime-build>release/<runtime-link>dynamic : /MD ;
flags intel-win32 CFLAGS <runtime-build>debug/<runtime-link>dynamic : /MDd ;
flags intel-win32 CFLAGS <runtime-build>release/<runtime-link>static/<threading>single : /ML ;
flags intel-win32 CFLAGS <runtime-build>debug/<runtime-link>static/<threading>single : /MLd ;
flags intel-win32 CFLAGS <runtime-build>release/<runtime-link>static/<threading>multi : /MT ;
flags intel-win32 CFLAGS <runtime-build>debug/<runtime-link>static/<threading>multi : /MTd ;
flags intel-win32 CFLAGS <cflags> ;
flags intel-win32 C++FLAGS <cxxflags> ;
flags intel-win32 DEFINES <define> ;
flags intel-win32 UNDEFS <undef> ;
flags intel-win32 HDRS <include> ;
flags intel-win32 STDHDRS : $(INTEL_PATH)$(SLASH)include ;
flags intel-win32 STDLIBPATH : $(INTEL_PATH)$(SLASH)lib ;
flags intel-win32 LIBPATH <library-path> ;
flags intel-win32 NEEDLIBS <library-file> ;
flags intel-win32 FINDLIBS <find-library> ;
flags intel-win32 LINKFLAGS <target-type>DLL : /DLL ;
extends-toolset msvc ;
#### Link ####
rule Link-action
{
intel-win32-Link-action $(<) : $(>) ;
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
intel-win32-Link-action $(<) : $(command-file) ;
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
actions intel-win32-Link-action bind NEEDLIBS
{
$(INTEL_TOOL_PATH)xilink /nologo $(LINKFLAGS) /PDB:"$(<[1]:S=.pdb)" /out:"$(<[1])" $(UNDEFS) /LIBPATH:$(LIBPATH) /LIBPATH:$(STDLIBPATH) "$(NEEDLIBS)" "$(FINDLIBS)" "$(>)"
$(INTEL_TOOL_PATH)xilink /nologo $(LINKFLAGS) /PDB:"$(<[1]:S=.pdb)" /out:"$(<[1])" $(UNDEFS) /LIBPATH:$(LIBPATH) /LIBPATH:$(STDLIBPATH) "$(NEEDLIBS)" "$(FINDLIBS)" $(COMMAND)"$(>)"
}
#### Cc #####
@@ -95,7 +66,7 @@ rule Archive-action
actions updated together piecemeal intel-win32-Archive-action
{
if exist "$(<)" set _$(<:B)_="$(<)"
$(INTEL_TOOL_PATH)xilink /lib /out:"$(<)" %_$(<:B)_% "$(>)"
if exist "$(<)" set _$(<:B)_="$(<)"
$(INTEL_TOOL_PATH)xilink /lib /out:"$(<)" %_$(<:B)_% "$(>)"
}

View File

@@ -94,28 +94,38 @@ var_defines( char **e )
# ifdef OS_MAC
char split = ',';
# else
char split = ' ';
char split = ' ';
# endif
/* Split *PATH at :'s, not spaces */
if( val - 4 >= *e )
{
if( !strncmp( val - 4, "PATH", 4 ) ||
!strncmp( val - 4, "Path", 4 ) ||
!strncmp( val - 4, "path", 4 ) )
split = SPLITPATH;
}
/* Do the split */
for( pp = val + 1; p = strchr( pp, split ); pp = p + 1 )
{
string_append_range( buf, pp, p );
l = list_new( l, newstr( buf->value ) );
size_t len = strlen(val + 1);
if ( val[1] == '"' && val[len] == '"')
{
string_append_range( buf, val + 2, val + len );
l = list_new( l, newstr( buf->value ) );
string_truncate( buf, 0 );
}
}
else
{
/* Split *PATH at :'s, not spaces */
l = list_new( l, newstr( pp ) );
if( val - 4 >= *e )
{
if( !strncmp( val - 4, "PATH", 4 ) ||
!strncmp( val - 4, "Path", 4 ) ||
!strncmp( val - 4, "path", 4 ) )
split = SPLITPATH;
}
/* Do the split */
for( pp = val + 1; p = strchr( pp, split ); pp = p + 1 )
{
string_append_range( buf, pp, p );
l = list_new( l, newstr( buf->value ) );
string_truncate( buf, 0 );
}
l = list_new( l, newstr( pp ) );
}
/* Get name */
string_append_range( buf, *e, val );

View File

@@ -70,8 +70,15 @@ flags metrowerks STDHDRS : $(METROWERKS_INCLUDE_ROOT)$(SLASH)$(gMETROWERKS_STD_I
rule Link-action
{
metrowerks-Link-action $(<) : $(>) ;
IMPLIB_COMMAND on $(<) = "-implib " ; # will be "multiplied away" if not needed.
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
metrowerks-Link-action $(<) : $(command-file) ;
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
# Here we set the environment variable MWWinx86LibraryFiles (customize for other
@@ -82,7 +89,7 @@ actions metrowerks-Link-action bind NEEDLIBS
{
$(METROWERKS_SETUP)
$(METROWERKS_LINK_SETUP)$(STDLIBS)
mwld -export dllexport -nowraplines $(LINKFLAGS) -L$(LIBPATH) -L$(STDLIBPATH) $(IMPLIB_COMMAND)"$(<[2])" -o "$(<[1])" "$(NEEDLIBS)" "$(>)" -l$(FINDLIBS)
mwld -maxerrors 20 -maxwarnings 20 -export dllexport -nowraplines $(LINKFLAGS) -L$(LIBPATH) -L$(STDLIBPATH) $(IMPLIB_COMMAND)"$(<[2])" -o "$(<[1])" "$(NEEDLIBS)" $(COMMAND)"$(>)" -l$(FINDLIBS)
}
#### Cc #####
@@ -95,7 +102,7 @@ rule Cc-action
actions metrowerks-Cc-action
{
$(METROWERKS_SETUP)
mwcc -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
@@ -107,7 +114,7 @@ rule C++-action
actions metrowerks-C++-action
{
$(METROWERKS_SETUP)
mwcc -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####

View File

@@ -9,7 +9,7 @@
# compute MSVC tool path
# You can either put the msvc bin directory in your PATH, or you can set
# MSVCDir to point at the msvc installation directory
MSVC_TOOL_PATH = $(MSVCDir)$(SLASH)bin$(SLASH) ;
MSVC_TOOL_PATH ?= $(MSVCDir)$(SLASH)bin$(SLASH) ;
MSVC_TOOL_PATH ?= "" ; # Don't clobber adjoining text if MSVCDir isn't set
flags msvc CFLAGS <debug-symbols>on : /Zi ;
@@ -54,22 +54,14 @@ flags msvc LINKFLAGS <target-type>DLL : /DLL ;
rule Link-action
{
if $(COMMAND_FILES)
{
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
msvc-Link-action $(<) : $(command-file) ;
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
msvc-Link-action $(<) : $(command-file) ;
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
else
{
COMMAND on $(<) = "" ;
msvc-Link-action $(<) : $(>) ;
}
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
actions together msvc-Link-action bind NEEDLIBS

View File

@@ -118,7 +118,7 @@ rule main-from-objects
{
# make compiled sources a dependency of target
MakeLocate $(<) : $(LOCATE_TARGET) ;
MakeLocate $(<) : $(LOCATE_TARGET) ;
Clean clean : $(<) ;
@@ -884,7 +884,7 @@ rule expand-build-request
# described.
return [ make-path-property-sets $(toolset)$(SLASH)$(variant)
: [ fixup-path-properties $(base-properties) $(free-properties)
$(defaulted-free-properties) ]
$(defaulted-free-properties) ]
: $(override-sets) ] ;
}

View File

@@ -120,7 +120,7 @@ actions updated together piecemeal como-Archive-action
$(COMO_PATH_SETUP)
$(COMO_BASE_SETUP)
$(COMO_BIN_DIRECTORY)como -o "$(<:S=)" $(>)
REM if exist "$(<)" set _$(<:B)_="$(<)"
REM $(MSVC_TOOL_PATH)link /lib /out:"$(<)" %_$(<:B)_% "$(>)"
REM if exist "$(<)" set _$(<:B)_="$(<)"
REM $(MSVC_TOOL_PATH)link /lib /out:"$(<)" %_$(<:B)_% "$(>)"
}

View File

@@ -27,8 +27,8 @@ flags gcc CFLAGS <inlining>full : -finline-functions -Wno-inline ;
if $(UNIX)
{
flags gcc CFLAGS <threading>multi : -pthread ;
flags gcc LINKFLAGS <threading>multi : -pthread ;
flags gcc CFLAGS <threading>multi : -pthread ;
flags gcc LINKFLAGS <threading>multi : -pthread ;
}
flags gcc CFLAGS <profiling>on : -pg ;
@@ -74,7 +74,7 @@ rule Link-action
# for gcc, we repeat all libraries so that dependencies are always resolved
actions gcc-Link-action bind NEEDLIBS
{
$(GCC_BIN_DIRECTORY)g++ $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" -l$(FINDLIBS) "$(NEEDLIBS)" "$(NEEDLIBS)"
$(GCC_BIN_DIRECTORY)g++ $(IMPLIB_COMMAND)$(<[2]) $(LINKFLAGS) -o "$(<[1])" -L$(LIBPATH) -L$(STDLIBPATH) "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS)
}
# older actions

View File

@@ -11,57 +11,28 @@
# compute INTEL tool path
# You can either put the intel-win32 bin directory in your PATH, or you can set
# INTELROOT to point at the intel-win32 installation directory
INTEL_TOOL_PATH = "$(INTEL_PATH)"$(SLASH)bin$(SLASH) ;
INTEL_TOOL_PATH ?= "$(INTEL_PATH)"$(SLASH)bin$(SLASH) ;
INTEL_TOOL_PATH ?= "" ; # Don't clobber adjoining text if INTELROOT isn't set
flags intel-win32 CFLAGS <debug-symbols>on : /Zi ;
flags intel-win32 LINKFLAGS <debug-symbols>on : /DEBUG ;
flags intel-win32 CFLAGS <optimization>off : /Od ;
flags intel-win32 CFLAGS <optimization>speed : /O2 ;
flags intel-win32 CFLAGS <optimization>space : /O1 ;
flags intel-win32 CFLAGS <inlining>off : /Ob0 ;
flags intel-win32 CFLAGS <inlining>on : /Ob1 ;
flags intel-win32 CFLAGS <inline>full : /Ob2 ;
flags intel-win32 CFLAGS <exception-handling>on : /GX ;
flags intel-win32 CFLAGS <rtti>on : /GR ;
# Note that these two options actually imply multithreading support on INTEL
# because there is no single-threaded dynamic runtime library. Specifying
# <threading>multi would be a bad idea, though, because no option would be
# matched when the build uses the default settings of <runtime-link>dynamic
# and <threading>single.
flags intel-win32 CFLAGS <runtime-build>release/<runtime-link>dynamic : /MD ;
flags intel-win32 CFLAGS <runtime-build>debug/<runtime-link>dynamic : /MDd ;
flags intel-win32 CFLAGS <runtime-build>release/<runtime-link>static/<threading>single : /ML ;
flags intel-win32 CFLAGS <runtime-build>debug/<runtime-link>static/<threading>single : /MLd ;
flags intel-win32 CFLAGS <runtime-build>release/<runtime-link>static/<threading>multi : /MT ;
flags intel-win32 CFLAGS <runtime-build>debug/<runtime-link>static/<threading>multi : /MTd ;
flags intel-win32 CFLAGS <cflags> ;
flags intel-win32 C++FLAGS <cxxflags> ;
flags intel-win32 DEFINES <define> ;
flags intel-win32 UNDEFS <undef> ;
flags intel-win32 HDRS <include> ;
flags intel-win32 STDHDRS : $(INTEL_PATH)$(SLASH)include ;
flags intel-win32 STDLIBPATH : $(INTEL_PATH)$(SLASH)lib ;
flags intel-win32 LIBPATH <library-path> ;
flags intel-win32 NEEDLIBS <library-file> ;
flags intel-win32 FINDLIBS <find-library> ;
flags intel-win32 LINKFLAGS <target-type>DLL : /DLL ;
extends-toolset msvc ;
#### Link ####
rule Link-action
{
intel-win32-Link-action $(<) : $(>) ;
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
intel-win32-Link-action $(<) : $(command-file) ;
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
actions intel-win32-Link-action bind NEEDLIBS
{
$(INTEL_TOOL_PATH)xilink /nologo $(LINKFLAGS) /PDB:"$(<[1]:S=.pdb)" /out:"$(<[1])" $(UNDEFS) /LIBPATH:$(LIBPATH) /LIBPATH:$(STDLIBPATH) "$(NEEDLIBS)" "$(FINDLIBS)" "$(>)"
$(INTEL_TOOL_PATH)xilink /nologo $(LINKFLAGS) /PDB:"$(<[1]:S=.pdb)" /out:"$(<[1])" $(UNDEFS) /LIBPATH:$(LIBPATH) /LIBPATH:$(STDLIBPATH) "$(NEEDLIBS)" "$(FINDLIBS)" $(COMMAND)"$(>)"
}
#### Cc #####
@@ -95,7 +66,7 @@ rule Archive-action
actions updated together piecemeal intel-win32-Archive-action
{
if exist "$(<)" set _$(<:B)_="$(<)"
$(INTEL_TOOL_PATH)xilink /lib /out:"$(<)" %_$(<:B)_% "$(>)"
if exist "$(<)" set _$(<:B)_="$(<)"
$(INTEL_TOOL_PATH)xilink /lib /out:"$(<)" %_$(<:B)_% "$(>)"
}

View File

@@ -70,8 +70,15 @@ flags metrowerks STDHDRS : $(METROWERKS_INCLUDE_ROOT)$(SLASH)$(gMETROWERKS_STD_I
rule Link-action
{
metrowerks-Link-action $(<) : $(>) ;
IMPLIB_COMMAND on $(<) = "-implib " ; # will be "multiplied away" if not needed.
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
metrowerks-Link-action $(<) : $(command-file) ;
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
# Here we set the environment variable MWWinx86LibraryFiles (customize for other
@@ -82,7 +89,7 @@ actions metrowerks-Link-action bind NEEDLIBS
{
$(METROWERKS_SETUP)
$(METROWERKS_LINK_SETUP)$(STDLIBS)
mwld -export dllexport -nowraplines $(LINKFLAGS) -L$(LIBPATH) -L$(STDLIBPATH) $(IMPLIB_COMMAND)"$(<[2])" -o "$(<[1])" "$(NEEDLIBS)" "$(>)" -l$(FINDLIBS)
mwld -maxerrors 20 -maxwarnings 20 -export dllexport -nowraplines $(LINKFLAGS) -L$(LIBPATH) -L$(STDLIBPATH) $(IMPLIB_COMMAND)"$(<[2])" -o "$(<[1])" "$(NEEDLIBS)" $(COMMAND)"$(>)" -l$(FINDLIBS)
}
#### Cc #####
@@ -95,7 +102,7 @@ rule Cc-action
actions metrowerks-Cc-action
{
$(METROWERKS_SETUP)
mwcc -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -nowraplines $(CFLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
@@ -107,7 +114,7 @@ rule C++-action
actions metrowerks-C++-action
{
$(METROWERKS_SETUP)
mwcc -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
mwcc -maxerrors 20 -maxwarnings 20 -c -warn on,nounusedexpr,nounused -cwd include -U$(UNDEFS) -D$(DEFINES) -DNOMINMAX -nowraplines -lang c++ $(CFLAGS) $(C++FLAGS) -I- -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####

View File

@@ -9,7 +9,7 @@
# compute MSVC tool path
# You can either put the msvc bin directory in your PATH, or you can set
# MSVCDir to point at the msvc installation directory
MSVC_TOOL_PATH = $(MSVCDir)$(SLASH)bin$(SLASH) ;
MSVC_TOOL_PATH ?= $(MSVCDir)$(SLASH)bin$(SLASH) ;
MSVC_TOOL_PATH ?= "" ; # Don't clobber adjoining text if MSVCDir isn't set
flags msvc CFLAGS <debug-symbols>on : /Zi ;
@@ -54,22 +54,14 @@ flags msvc LINKFLAGS <target-type>DLL : /DLL ;
rule Link-action
{
if $(COMMAND_FILES)
{
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
msvc-Link-action $(<) : $(command-file) ;
local command-file = $(<[1]:S=.CMD) ;
LOCATE on $(command-file) = $(gLOCATE($(<))) ;
COMMAND on $(<) = @ ;
msvc-Link-action $(<) : $(command-file) ;
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
else
{
COMMAND on $(<) = "" ;
msvc-Link-action $(<) : $(>) ;
}
list-files $(command-file) : $(>) ;
DEPENDS $(<) : $(command-file) ;
RmTemps $(<[1]) : $(command-file) ;
}
actions together msvc-Link-action bind NEEDLIBS

View File

@@ -3,5 +3,6 @@
# all copies. This software is provided "as is" without express or implied
# warranty, and with no claim as to its suitability for any purpose.
BOOST_BUILD_INSTALLATION ?= $(BOOST_ROOT)/tools/build ;
SEARCH on <jam-module>allyourbase.jam = $(BOOST_BUILD_PATH) ;
include <jam-module>allyourbase.jam ;