mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-25 18:35:38 +00:00
6a632eb23c
Alex Szpakowski SDL's code for exposing the accelerometer as a joystick on iOS currently uses UIAccelerometer, which was superseded by the CoreMotion framework and deprecated since iOS 5. The UIAccelerometer code still works (for now), but it also throws deprecation warnings whenever SDL is built for iOS, since SDL's deployment target is no longer below iOS 5. I've created a patch which replaces the old UIAccelerometer code with a replacement based on the CoreMotion framework. It has identical functionality (to SDL users), however iOS apps are now required to link to the CoreMotion framework when using SDL.
35 lines
1.4 KiB
Plaintext
Executable file
35 lines
1.4 KiB
Plaintext
Executable file
Use the Xcode command files (located in the Xcode-iOS/build-scripts folder)
|
|
to conveniently generate a workspace for Xcode 3 or Xcode 4. It also
|
|
contains a cleaner script and a convenient script for automatically
|
|
running all the test suites.
|
|
|
|
The iOS project will be referencing all files related to the top-level iOS
|
|
project. The core library will use the top-level include and src directories,
|
|
just like the other generated projects, but it will build projects for each of
|
|
the Demos in the top-level Xcode-iOS folder. These projects will have any
|
|
resources they need copied to be copied over and included as resources. They
|
|
will also reference the Info.plist file in Xcode-iOS/Demos.
|
|
|
|
iOS support is currently experimental, but it should work just fine for any and
|
|
all applications. All of the demos that work from the manually-created Xcode
|
|
projects also work for the generated projects. There are a few minor things that
|
|
need improving, but nothing major.
|
|
|
|
The iOS projects have no major dependencies other than the ones in the manual
|
|
Xcode-iOS project. Those are:
|
|
|
|
-AudioToolbox.framework
|
|
-QuartzCore.framework
|
|
-OpenGLES.framework
|
|
-CoreGraphics.framework
|
|
-UIKit.framework
|
|
-Foundation.framework
|
|
-CoreAudio.framework
|
|
-CoreMotion.framework
|
|
|
|
All of these frameworks are part of the iOS SDK, not part of the core OS X
|
|
system.
|
|
|
|
Run the clean script to clear out the directory of Xcode-related files
|
|
and binaries.
|