mkxp-z/macos
2020-12-15 03:38:01 -05:00
..
Dependencies Build for ARM Macs 2020-12-12 08:38:46 -05:00
misc Experimental Xcode builds (dependencies included) 2020-11-19 03:56:35 -05:00
mkxp-z.xcodeproj Update Xcode project to 12.3 (remove update project nag) 2020-12-15 03:38:01 -05:00
codesign.sh Request timestamp if codesign identity is provided 2020-11-16 07:08:07 -05:00
Config.xcconfig Move variables from xcconfig to target 2020-11-21 15:48:01 -05:00
entitlements.plist Add Xcode build scheme for (ARM64) legacy mkxp-z 2020-12-14 11:45:45 -05:00
icon.icns Update icons 2019-09-05 04:27:20 -04:00
Info.plist Drop ObjFW as a dependency 2020-11-22 03:48:03 -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 Build for ARM Macs 2020-12-12 08:38:46 -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 configure-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.