README.iOS
changeset 6333 8d541aa4e1da
parent 6251 3e8c673cad58
child 6342 ac83b73f0edd
     1.1 --- a/README.iOS	Tue Jun 19 13:50:14 2012 -0400
     1.2 +++ b/README.iOS	Tue Jun 19 18:25:04 2012 -0300
     1.3 @@ -17,6 +17,26 @@
     1.4  	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.
     1.5  
     1.6  ==============================================================================
     1.7 +Build SDL for iOS from the command line
     1.8 +==============================================================================
     1.9 +
    1.10 +1. cd (PATH WHERE THE SDL CODE IS)/build-scripts
    1.11 +2. ./iosbuild.sh
    1.12 +
    1.13 +If everything goes fine, you should see a build/ios directory, inside there's
    1.14 +two directories "lib" and "include". 
    1.15 +"include" contains a copy of the SDL headers that you'll need for your project,
    1.16 +make sure to configure XCode to look for headers there.
    1.17 +"lib" contains find two files, libSDL2.a and libSDL2main.a, you have to add both 
    1.18 +to your XCode project. These libraries contain three architectures in them,
    1.19 +armv6 for legacy devices, armv7, and i386 (for the simulator).
    1.20 +By default, iosbuild.sh will autodetect the SDK version you have installed using 
    1.21 +xcodebuild -showsdks, and build for iOS >= 3.0, you can override this behaviour 
    1.22 +by setting the MIN_OS_VERSION variable, ie:
    1.23 +
    1.24 +MIN_OS_VERSION=4.2 ./iosbuild.sh
    1.25 +
    1.26 +==============================================================================
    1.27  Using the Simple DirectMedia Layer for iOS
    1.28  ==============================================================================
    1.29