mkxp-z/macos
2020-12-30 18:40:47 -05:00
..
Dependencies clone mkxp-z branch of Ruby 3.0 2020-12-30 13:32:50 -05:00
misc Experimental Xcode builds (dependencies included) 2020-11-19 03:56:35 -05:00
mkxp-z.xcodeproj Set bundle identifier to match default data dir 2020-12-30 18:40:47 -05:00
Config.xcconfig Build Ruby 3.0 by default 2020-12-25 10:30:44 -05:00
entitlements.plist Enable JIT in Hardened Runtime 2020-12-30 14:25:49 -05:00
icon.icns Update icons 2019-09-05 04:27:20 -04:00
Info.plist Set data dir back to Contents/Resources by default 2020-12-27 12:26:55 -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.