swiftlang / swiftlang/swift-java
Improve how we find locations of .dylibs and .so files (e.g. SwiftAndJavaJarSampleLib)
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.2k
- Forks
- 123
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 16
Description
In order to run e.g. the SwiftAndJavaJarSampleLib sample, we do a complicated dance to find all the paths to all the native dynamic libs and libswiftCore as well.
This can be partially simplified.
The lib paths we should get from swiftpm like this:
swift build --show-bin-path -c debug
/Users/ktoso/code/swift-java/.build/arm64-apple-macosx/debug
Next we need to be able to find the libswiftCore.so/dylib in some way less annoying than shell scripting.
We should offer this as a task in gradle or command plugin maybe in swiftpm?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the SwiftAndJavaJarSampleLib sample and run swift build --show-bin-path -c debug to understand the paths SwiftPM exposes. Determine whether the task belongs in Gradle, a command plugin, or SwiftPM, and define done as reliably finding the native dynamic libraries and libswiftCore without shell scripting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100