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

Attempt to handle frameworks in consistent manner.

* darwin-tools.jam; Use -F option to specify the framework location, if the framework has one.
* python.jam; Try and determine where the Python framework is.
* python.jam; Remove requirement that warnings be off when building.


[SVN r20616]
This commit is contained in:
Rene Rivera
2003-11-03 19:50:47 +00:00
parent 3677e4b637
commit ea78e214f7
2 changed files with 15 additions and 6 deletions

View File

@@ -157,7 +157,7 @@ actions darwin-Link-action bind NEEDLIBS NEEDIMPS
$(SHELL_EXPORT)$(gSHELL_LIBPATH)
$(.GCC_BIN_DIR)$(.GXX) $(LINKFLAGS) -o "$(<[1])" "$(>)" \
-L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) \
-framework$(_)$(FRAMEWORKS) -bundle_loader$(_)"$(BUNDLE_LOADER)" "$(BUNDLE_LOADER)"
-F$(FRAMEWORKS:D) -framework$(_)$(FRAMEWORKS:D=) -bundle_loader$(_)"$(BUNDLE_LOADER)" "$(BUNDLE_LOADER)"
}
actions darwin-Link-DyLib-action bind NEEDLIBS NEEDIMPS
@@ -168,7 +168,7 @@ actions darwin-Link-DyLib-action bind NEEDLIBS NEEDIMPS
&& \
$(.GCC_BIN_DIR)$(.GXX) $(LINKFLAGS) $(DLLFLAGS) -o "$(<[1])" "$(<[1]:S=.lo)" \
-L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(NEEDLIBS)" "$(NEEDLIBS)" -l$(FINDLIBS) \
-framework$(_)$(FRAMEWORKS) \
-F$(FRAMEWORKS:D) -framework$(_)$(FRAMEWORKS:D=) \
&& \
rm -f "$(<[1]:S=.lo)"
}
@@ -183,7 +183,7 @@ rule Cc-action
actions darwin-Cc-action
{
$(.GCC_BIN_DIR)$(.GCC) -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
$(.GCC_BIN_DIR)$(.GCC) -c -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -F$(FRAMEWORKS:D) -framework$(_)$(FRAMEWORKS:D=) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### C++ ####
@@ -195,7 +195,7 @@ rule C++-action
actions darwin-C++-action
{
$(.GCC_BIN_DIR)$(.GXX) -c -ftemplate-depth-120 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
$(.GCC_BIN_DIR)$(.GXX) -c -ftemplate-depth-120 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -F$(FRAMEWORKS:D) -framework$(_)$(FRAMEWORKS:D=) -I"$(HDRS)" -I"$(STDHDRS)" -o "$(<)" "$(>)"
}
#### Archive ####

View File

@@ -81,13 +81,22 @@ if $(NT)
}
else if $(UNIX) && $(OS) = MACOSX
{
PYTHON_ROOT ?= /Library/Frameworks/Python.framework/Versions/$(PYTHON_VERSION) ;
if ! $(PYTHON_ROOT)
{
if [ GLOB /System/Library/Frameworks : Python.framework ]
{
PYTHON_ROOT ?= /System/Library/Frameworks/Python.framework/Versions/$(PYTHON_VERSION) ;
}
else
{
PYTHON_ROOT ?= /Library/Frameworks/Python.framework/Versions/$(PYTHON_VERSION) ;
}
}
PYTHON_ROOT = $(PYTHON_ROOT:J=" ") ;
PYTHON_INCLUDES ?= $(PYTHON_ROOT)/include/python$(PYTHON_VERSION) ;
PYTHON_PROPERTIES ?=
<sysinclude>$(PYTHON_INCLUDES)
<warnings>off
;
}
else if $(UNIX)