. $topsrcdir/browser/config/mozconfig mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../build mk_add_options MOZ_MAKE_FLAGS=-j4 # --- Universal build --- mk_add_options MOZ_BUILD_PROJECTS="ppc i386" mk_add_options MOZ_UNIFY_BDATE=1 mk_add_options MOZ_POSTFLIGHT_ALL+=build/macosx/universal/flight.mk DARWIN_VERSION=`uname -r` ac_add_app_options ppc --target=powerpc-apple-darwin$DARWIN_VERSION ac_add_app_options i386 --target=i386-apple-darwin$DARWIN_VERSION GCC_VERSION=4.0 UNIVERSAL_BINARY=1 NATIVE_CPU=`uname -p` if test "$NATIVE_CPU" = "powerpc" ; then NATIVE_CPU=ppc fi if test -n "$MOZ_BUILD_APP" ; then TARGET_CPU=$MOZ_BUILD_APP if test "$NATIVE_CPU" != "$TARGET_CPU" ; then CROSS_COMPILE=1 fi CC="distcc /usr/bin/gcc-$GCC_VERSION -arch $TARGET_CPU" CXX="distcc /usr/bin/g++-$GCC_VERSION -arch $TARGET_CPU" HOST_CC=gcc-4.0 HOST_CXX=g++-4.0 RANLIB=ranlib AR=ar AS=$CC LD=ld STRIP="strip -x -S" if test "$TARGET_CPU" = "i386" ; then ac_add_options --enable-optimize="-O3 -march=i686 -mfpmath=sse -mieee-fp -mmmx -msse -msse2 -msse3 -ftree-vectorize -fforce-addr -fsched-spec-load-dangerous -ftree-loop-linear -fivopts" fi if test "$TARGET_CPU" = "ppc" ; then ac_add_options --enable-optimize="-O3 -mcpu=G5 -mpowerpc-gpopt -mtune=G5 -mpowerpc64 -fconstant-cfstrings" fi fi # --- Universal build --- ac_add_options --enable-macos-target=10.4 ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk ac_add_options --disable-tests ac_add_options --disable-debug ac_add_options --disable-shared ac_add_options --enable-strip ac_add_options --enable-static ac_add_options --enable-static-libs ac_add_options --enable-pthreads ac_add_options --without-system-png ac_add_options --without-system-mng ac_add_options --without-system-nspr ac_add_options --without-system-zlib ac_add_options --without-system-jpeg ac_add_options --enable-svg ac_add_options --enable-canvas ac_add_options --enable-update-channel=release ac_add_options --enable-official-branding ac_add_options --enable-update-packaging