From 3b5d14b51ad48f98d19132bda47096bab37fb873 Mon Sep 17 00:00:00 2001 From: Vincent Bénony Date: Thu, 3 Dec 2015 12:53:41 +0100 Subject: ISO: Updates instructions for command line compilation --- backends/platform/iphone/README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'backends/platform') diff --git a/backends/platform/iphone/README.md b/backends/platform/iphone/README.md index fef8c72adf..bb7265e6f5 100644 --- a/backends/platform/iphone/README.md +++ b/backends/platform/iphone/README.md @@ -11,6 +11,10 @@ First, clone the repository: $ git clone -b ios-fix --recursive https://github.com/bSr43/scummvm.git ``` +### Compilation from Xcode ### + +This is the recommanded way to compile ScummVM, and the only one which makes it possible to run ScummVM on a non-jailbroken device! + The next step is to compile the **create_project** tool. Open the Xcode project you'll found in the **devtools/create\_project/xcode/** directory. Once compiled, copy the binary somewhere in your *PATH*, and create a **build** directory somewhere on your harddisk. It is recommended to create this directory next to the cloned repository (they share the same parent). Execute the following commands in a terminal: @@ -31,6 +35,20 @@ Now, your **build** directory should contain: You are ready to compile ScummVM: open the **scummvm.xcodeproj** project, and build it. +### Compilation from command line ### + +For jailbroken devices, it is also possible to compile the project from command line. You'll need some tools, like **ldid**, to fake the code signature. + +Open a terminal, and execute the following commands: +``` +$ cd path_to_the_scummvm_sources +$ SDKROOT=$(xcrun --sdk iphoneos --show-sdk-path) CC=clang CXX=clang++ ./configure --host=iphone --disable-scalers --disable-mt32emu --enable-release +$ make iphone +$ make iphonebundle +``` + +At the end of the compilation, you'll find a **ScummVM.app** application: copy it over SSH, and reboot your device. + ## Usage ## The game data files can be copied on the iOS device using iTunes. Once done, add your games in ScummVM as usual. -- cgit v1.2.3