small improvements in the iosbuild.sh script
This commit is contained in:
parent
13d2215157
commit
484aaf27a8
1 changed files with 3 additions and 3 deletions
|
@ -12,7 +12,7 @@ fi
|
||||||
# SDK path
|
# SDK path
|
||||||
XCODE_PATH=`xcode-select --print-path`
|
XCODE_PATH=`xcode-select --print-path`
|
||||||
if [ -z "$XCODE_PATH" ]; then
|
if [ -z "$XCODE_PATH" ]; then
|
||||||
echo "Could not find XCode location"
|
echo "Could not find XCode location (use xcode-select -switch to set the correct path)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -250,8 +250,8 @@ if test x$merge = xyes; then
|
||||||
sh $auxdir/mkinstalldirs build/$output
|
sh $auxdir/mkinstalldirs build/$output
|
||||||
cd build
|
cd build
|
||||||
target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
|
target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
|
||||||
(lipo -create -o $output/libSDL2.a */build/.libs/libSDL2.a &&
|
(lipo -create -o $output/libSDL2.a armv6/build/.libs/libSDL2.a armv7/build/.libs/libSDL2.a i386/build/.libs/libSDL2.a &&
|
||||||
lipo -create -o $output/libSDL2main.a */build/libSDL2main.a &&
|
lipo -create -o $output/libSDL2main.a armv6/build/libSDL2main.a armv7/build/libSDL2main.a i386/build/libSDL2main.a &&
|
||||||
cp -r armv6/include ios
|
cp -r armv6/include ios
|
||||||
echo "Build complete!" &&
|
echo "Build complete!" &&
|
||||||
echo "Files can be found under the build/ios directory.") || exit 4
|
echo "Files can be found under the build/ios directory.") || exit 4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue