--- a/BuildingForIos.wiki Sun Jan 17 12:52:30 2016 +0000
+++ b/BuildingForIos.wiki Sun Jan 17 12:53:22 2016 +0000
@@ -1,13 +1,14 @@
#summary Instructions for building Hedgewars for iOS on Mac OS X
#labels Phase-Implementation,Phase-Deploy,Phase-Support
-= Prerequisites =
+= Hedgewars for iOS =
+== Prerequisites ==
* XCode must be installed, and you should have some skills in usig it
* We need Mercurial to grab external dependencies
* You should be familiar with the BuildingOnMac instructions
-== Necessary Libraries ==
+=== Necessary libraries ===
The library are exactly the same as usual, but they don't come in a precompiled version; so we will have to download the latest snapshot and build them on our own.
@@ -17,7 +18,7 @@
* Freetype - misc/libfreetype/Xcode - is a trimmed down version of the popular font rendering library
* Lua - misc/liblua/Xcode - can also be skipped if you specify LUA_DISABLED in hedgewars config.inc file
-=== Compiling SDL for iOS ===
+==== Compiling SDL for iOS ====
Since Hedgewars uses all four satellites besides the main SDL library things are going to get difficult. In fact most of the SDL_x libs don't come with a project file and/or can't be easily compiled (without a lot of hacking, that is).
@@ -35,7 +36,7 @@
Each library has its own iOS project file under the folder Xcode-iOS/; also here you need to build both Release and Debug for all the Architectures available. After this step remeber to update the include paths and linker information in the main Xcode project file.
-== Necessary Tools ==
+=== Necessary tools ===
Besides the iOS SDK, you need a special variant of Freepascal to build the engine as well as the standard Freepascal compiler. So let's download and install (in order):
@@ -44,7 +45,7 @@
The latter one will run a script on its own, let it finish and if no errors are reported, your system is ready! If you get stuck anywhere, luckily there is a full documentation about this process on the [http://wiki.lazarus.freepascal.org/iPhone/iPod_development Freepascal Wiki]
-= Building process =
+== Building process ==
And now we should be able to finally open the main Hedgewars.xcodeproj file! There are yet two steps before getting a working build.