1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Make Luanti buildable for iOS (iPhoneSimulator) with ANGLE and basic CI.

This commit is contained in:
SFENCE 2024-11-18 13:21:02 +01:00
parent 5672b93007
commit 803870e0d2
28 changed files with 568 additions and 36 deletions

View file

@ -24,6 +24,7 @@ General options and their default values:
PRECOMPILED_HEADERS_PATH= - Path to a file listing all headers to precompile (default points to src/precompiled_headers.txt)
USE_SDL2=TRUE - Build with SDL2; Enables IrrlichtMt device SDL2
USE_SDL2_STATIC=TRUE - Links with SDL2::SDL2-static instead of SDL2::SDL2
USE_ANGLE=TRUE - Build with Google ANGLE; IrrlichMt device SDL2 on iOS
ENABLE_CURL=ON - Build with cURL; Enables use of online mod repo, public serverlist and remote media fetching via http
ENABLE_CURSES=ON - Build with (n)curses; Enables a server side terminal (command line option: --terminal)
ENABLE_GETTEXT=ON - Build with Gettext; Allows using translations

34
doc/compiling/ios.md Normal file
View file

@ -0,0 +1,34 @@
# Compiling for iOS
THIS DOCUMENT IS NOT FINISHED!!!
## Requirements
- macOS
- [Homebrew](https://brew.sh/)
- XCode
- iOS/IPhoneSimulator SDK
- iOS Simulator for newest iOS is supported only on Apple Silicon deviecs.
Install dependencies with homebrew:
```
brew install cmake git
```
## Generate Xcode project
This script will download and build all requested dependencies for iOS or IPhoneSimulator and generate Xcode project for Luanti.
```bash
/path/to/ios_build_with_deps.sh https://github.com/luanti-org/luanti.git master ../luanti_ios ../luanti_ios_deps Debug "iPhoneSimulator" "18.2" "all"
```
### Build and Run
* Open generated Xcode project
* Select scheme `luanti`
* Configure signing Team etc.
* Run Build command
* Open application from `build/build/Debug/` directory or run it from Xcode