small improvements in the iosbuild.sh script
authorGabriel Jacobo <gabomdq@gmail.com>
Tue, 19 Jun 2012 20:16:45 -0300
changeset 633485b8778a05c2
parent 6333 8d541aa4e1da
child 6335 fbb84f5b985f
small improvements in the iosbuild.sh script
build-scripts/iosbuild.sh
     1.1 --- a/build-scripts/iosbuild.sh	Tue Jun 19 18:25:04 2012 -0300
     1.2 +++ b/build-scripts/iosbuild.sh	Tue Jun 19 20:16:45 2012 -0300
     1.3 @@ -12,7 +12,7 @@
     1.4  # SDK path
     1.5  XCODE_PATH=`xcode-select --print-path`
     1.6  if [ -z "$XCODE_PATH" ]; then
     1.7 -    echo "Could not find XCode location"
     1.8 +    echo "Could not find XCode location (use xcode-select -switch to set the correct path)"
     1.9      exit 1
    1.10  fi
    1.11  
    1.12 @@ -250,8 +250,8 @@
    1.13      sh $auxdir/mkinstalldirs build/$output
    1.14      cd build
    1.15      target=`find . -mindepth 4 -maxdepth 4 -type f -name '*.dylib' | head -1 | sed 's|.*/||'`
    1.16 -    (lipo -create -o $output/libSDL2.a */build/.libs/libSDL2.a &&
    1.17 -     lipo -create -o $output/libSDL2main.a */build/libSDL2main.a &&
    1.18 +    (lipo -create -o $output/libSDL2.a armv6/build/.libs/libSDL2.a armv7/build/.libs/libSDL2.a i386/build/.libs/libSDL2.a &&
    1.19 +     lipo -create -o $output/libSDL2main.a armv6/build/libSDL2main.a armv7/build/libSDL2main.a i386/build/libSDL2main.a &&
    1.20       cp -r armv6/include ios
    1.21       echo "Build complete!" &&
    1.22       echo "Files can be found under the build/ios directory.") || exit 4