[2020-02] Build makefile to support Mac Catalyst #20566
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch introduces new Mac Catalyst support for mono!
Background Mac Catalyst allows a developer to use the traditionally iOS APIs - like UIKit - on macOS. It retains the same ABI as macOS x86_64, however, is compiled with a new
-targetflag that is required in all static and dynamic libraries.This patch is my first port of mono so I appreciate any code reviews. :-)
I started with a clean build target so as not to break current iOS and Mac support. There is the potential to merge this with the existing iOS support, but I think this method of a specific
maccat.mkfile is a cleaner separation.I discussed this publicly on the Merge Conflict podcast: https://www.mergeconflict.fm/225
I also show off the work on my Twitch stream: https://twitch.tv/FrankKrueger
This is the build script I've been using:
Backport of #20537.
/cc @akoeplinger @praeclarum