I want to include a dynamic version of a library that has not explicitly declared itself as dynamic. Similar to the following.
import PackageDescription
let package = Package(
name: "MyPackage",
products: [
.library(
name: "MyPackage",
targets: ["MyPackage"]),
],
targets: [
.target(
name: "MyPackage",
dependencies: []),
]
)
Does this mean that I must fork the library and provide a dynamic version of it myself?
import PackageDescription
let package = Package(
name: "MyPackage",
products: [
.library(
name: "MyPackage",
targets: ["MyPackage"]),
.library(
name: "MyPackage",
type: .dynamic,
targets: ["MyPackage"]),
],
targets: [
.target(
name: "MyPackage",
dependencies: []),
]
)