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

Add a Swift Package Manager package #3308

Merged
merged 2 commits into from
Jun 27, 2019
Merged

Add a Swift Package Manager package #3308

merged 2 commits into from
Jun 27, 2019

Conversation

tgoyne
Copy link
Member

@tgoyne tgoyne commented Jun 25, 2019

This is required for Cocoa to support SPM, as it only supports purely building from source with only SPM-based dependencies.

SPM doesn't have any concept of a "configure" step, so I pushed the part of version.hpp that cmake modifies into a separate header that isn't included when building with SPM and instead hardcoded the version number in package.swift. It can't simply read the version from dependencies.list because the package is evaluated in a sandbox with no access to any other files in the repository. The release script takes care of updating this additional copy of the version, so this shouldn't be a problem.

@bmunkholm
Copy link
Contributor

LGTM.

Copy link
Contributor

@ironage ironage left a comment

Choose a reason for hiding this comment

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

Could use a changelog entry, but 👍

@tgoyne tgoyne merged commit 8425794 into master Jun 27, 2019
@tgoyne tgoyne deleted the tg/spm branch June 27, 2019 02:04
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants