Skip to content

Instantly share code, notes, and snippets.

@guanqun
Created December 28, 2013 07:31
Show Gist options
  • Save guanqun/8157004 to your computer and use it in GitHub Desktop.
Save guanqun/8157004 to your computer and use it in GitHub Desktop.
###
$ cat build-ios/build_ios_fat.sh
#!/bin/sh
# build.sh
IOS_BASE_SDK="5.1"
IOS_DEPLOY_TGT="5.0"
../configure --target=arm-apple-darwin10 --with-ios-
target=iPhoneSimulator --disable-shared-js --disable-tests --enable-
strip
make -j4
mv libjs_static.a libjs_static_i386.a
../configure --target=arm-apple-darwin10 --with-ios-target=iPhoneOS --
disable-shared-js --disable-tests --enable-strip
make -j4
mv libjs_static.a libjs_static_armv7.a
# make fat library
lipo -create -output libjs_static.a libjs_static_i386.a
libjs_static_armv7.a
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment