mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
iosbuild.sh: add WebP{Demux,Mux}.framework
Change-Id: I2c16475a7bf9f63d07f4298df7c68859226669d5
This commit is contained in:
parent
b9be7e65f8
commit
9acf18ba46
25
iosbuild.sh
25
iosbuild.sh
@ -35,11 +35,15 @@ readonly TOPDIR=$(pwd)
|
|||||||
readonly BUILDDIR="${TOPDIR}/iosbuild"
|
readonly BUILDDIR="${TOPDIR}/iosbuild"
|
||||||
readonly TARGETDIR="${TOPDIR}/WebP.framework"
|
readonly TARGETDIR="${TOPDIR}/WebP.framework"
|
||||||
readonly DECTARGETDIR="${TOPDIR}/WebPDecoder.framework"
|
readonly DECTARGETDIR="${TOPDIR}/WebPDecoder.framework"
|
||||||
|
readonly MUXTARGETDIR="${TOPDIR}/WebPMux.framework"
|
||||||
|
readonly DEMUXTARGETDIR="${TOPDIR}/WebPDemux.framework"
|
||||||
readonly DEVELOPER=$(xcode-select --print-path)
|
readonly DEVELOPER=$(xcode-select --print-path)
|
||||||
readonly PLATFORMSROOT="${DEVELOPER}/Platforms"
|
readonly PLATFORMSROOT="${DEVELOPER}/Platforms"
|
||||||
readonly LIPO=$(xcrun -sdk iphoneos${SDK} -find lipo)
|
readonly LIPO=$(xcrun -sdk iphoneos${SDK} -find lipo)
|
||||||
LIBLIST=''
|
LIBLIST=''
|
||||||
DECLIBLIST=''
|
DECLIBLIST=''
|
||||||
|
MUXLIBLIST=''
|
||||||
|
DEMUXLIBLIST=''
|
||||||
|
|
||||||
if [[ -z "${SDK}" ]]; then
|
if [[ -z "${SDK}" ]]; then
|
||||||
echo "iOS SDK not available"
|
echo "iOS SDK not available"
|
||||||
@ -53,8 +57,10 @@ else
|
|||||||
echo "iOS SDK Version ${SDK}"
|
echo "iOS SDK Version ${SDK}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
rm -rf ${BUILDDIR} ${TARGETDIR} ${DECTARGETDIR}
|
rm -rf ${BUILDDIR} ${TARGETDIR} ${DECTARGETDIR} \
|
||||||
mkdir -p ${BUILDDIR} ${TARGETDIR}/Headers/ ${DECTARGETDIR}/Headers/
|
${MUXTARGETDIR} ${DEMUXTARGETDIR}
|
||||||
|
mkdir -p ${BUILDDIR} ${TARGETDIR}/Headers/ ${DECTARGETDIR}/Headers/ \
|
||||||
|
${MUXTARGETDIR}/Headers/ ${DEMUXTARGETDIR}/Headers/
|
||||||
|
|
||||||
if [[ ! -e ${SRCDIR}/configure ]]; then
|
if [[ ! -e ${SRCDIR}/configure ]]; then
|
||||||
if ! (cd ${SRCDIR} && sh autogen.sh); then
|
if ! (cd ${SRCDIR} && sh autogen.sh); then
|
||||||
@ -105,6 +111,7 @@ for PLATFORM in ${PLATFORMS}; do
|
|||||||
--build=$(${SRCDIR}/config.guess) \
|
--build=$(${SRCDIR}/config.guess) \
|
||||||
--disable-shared --enable-static \
|
--disable-shared --enable-static \
|
||||||
--enable-libwebpdecoder --enable-swap-16bit-csp \
|
--enable-libwebpdecoder --enable-swap-16bit-csp \
|
||||||
|
--enable-libwebpmux \
|
||||||
CFLAGS="${CFLAGS}"
|
CFLAGS="${CFLAGS}"
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
@ -115,6 +122,8 @@ for PLATFORM in ${PLATFORMS}; do
|
|||||||
|
|
||||||
LIBLIST+=" ${ROOTDIR}/lib/libwebp.a"
|
LIBLIST+=" ${ROOTDIR}/lib/libwebp.a"
|
||||||
DECLIBLIST+=" ${ROOTDIR}/lib/libwebpdecoder.a"
|
DECLIBLIST+=" ${ROOTDIR}/lib/libwebpdecoder.a"
|
||||||
|
MUXLIBLIST+=" ${ROOTDIR}/lib/libwebpmux.a"
|
||||||
|
DEMUXLIBLIST+=" ${ROOTDIR}/lib/libwebpdemux.a"
|
||||||
|
|
||||||
make clean
|
make clean
|
||||||
cd ..
|
cd ..
|
||||||
@ -122,8 +131,20 @@ for PLATFORM in ${PLATFORMS}; do
|
|||||||
export PATH=${OLDPATH}
|
export PATH=${OLDPATH}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "LIBLIST = ${LIBLIST}"
|
||||||
cp -a ${SRCDIR}/src/webp/{decode,encode,types}.h ${TARGETDIR}/Headers/
|
cp -a ${SRCDIR}/src/webp/{decode,encode,types}.h ${TARGETDIR}/Headers/
|
||||||
${LIPO} -create ${LIBLIST} -output ${TARGETDIR}/WebP
|
${LIPO} -create ${LIBLIST} -output ${TARGETDIR}/WebP
|
||||||
|
|
||||||
|
echo "DECLIBLIST = ${DECLIBLIST}"
|
||||||
cp -a ${SRCDIR}/src/webp/{decode,types}.h ${DECTARGETDIR}/Headers/
|
cp -a ${SRCDIR}/src/webp/{decode,types}.h ${DECTARGETDIR}/Headers/
|
||||||
${LIPO} -create ${DECLIBLIST} -output ${DECTARGETDIR}/WebPDecoder
|
${LIPO} -create ${DECLIBLIST} -output ${DECTARGETDIR}/WebPDecoder
|
||||||
|
|
||||||
|
echo "MUXLIBLIST = ${MUXLIBLIST}"
|
||||||
|
cp -a ${SRCDIR}/src/webp/{types,mux,mux_types}.h \
|
||||||
|
${MUXTARGETDIR}/Headers/
|
||||||
|
${LIPO} -create ${MUXLIBLIST} -output ${MUXTARGETDIR}/WebPMux
|
||||||
|
|
||||||
|
echo "DEMUXLIBLIST = ${DEMUXLIBLIST}"
|
||||||
|
cp -a ${SRCDIR}/src/webp/{decode,types,mux_types,demux}.h \
|
||||||
|
${DEMUXTARGETDIR}/Headers/
|
||||||
|
${LIPO} -create ${DEMUXLIBLIST} -output ${DEMUXTARGETDIR}/WebPDemux
|
||||||
|
Loading…
Reference in New Issue
Block a user