Skip to content

build: add exports targets #525

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

Merged
merged 2 commits into from
Sep 30, 2019

Conversation

compnerd
Copy link
Member

Now that we can build the Swift content as a library, we can do export
targets. This enables us to have CMake determine more information about
the target, track dependencies across projects, and manage the flags
across the trees without the special variables to specify the source and
build trees.

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd force-pushed the bring-out-your-targets branch from e5f4b01 to 3a61429 Compare September 27, 2019 00:53
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd compnerd force-pushed the bring-out-your-targets branch from 3a61429 to a89af11 Compare September 27, 2019 16:50
@compnerd
Copy link
Member Author

@swift-ci please test

Now that we can build the Swift content as a library, we can do export
targets.  This enables us to have CMake determine more information about
the target, track dependencies across projects, and manage the flags
across the trees without the special variables to specify the source and
build trees.
Make BlocksRuntime public rather than private since the public headers reference
`Blocks.h` making the users dependent on BlocksRuntime, requiring the explicit
link.  This also enables the use of the export targets to automatically setup
the include paths for users.
@compnerd compnerd force-pushed the bring-out-your-targets branch from a89af11 to c26f435 Compare September 27, 2019 22:42
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@ktopley-apple - okay to merge?

@ktopley-apple ktopley-apple merged commit b0b314c into swiftlang:master Sep 30, 2019
@compnerd compnerd deleted the bring-out-your-targets branch September 30, 2019 22:23
rokhinip pushed a commit that referenced this pull request Nov 5, 2021
build: add exports targets
Signed-off-by: Rokhini Prabhu <rokhinip@apple.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants