forked from BradLarson/GPUImage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request BradLarson#955 from zimuliu/master
Added build.sh script to compile a universal library for iOS
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
IOSSDK_VER="6.1" | ||
|
||
# xcodebuild -showsdks | ||
|
||
cd framework | ||
xcodebuild -project GPUImage.xcodeproj -target GPUImage -configuration Release -sdk iphoneos${IOSSDK_VER} build | ||
xcodebuild -project GPUImage.xcodeproj -target GPUImage -configuration Release -sdk iphonesimulator${IOSSDK_VER} build | ||
cd .. | ||
|
||
cd build | ||
# for the fat lib file | ||
mkdir -p Release-iphone/lib | ||
xcrun -sdk iphoneos lipo -create Release-iphoneos/libGPUImage.a Release-iphonesimulator/libGPUImage.a -output Release-iphone/lib/libGPUImage.a | ||
xcrun -sdk iphoneos lipo -info Release-iphone/lib/libGPUImage.a | ||
# for header files | ||
mkdir -p Release-iphone/include | ||
cp ../framework/Source/*.h Release-iphone/include | ||
cp ../framework/Source/iOS/*.h Release-iphone/include |