Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,20 @@ let package = Package(
targets: ["SwiftJava", "SwiftJavaRuntimeSupport"]
),

// EXPERIMENTAL
//
// Auto-linkage variant of SwiftJava.
// Same targets as the .dynamic SwiftJava product, but without an explicit `type:` so SwiftPM picks
// linkage based on the consumer:
// - A .dynamic library consumer absorbs these objects into its own
// dylib, yielding a single .so / .dylib instead of one per package
// - A .static library consumer or executable links them statically
// Use this when static linking swift-java runtime along with swift stdlib and your own code into a single file.
.library(
name: "SwiftJavaStatic",
targets: ["SwiftJava", "SwiftJavaRuntimeSupport"]
),

.library(
name: "SwiftJavaConfigurationShared",
targets: ["SwiftJavaConfigurationShared"]
Expand Down Expand Up @@ -91,6 +105,14 @@ let package = Package(
targets: ["SwiftRuntimeFunctions"]
),

// EXPERIMENTAL
//
// Auto-linkage variant of SwiftRuntimeFunctions; see SwiftJavaStatic for details.
.library(
name: "SwiftRuntimeFunctionsStatic",
targets: ["SwiftRuntimeFunctions"]
),

.library(
name: "JExtractSwiftLib",
targets: ["JExtractSwiftLib"]
Expand Down
4 changes: 4 additions & 0 deletions Sources/SwiftJavaDocumentation/Documentation.docc/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ which is a quick overview of all the features and approaches offered by SwiftJav
- <doc:SwiftJavaCommandLineTool>
- <doc:SwiftPMPlugin>

### Distribution

- <doc:Distribution>

### Android Support

- <doc:Android>
Loading