README.iOS
changeset 6333 8d541aa4e1da
parent 6251 3e8c673cad58
child 6342 ac83b73f0edd
equal deleted inserted replaced
6332:019660f4cc2b 6333:8d541aa4e1da
    13 	Build SDL as a statically linked library
    13 	Build SDL as a statically linked library
    14 - testsdl
    14 - testsdl
    15 	Build a test program (there are known test failures which are fine)
    15 	Build a test program (there are known test failures which are fine)
    16 - Template:
    16 - Template:
    17 	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.
    17 	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.
       
    18 
       
    19 ==============================================================================
       
    20 Build SDL for iOS from the command line
       
    21 ==============================================================================
       
    22 
       
    23 1. cd (PATH WHERE THE SDL CODE IS)/build-scripts
       
    24 2. ./iosbuild.sh
       
    25 
       
    26 If everything goes fine, you should see a build/ios directory, inside there's
       
    27 two directories "lib" and "include". 
       
    28 "include" contains a copy of the SDL headers that you'll need for your project,
       
    29 make sure to configure XCode to look for headers there.
       
    30 "lib" contains find two files, libSDL2.a and libSDL2main.a, you have to add both 
       
    31 to your XCode project. These libraries contain three architectures in them,
       
    32 armv6 for legacy devices, armv7, and i386 (for the simulator).
       
    33 By default, iosbuild.sh will autodetect the SDK version you have installed using 
       
    34 xcodebuild -showsdks, and build for iOS >= 3.0, you can override this behaviour 
       
    35 by setting the MIN_OS_VERSION variable, ie:
       
    36 
       
    37 MIN_OS_VERSION=4.2 ./iosbuild.sh
    18 
    38 
    19 ==============================================================================
    39 ==============================================================================
    20 Using the Simple DirectMedia Layer for iOS
    40 Using the Simple DirectMedia Layer for iOS
    21 ==============================================================================
    41 ==============================================================================
    22 
    42