mirror of
https://github.com/boostorg/build.git
synced 2026-02-16 01:12:13 +00:00
Patch from Andre Hentz. * v2/build/toolset.jam (inherit-flags): Take an extra parameter describing properties that should not be inherited. * v2/build/type.jam (register-suffixes): Removed local qualifier. * v2/test/BoostBuild.py (prepare_suffix_map): Add .dylib if OS is Darwin. (Tester::_init_): path to bjam on Darwin. * v2/test/prebuilt.py make sure $toolset is expanded correctly. * v2/test/prebuilt/project-root.jam use $toolset instead of gcc. * v2/test/prebuilt/ext/project-root.jam use $toolset instead of gcc. * v2/test/prebuilt/ext/Jamfile2.jam handle extension .dylib. * v2/test/prebuilt/ext/Jamfile2.jam handle extension .dylib. * v2/tools/darwin.jam inline call to toolset.inherit. filter <debug-symbols>off because -s is not accepted for dlls. speficy that .dylib files are of type SHARED_LIB. (actions link): pass -s for static linkage. (actions link.dll): pass -L flag with path to libraries. (actions archive): -c inhibits warning. [SVN r22332]
44 lines
716 B
Plaintext
44 lines
716 B
Plaintext
|
|
# This Jamfile is the same as Jamfile2, except that
|
|
# it tries to access prebuilt targets using absolute
|
|
# paths. It used to be broken on Windows.
|
|
|
|
import modules ;
|
|
|
|
local dll-suffix = so ;
|
|
if [ modules.peek : OS ] in CYGWIN NT
|
|
{
|
|
if $toolset = gcc
|
|
{
|
|
dll-suffix = dll ;
|
|
}
|
|
else
|
|
{
|
|
dll-suffix = lib ;
|
|
}
|
|
}
|
|
if $toolset = darwin
|
|
{
|
|
dll-suffix = dylib ;
|
|
}
|
|
|
|
|
|
|
|
project ext ;
|
|
|
|
# Assumed bjam was invoked from the project root
|
|
local pwd = [ PWD ] ;
|
|
|
|
lib a :
|
|
: <file>$(pwd)/ext/bin/$toolset/debug/a.$(dll-suffix) <variant>debug
|
|
:
|
|
: <include>debug
|
|
;
|
|
|
|
lib a :
|
|
: <file>$(pwd)/ext/bin/$toolset/release/a.$(dll-suffix) <variant>release
|
|
:
|
|
: <include>release
|
|
;
|
|
|