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

Build tooling to wrap up a Swift library for use in Java #17

Open
DougGregor opened this issue Sep 30, 2024 · 1 comment
Open

Build tooling to wrap up a Swift library for use in Java #17

DougGregor opened this issue Sep 30, 2024 · 1 comment

Comments

@DougGregor
Copy link
Member

The jextract-swift tool emits Java sources that wrap a Swift library for use in Java. We should make this use case as easy as possible, e.g., something that can integrate with a SwiftPM build (to build the Swift parts), create the corresponding Java wrappers, and integrate that into a Java build. Whether this is creating a standalone Jar file or integrating into Gradle/Maven is not yet clear.

Note that jextract-swift is very likely to need to generate some Swift glue code as well, which might itself need to be built with SwiftPM, so we'll need to account for that in the design.

@ktoso
Copy link
Collaborator

ktoso commented Sep 30, 2024

When we get to this, @simonjbeaumont has some prior experience on packaging up native libs in a jar so we can check in for some prior work he did on such.

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

No branches or pull requests

2 participants