macOS CMake build instructions in readme

This commit is contained in:
adam-bloom 2021-02-28 10:26:17 -07:00
parent 174297b6fc
commit 42472b423e
1 changed files with 1 additions and 6 deletions

View File

@ -147,12 +147,7 @@ msbuild openrct2.proj /t:PublishPortable
The recommended way of building OpenRCT2 for macOS is with Xcode. The Xcode build will create a self-contained application bundles which include all the necessary game files and dependencies. Open the project file OpenRCT2.xcodeproj in Xcode and build from there. Building this way will handle the dependencies for you automatically. You can also invoke an Xcode build from the command line using `xcodebuild`.
#### CMake:
A command line version of OpenRCT2 can be built using CMake. This type of build requires you to provide the dependencies yourself. The supported method of doing this is with [Homebrew](https://brew.sh). Once you have Homebrew installed, you can download all the required libraries with this command:
```
brew install cmake duktape freetype icu4c libpng libzip nlohmann-json openssl pkg-config sdl2 speexdsp
```
Once you have the dependencies installed, you can build the project using CMake using the following commands:
A command line version of OpenRCT2 can be built using CMake. CMake will retrieve the dependences from [Dependencies](https://github.com/OpenRCT2/Dependencies/) automatically. You can build the project using CMake using the following commands:
```
mkdir build
cd build