diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2013-06-19 15:29:44 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2013-06-20 16:45:35 +0200 |
commit | 0a927854a10e1e6b9770a81e2e1d9f3093631757 (patch) | |
tree | 3d65d820d9fdba2d0d394d99c36290c851b78ca0 /ios/build_libs.sh | |
parent | 1ae8f19179c5f0f8c6352b3c7855465325d5449a (diff) | |
download | mupdf-0a927854a10e1e6b9770a81e2e1d9f3093631757.tar.xz |
Rearrange source files.
Diffstat (limited to 'ios/build_libs.sh')
-rw-r--r-- | ios/build_libs.sh | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/ios/build_libs.sh b/ios/build_libs.sh deleted file mode 100644 index 9f06ab0b..00000000 --- a/ios/build_libs.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -# Call this script from a "Run Script" target in the Xcode project to -# cross compile MuPDF and third party libraries using the regular Makefile. -# Also see "iOS" section in Makerules. - -echo Generating cmap and font files -echo "Apple broke Xcode external targets yet again, and I can't be bothered to fix it." -echo "Run the 'make generate' command manually from now on!" -echo "If you see an error while running GEN, you've forgotten." - -# make -C .. verbose=yes generate || exit 1 - -export OS=ios -export build=$(echo $CONFIGURATION | tr A-Z a-z) - -case $ARCHS in - armv6) ARCHFLAGS="-arch armv6 -mno-thumb" ;; - armv7) ARCHFLAGS="-arch armv7 -mthumb" ;; - i386) ARCHFLAGS="-arch i386" ;; - *) echo "Unknown architecture:" $ARCHS; exit 1 ;; -esac - -export CFLAGS="$ARCHFLAGS -isysroot $SDKROOT" -export LDFLAGS="$ARCHFLAGS -isysroot $SDKROOT" -export OUT=build/$build-$OS-$ARCHS - -echo Building libraries for $ARCHS. -make -C .. libs || exit 1 - -echo Assembling final library in $TARGET_BUILD_DIR/. -mkdir -p "$TARGET_BUILD_DIR" -rm -f $TARGET_BUILD_DIR/libLibraries.a -ar cr $TARGET_BUILD_DIR/libLibraries.a ../$OUT/*.o -ranlib $TARGET_BUILD_DIR/libLibraries.a - -echo Done. |