Skip to content

Instantly share code, notes, and snippets.

@wuhao5
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wuhao5/8894416 to your computer and use it in GitHub Desktop.
Save wuhao5/8894416 to your computer and use it in GitHub Desktop.
mkdir -p lib
mkdir -p include
xcodebuild -target Box2D -sdk iphoneos -project Build/xcode5/Box2D.xcodeproj/ -configuration=Release -arch armv6 -arch armv7 -arch armv7s
xcodebuild -target Box2D -sdk iphonesimulator -project Build/xcode5/Box2D.xcodeproj/ -configuration=Release
lipo -create Build/xcode5/build/Release-iphoneos/libBox2D.a Build/xcode5/build/Release-iphonesimulator/libBox2D.a -o lib/libBox2D.a
find Box2D -name "*.h" -type f | while read line; do DIRNAME=`dirname $line`; mkdir -p include/$DIRNAME; cp $line include/$DIRNAME/.; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment