swiftlang / swiftlang/swift-java

How to build a `.so` dynamic lib on macOS, for building multi-platform jars

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

Nobody has claimed this yet.

plugin:swiftpm
Dominant language
Swift
Stars
1.2k
Forks
123
Avg merge
1d 7h
Merged PRs (30d)
16

Description

We want to build a jar that contains libraries for various platforms, e.g. we COULD build a "fat jar" with both x86 and arm and .so and .dylib files etc.

We also want to cross build from macos to linux so develop on macOS and make a jar that works on linux.

In order to make .so files from macOS we'll need to use https://github.com/swiftlang/swift-sdk-generator/

I don't have a complete picture of how we'll do that but we'll need to figure it out.

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 by reviewing the requirements in this issue and the swift-sdk-generator project it identifies; no repository files or tests are named. Done means producing a multi-platform JAR with x86/arm and .so/.dylib libraries, including a macOS-to-Linux cross-build path.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, 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.