Search for either pbxbuild or pbbuild, to allow building with the xcode tools on Mac OS X. Also, use -no-cpp-precomp instead of -traditional-cpp, for gcc 3.3 compatibility. Bug 211895, r=sfraser.

This commit is contained in:
bryner%netscape.com 2003-07-07 18:22:04 +00:00
parent 27246c512d
commit 7ff4f02e7f
6 changed files with 12 additions and 6 deletions

View File

@ -59,7 +59,7 @@ TARGET = Camino
endif
all:
pbxbuild -target $(TARGET) -buildstyle $(BUILDSTYLE)
$(PBBUILD) -target $(TARGET) -buildstyle $(BUILDSTYLE)
clean clobber:
rm -rf build

View File

@ -70,7 +70,7 @@ export::
endif
libs::
pbxbuild -target $(TARGET) -buildstyle $(BUILDSTYLE)
$(PBBUILD) -target $(TARGET) -buildstyle $(BUILDSTYLE)
clean clobber::
rm -rf build

View File

@ -255,6 +255,7 @@ XARGS = @XARGS@
STRIP = @STRIP@
DOXYGEN = @DOXYGEN@
MAKE = @MAKE@
PBBUILD = @PBBUILD@
ifdef MOZ_NATIVE_JPEG
JPEG_CFLAGS = @JPEG_CFLAGS@

View File

@ -432,6 +432,11 @@ AC_PATH_PROG(XARGS, xargs)
if test -z "$XARGS" || test "$XARGS" = ":"; then
AC_MSG_ERROR([xargs not found in \$PATH .])
fi
case "$target_os" in
darwin*)
AC_PATH_PROGS(PBBUILD, pbbuild pbxbuild)
;;
esac
dnl Be sure the make we use is GNU make.
dnl on win32, gmake.exe is the generally the wrong version
@ -850,8 +855,8 @@ case "$target" in
*-darwin*)
_PEDANTIC=
CFLAGS="$CFLAGS -fpascal-strings -traditional-cpp -fno-common"
CXXFLAGS="$CXXFLAGS -fpascal-strings -traditional-cpp -fno-common"
CFLAGS="$CFLAGS -fpascal-strings -no-cpp-precomp -fno-common"
CXXFLAGS="$CXXFLAGS -fpascal-strings -no-cpp-precomp -fno-common"
DLL_SUFFIX=".dylib"
DSO_LDOPTS=''
STRIP="$STRIP -x -S"

View File

@ -59,7 +59,7 @@ export::
endif
libs::
pbxbuild -buildstyle $(BUILDSTYLE) install
$(PBBUILD) -buildstyle $(BUILDSTYLE) install
mkdir -p $(DIST)/package
cp -R build/UninstalledProducts/PrintPDE.plugin $(DIST)/package/

View File

@ -81,7 +81,7 @@ install-plugin: build-plugin
resources: $(RESOURCE_FILES)
build-plugin: resources
pbxbuild -target $(TARGET) -buildstyle $(BUILDSTYLE)
$(PBBUILD) -target $(TARGET) -buildstyle $(BUILDSTYLE)
_%.rsrc: %.rsrc
$(ASDECODE) $< $@