Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On OSX, convert systemversion to MACOSX_DEPLOYMENT_TARGET #1337

Merged
merged 1 commit into from
Sep 22, 2019

Conversation

baconpaul
Copy link
Contributor

Per the discussion in issue #1336, if systemversion is set
output MACOSX_DEPLOYMENT_TARGET into the resulting xcode project.
This borrows a diff from the (unmerged) PR #1003, applies it
in isolation, and adds a pair of unit tests to confirm that both
setting and not setting the systemversion results in correct
output

There is one situation where this could break a user's premake. If they set a systemversion globally and built only on windows and mac, right now that global systemversion would be ignored on mac; but after this change that systemversion will need to be OS-scoped.

Since this is my first pull request, I am sure you'll have lots of feedback. I'm happy to change whatever you think is appropriate! I checked the contrib guidelines and I think I got everything but want to make sure this works for you all.

Thanks so much!

Closes #1336

  • [ x ] Focus on a single fix or feature; remove any unrelated formatting or code changes
  • [ x ] Add unit tests showing fix or feature works; all tests pass
  • [ x ] Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • [ x ] Follow our coding conventions
  • [ x ] Minimize the number of commits

Per the discussion in issue premake#1336, if systemversion is set
output MACOSX_DEPLOYMENT_TARGET into the resulting xcode project.
This borrows a diff from the (unmerged) PR premake#1003, applies it
in isolation, and adds a pair of unit tests to confirm that both
setting and not setting the systemversion results in correct
output.

Closes premake#1336
Copy link
Member

@samsinsane samsinsane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@samsinsane samsinsane merged commit e5e4f38 into premake:master Sep 22, 2019
@baconpaul
Copy link
Contributor Author

Hey awesome! Thank you for merging.

Out of curiosity: how often do you rev binaries? I guess this will be in premake5 alpha15 but curious what the ship date for that is (if you have one).

Appreciate the merge!

@samsinsane
Copy link
Member

how often do you rev binaries? I guess this will be in premake5 alpha15 but curious what the ship date for that is (if you have one).

Unfortunately, we don't have any particular schedule for releases, it's more of a "when there's time" kind of thing at the moment.

@baconpaul
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outputting MACOSX_DEPLOYMENT_TARGET with xcode11
2 participants