swiftlang / swiftlang/swift-java

Improve how we find locations of .dylibs and .so files (e.g. SwiftAndJavaJarSampleLib)

Open
#283 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature:jextract
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.