Last active
August 29, 2015 13:56
-
-
Save wuhao5/8894416 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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