Merge "Fix more comments for iobuild.sh"

This commit is contained in:
James Zern 2013-01-25 17:52:23 -08:00 committed by Gerrit Code Review
commit f112221e77

View File

@ -13,7 +13,7 @@ set -e
# Extract the latest SDK version from the final field of the form: iphoneosX.Y # Extract the latest SDK version from the final field of the form: iphoneosX.Y
declare -r SDK=$(xcodebuild -showsdks \ declare -r SDK=$(xcodebuild -showsdks \
| grep iphoneos | sort | tail -n 1 | awk '{ print substr($NF, 9)}' | grep iphoneos | sort | tail -n 1 | awk '{print substr($NF, 9)}'
) )
declare -r OLDPATH=${PATH} declare -r OLDPATH=${PATH}
@ -72,12 +72,13 @@ for PLATFORM in ${PLATFORMS}; do
export PATH="${DEVROOT}/usr/bin:${OLDPATH}" export PATH="${DEVROOT}/usr/bin:${OLDPATH}"
${SRCDIR}/configure --host=${ARCH}-apple-darwin --prefix=${ROOTDIR} \ ${SRCDIR}/configure --host=${ARCH}-apple-darwin --prefix=${ROOTDIR} \
--build=$(${SRCDIR}/config.guess) \
--disable-shared --enable-static \ --disable-shared --enable-static \
--enable-libwebpdecoder --enable-swap-16bit-csp --enable-libwebpdecoder --enable-swap-16bit-csp
# run make only in the src/ directory to create libwebpdecoder.a # run make only in the src/ directory to create libwebpdecoder.a
cd src/ cd src/
make make V=0
make install make install
LIBLIST+=" ${ROOTDIR}/lib/libwebpdecoder.a" LIBLIST+=" ${ROOTDIR}/lib/libwebpdecoder.a"
@ -88,5 +89,5 @@ for PLATFORM in ${PLATFORMS}; do
export PATH=${OLDPATH} export PATH=${OLDPATH}
done done
cp -a src/webp/* ${TARGETDIR}/Headers/ cp -a ${SRCDIR}/src/webp/* ${TARGETDIR}/Headers/
${LIPO} -create ${LIBLIST} -output ${TARGETDIR}/WebP ${LIPO} -create ${LIBLIST} -output ${TARGETDIR}/WebP