Advertisement
Guest User

ios-build.sh

a guest
Apr 10th, 2014
280
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cd ~/Projects/third-party/SDL2.hg/Xcode-iOS/SDL
  2.  
  3. mkdir "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2/libs"
  4. mkdir "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2/include"
  5.  
  6. xcodebuild -sdk iphoneos7.1 -configuration Debug -scheme libSDL BUILD_DIR="/private/tmp/SDL2"
  7.  
  8. xcodebuild -sdk iphonesimulator7.1 -configuration Debug -scheme libSDL -arch i386 BUILD_DIR="/private/tmp/SDL2"
  9.  
  10. # Universal binaries (i386, armv7, armv7s)
  11. lipo -create /private/tmp/SDL2/Debug-iphoneos/libSDL2.a /private/tmp/SDL2/Debug-iphonesimulator/libSDL2.a -output "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2/libs/libSDL2.a"
  12.  
  13. # Headers
  14. cp -av ../../include/ "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2/include"
  15.  
  16. cd ~/Projects/third-party/SDL2_image.hg/Xcode-iOS
  17.  
  18. mkdir "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_image/libs"
  19. mkdir "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_image/include"
  20.  
  21. xcodebuild -sdk iphoneos7.1 -configuration Debug -scheme libSDL_image BUILD_DIR="/private/tmp/SDL2_image"
  22.  
  23. xcodebuild -sdk iphonesimulator7.1 -configuration Debug -scheme libSDL_image -arch i386 BUILD_DIR="/private/tmp/SDL2_image"
  24.  
  25. lipo -create /private/tmp/SDL2_image/Debug-iphoneos/libSDL2_image.a /private/tmp/SDL2_image/Debug-iphonesimulator/libSDL2_image.a -output "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_image/libs/libSDL2_image.a"
  26.  
  27. # Headers
  28. cp -av ../SDL_image.h "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_image/include"
  29.  
  30. cd ~/Projects/third-party/SDL2_ttf.hg/Xcode-iOS
  31.  
  32. mkdir "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_ttf/libs"
  33. mkdir "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_ttf/include"
  34.  
  35. xcodebuild -sdk iphoneos7.1 -configuration Debug BUILD_DIR="/private/tmp/SDL2_ttf"
  36.  
  37. xcodebuild -sdk iphonesimulator7.1 -configuration Debug -arch i386 BUILD_DIR="/private/tmp/SDL2_ttf"
  38.  
  39. lipo -create /private/tmp/SDL2_ttf/Debug-iphoneos/libSDL2_ttf.a /private/tmp/SDL2_ttf/Debug-iphonesimulator/libSDL2_ttf.a -output "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_ttf/libs/libSDL2_ttf.a"
  40.  
  41. # Headers
  42. cp -av ../SDL_ttf.h "${HOME}/Projects/hello-sdl2-ios-cmake.git/third-party/ios/SDL2_ttf/include"
Advertisement
RAW Paste Data Copied
Advertisement