Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Updated iOS projects and renamed iPhoneOS to iOS

  • Loading branch information
slouken committed Jan 6, 2012
1 parent fd1e207 commit 7a46335c8c65c9c15902859489f49ae6c0fd5ad5
Showing with 45 additions and 332 deletions.
  1. +1 −1 Makefile.in
  2. +13 −14 README.iphoneos → README.iOS
  3. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/Default.png
  4. +22 −208 {Xcode-iPhoneOS/Demos/DemosiPhoneOS.xcodeproj → Xcode-iOS/Demos/Demos.xcodeproj}/project.pbxproj
  5. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/Icon.png
  6. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/Info.plist
  7. +1 −1 {Xcode-iPhoneOS → Xcode-iOS}/Demos/README
  8. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/bitmapfont/kromasky_16x16.bmp
  9. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/bitmapfont/license.txt
  10. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/drums/ds_brush_snare.wav
  11. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/drums/ds_china.wav
  12. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/drums/ds_kick_big_amb.wav
  13. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/drums/ds_loose_skin_mute.wav
  14. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/icon.bmp
  15. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/ship.bmp
  16. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/space.bmp
  17. BIN {Xcode-iPhoneOS → Xcode-iOS}/Demos/data/stroke.bmp
  18. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/accelerometer.c
  19. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/common.c
  20. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/common.h
  21. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/fireworks.c
  22. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/happy.c
  23. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/keyboard.c
  24. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/mixer.c
  25. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/rectangles.c
  26. 0 {Xcode-iPhoneOS → Xcode-iOS}/Demos/src/touch.c
  27. +7 −107 {Xcode-iPhoneOS/SDL/SDLiPhoneOS.xcodeproj → Xcode-iOS/SDL/SDL.xcodeproj}/project.pbxproj
  28. 0 {Xcode-iPhoneOS → Xcode-iOS}/SDL/testsdl-Info.plist
  29. BIN {Xcode-iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/Default.png
  30. BIN {Xcode-iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/Icon.png
  31. 0 {Xcode-iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/Info.plist
  32. BIN ...-iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateIcon.icns
  33. 0 ...iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/TemplateInfo.plist
  34. 0 ...de-iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/___PROJECTNAME___.xcodeproj/project.pbxproj
  35. 0 {Xcode-iPhoneOS → Xcode-iOS}/Template/SDL iOS Application/main.c
  36. 0 {Xcode-iPhoneOS → Xcode-iOS}/Test/Info.plist
  37. 0 {Xcode-iPhoneOS → Xcode-iOS}/Test/README
  38. 0 {Xcode-iPhoneOS → Xcode-iOS}/Test/TestiPhoneOS.xcodeproj/project.pbxproj
  39. +1 −1 include/doxyfile
@@ -36,7 +36,7 @@ VERSION_OBJECTS = @VERSION_OBJECTS@
SDLMAIN_TARGET = libSDLmain.a
SDLMAIN_OBJECTS = @SDLMAIN_OBJECTS@

SRC_DIST = acinclude Android.mk autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS include INSTALL Makefile.minimal Makefile.in README* sdl-config.in sdl.m4 sdl.pc.in SDL.spec.in src test TODO VisualC.html VisualC VisualCE Watcom-Win32.zip WhatsNew Xcode Xcode-iPhoneOS
SRC_DIST = acinclude Android.mk autogen.sh Borland.html Borland.zip BUGS build-scripts configure configure.in COPYING CREDITS include INSTALL Makefile.minimal Makefile.in README* sdl-config.in sdl.m4 sdl.pc.in SDL.spec.in src test TODO VisualC.html VisualC VisualCE Watcom-Win32.zip WhatsNew Xcode Xcode-iOS
GEN_DIST = SDL.spec

HDRS = \
@@ -5,30 +5,31 @@ Building the Simple DirectMedia Layer for iPhone OS 2.0
Requirements: Mac OS X v10.5 or later and the iPhone SDK.

Instructions:
1. Open SDLiPhoneOS.xcodeproj (located in Xcode-iPhoneOS/SDL) in XCode.
2. Set Project->Set Active SDK to "Use Project Settings"
3. Select your desired target, and hit build.
1. Open SDL.xcodeproj (located in Xcode-iOS/SDL) in XCode.
2. Select your desired target, and hit build.

There are three build targets:
- StaticLibiPhoneOS:
Build SDL as a statically linked (armv6) library for iPhone OS 2.0.
- StaticLibSimulator:
Build SDL as a statically linked (x86) library for the iPhone Simulator
- libSDL.a:
Build SDL as a statically linked library
- testsdl
Build a test program (there are known test failures which are fine)
- Template:
Package a project template together with the SDL for iPhone static libraries and copies of the SDL headers. The template includes proper references to the SDL library and headers, skeleton code for a basic SDL program, and placeholder graphics for the application icon and startup screen.

==============================================================================
Using the Simple DirectMedia Layer for iPhone OS 2.0
Using the Simple DirectMedia Layer for iOS
==============================================================================

FIXME: This needs to be updated for the latest methods

Here is the easiest method:
1. Build the SDL libraries (libSDLiPhoneOS.a and libSDLSimulator.a) and the iPhone SDL Application template.
1. Install the iPhone SDL Application template by copying it to one of XCode's template directories. I recommend creating a directory called "SDL" in "/Developer/Platforms/iPhoneOS.platform/Developer/Library/XCode/Project Templates/" and placing it there.
1. Build the SDL libraries (libSDL.a and libSDLSimulator.a) and the iPhone SDL Application template.
1. Install the iPhone SDL Application template by copying it to one of XCode's template directories. I recommend creating a directory called "SDL" in "/Developer/Platforms/iOS.platform/Developer/Library/XCode/Project Templates/" and placing it there.
2. Start a new project using the template. The project should be immediately ready for use with SDL.

Here is a more manual method:
1. Create a new iPhone view based application.
2. Build the SDL static libraries (libSDLiPhoneOS.a and libSDLSimulator.a) for iPhone and include them in your project. XCode will ignore the library that is not currently of the correct architecture, hence your app will work both on iPhone and in the iPhone Simulator.
2. Build the SDL static libraries (libSDL.a and libSDLSimulator.a) for iPhone and include them in your project. XCode will ignore the library that is not currently of the correct architecture, hence your app will work both on iPhone and in the iPhone Simulator.
3. Include the SDL header files in your project.
4. Remove the ApplicationDelegate.h and ApplicationDelegate.m files -- SDL for iPhone provides its own UIApplicationDelegate. Remove MainWindow.xib -- SDL for iPhone produces its user interface programmatically.
5. Delete the contents of main.m and program your app as a regular SDL program instead. You may replace main.m with your own main.c, but you must tell XCode not to use the project prefix file, as it includes Objective-C code.
@@ -86,7 +87,7 @@ MySDLApp Home/
When your SDL based iPhone application starts up, it sets the working directory to the main bundle (MySDLApp Home/MySDLApp.app), where your application resources are stored. You cannot write to this directory. Instead, I advise you to write document files to "../Documents/" and preferences to "../Library/Preferences".

More information on this subject is available here:
http://developer.apple.com/iphone/library/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/ApplicationEnvironment/chapter_6_section_3.html#//apple_ref/doc/uid/TP40007072-CH7-SW21
http://developer.apple.com/library/ios/#documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Introduction/Introduction.html

==============================================================================
Notes -- iPhone SDL limitations
@@ -107,5 +108,3 @@ Audio:
Loading Shared Objects:
This is disabled by default since it seems to break the terms of the iPhone SDK agreement. It can be re-enabled in SDL_config_iphoneos.h.



File renamed without changes.

0 comments on commit 7a46335

Please sign in to comment.