Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/libraries/osx/build-osx-libs.sh
Show First 20 Lines • Show All 338 Lines • ▼ Show 20 Lines | then | ||||
# Don't use X11 - we don't need it and Mountain Lion removed it | # Don't use X11 - we don't need it and Mountain Lion removed it | ||||
(./configure CPPFLAGS="-I${ICONV_DIR}/include" \ | (./configure CPPFLAGS="-I${ICONV_DIR}/include" \ | ||||
CFLAGS="$CFLAGS" \ | CFLAGS="$CFLAGS" \ | ||||
CXXFLAGS="$CXXFLAGS" \ | CXXFLAGS="$CXXFLAGS" \ | ||||
LDFLAGS="$LDFLAGS -L${ICONV_DIR}/lib" \ | LDFLAGS="$LDFLAGS -L${ICONV_DIR}/lib" \ | ||||
--prefix="$INSTALL_DIR" \ | --prefix="$INSTALL_DIR" \ | ||||
--disable-video-x11 \ | --disable-video-x11 \ | ||||
--without-x \ | --without-x \ | ||||
--enable-video-cocoa \ | |||||
--enable-shared=no \ | --enable-shared=no \ | ||||
&& make $JOBS && make install) || die "SDL2 build failed" | && make $JOBS && make install) || die "SDL2 build failed" | ||||
popd | popd | ||||
touch .already-built | touch .already-built | ||||
else | else | ||||
already_built | already_built | ||||
fi | fi | ||||
popd > /dev/null | popd > /dev/null | ||||
▲ Show 20 Lines • Show All 599 Lines • ▼ Show 20 Lines | ../configure $CONF_OPTS \ | ||||
--disable-optimize \ | --disable-optimize \ | ||||
--enable-js-diagnostics \ | --enable-js-diagnostics \ | ||||
--enable-gczeal \ | --enable-gczeal \ | ||||
&& make ${JOBS}) || die "Spidermonkey build failed" | && make ${JOBS}) || die "Spidermonkey build failed" | ||||
# js-config.h is different for debug and release builds, so we need different include directories for both | # js-config.h is different for debug and release builds, so we need different include directories for both | ||||
mkdir -p $INCLUDE_DIR_DEBUG | mkdir -p $INCLUDE_DIR_DEBUG | ||||
cp -R -L dist/include/* $INCLUDE_DIR_DEBUG/ | cp -R -L dist/include/* $INCLUDE_DIR_DEBUG/ | ||||
cp dist/sdk/lib/*.a $INSTALL_DIR/lib | cp dist/sdk/lib/*.a $INSTALL_DIR/lib | ||||
cp js/src/*.a $INSTALL_DIR/lib | |||||
popd | popd | ||||
mv moz.build.bak moz.build | mv moz.build.bak moz.build | ||||
perl -i.bak -pe 's/(^STATIC_LIBRARY_NAME\s+=).*/$1'\''mozjs45-ps-release'\''/' moz.build | perl -i.bak -pe 's/(^STATIC_LIBRARY_NAME\s+=).*/$1'\''mozjs45-ps-release'\''/' moz.build | ||||
mkdir -p build-release | mkdir -p build-release | ||||
pushd build-release | pushd build-release | ||||
(CC="clang" CXX="clang++" CXXFLAGS="${TLCXXFLAGS}" AR=ar CROSS_COMPILE=1 \ | (CC="clang" CXX="clang++" CXXFLAGS="${TLCXXFLAGS}" AR=ar CROSS_COMPILE=1 \ | ||||
../configure $CONF_OPTS \ | ../configure $CONF_OPTS \ | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator