mkxp-z/macos
2020-12-26 22:39:48 -05:00
..
Dependencies Remove ObjFW from Linux scripts 2020-12-26 22:39:48 -05:00
misc Experimental Xcode builds (dependencies included) 2020-11-19 03:56:35 -05:00
mkxp-z.xcodeproj Xcode, start GL in new thread depending on build OS version 2020-12-26 10:50:35 -05:00
codesign.sh Request timestamp if codesign identity is provided 2020-11-16 07:08:07 -05:00
Config.xcconfig Build Ruby 3.0 by default 2020-12-25 10:30:44 -05:00
entitlements.plist Load game data from outside app directory on macOS 2020-12-25 08:20:20 -05:00
icon.icns Update icons 2019-09-05 04:27:20 -04:00
Info.plist Load game data from outside app directory on macOS 2020-12-25 08:20:20 -05:00
macpack.sh Experimental Xcode builds (dependencies included) 2020-11-19 03:56:35 -05:00
meson.build Add macOS signing options, sandbox signed bundles 2020-11-16 04:37:05 -05:00
README.md add legacy-ruby rule to macOS makefile 2020-12-25 07:15:20 -05:00

This folder contains an experimental Xcode project that will build mkxp-z and all of its dependencies.

Currently, building mkxp-z for ARM requires an ARM Mac on hand. This is primarily because libsigc++ doesn't properly cross-compile when you ask it to.

To get all dependencies, cd to the Dependencies folder and run:

# This will download all the required tools
# for building the dependencies
brew bundle

# Intel Macs
make everything -f .Intel

# ARM Macs
make everything -f .AppleSilicon

# Create universal libraries (For the universal build)
make everything -f .AppleSilicon
arch -x86_64 make everything -f .Intel
./make_macuniversal.command

# Use your own Ruby, and build everything else (for Intel Macs)
make custom-ruby -f .Intel RUBY_PATH="Path to Ruby" RUBY_FLAGS="extra configure arguments" 
make deps-core -f .Intel

Afterwards, simply open the Xcode project, select the scheme you'd like to use and hit Command+B.

If you built a version of ruby >= 2, change the MRI_VERSION build setting to match.

If you built 1.8, select the PlayerLegacy scheme.