зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
27246c512d
Коммит
7ff4f02e7f
|
@ -59,7 +59,7 @@ TARGET = Camino
|
|||
endif
|
||||
|
||||
all:
|
||||
pbxbuild -target $(TARGET) -buildstyle $(BUILDSTYLE)
|
||||
$(PBBUILD) -target $(TARGET) -buildstyle $(BUILDSTYLE)
|
||||
|
||||
clean clobber:
|
||||
rm -rf build
|
||||
|
|
|
@ -70,7 +70,7 @@ export::
|
|||
endif
|
||||
|
||||
libs::
|
||||
pbxbuild -target $(TARGET) -buildstyle $(BUILDSTYLE)
|
||||
$(PBBUILD) -target $(TARGET) -buildstyle $(BUILDSTYLE)
|
||||
|
||||
clean clobber::
|
||||
rm -rf build
|
||||
|
|
|
@ -255,6 +255,7 @@ XARGS = @XARGS@
|
|||
STRIP = @STRIP@
|
||||
DOXYGEN = @DOXYGEN@
|
||||
MAKE = @MAKE@
|
||||
PBBUILD = @PBBUILD@
|
||||
|
||||
ifdef MOZ_NATIVE_JPEG
|
||||
JPEG_CFLAGS = @JPEG_CFLAGS@
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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/
|
||||
|
||||
|
|
|
@ -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) $< $@
|
||||
|
|
Загрузка…
Ссылка в новой задаче