Replies: 1 comment
-
I'm assuming this is for iOS since the macOS version is an umbrella framework? One option, which is actually something I'm investigating currently, is to pack a compiled My completely untested idea would look like: // swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SFBAudioEngine-binary",
platforms: [
.macOS(.v10_15),
.iOS(.v14),
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "FLAC",
targets: ["FLAC"]),
.library(
name: "MAC",
targets: ["MAC"]),
.library(
name: "dumb",
targets: ["dumb"]),
.library(
name: "lame",
targets: ["lame"]),
.library(
name: "mpc",
targets: ["mpc"]),
.library(
name: "mpg123",
targets: ["mpg123"]),
.library(
name: "ogg",
targets: ["ogg"]),
.library(
name: "opus",
targets: ["opus"]),
.library(
name: "sndfile",
targets: ["sndfile"]),
.library(
name: "speex",
targets: ["speex"]),
.library(
name: "taglib",
targets: ["taglib"]),
.library(
name: "tta-cpp",
targets: ["tta-cpp"]),
.library(
name: "vorbis",
targets: ["vorbis"]),
.library(
name: "wavpack",
targets: ["wavpack"]),
.library(
name: "SFBAudioEngine",
targets: [
"SFBAudioEngine",
"FLAC", "MAC", "dumb", "lame", "mpc", "mpg123", "ogg", "opus", "sndfile",
"speex", "taglib", "tta-cpp", "vorbis", "wavpack"
]),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.binaryTarget(
name: "FLAC",
path: "XCFrameworks/FLAC.xcframework.zip"),
.binaryTarget(
name: "MAC",
path: "XCFrameworks/MAC.xcframework.zip"),
.binaryTarget(
name: "dumb",
path: "XCFrameworks/dumb.xcframework.zip"),
.binaryTarget(
name: "lame",
path: "XCFrameworks/lame.xcframework.zip"),
.binaryTarget(
name: "mpc",
path: "XCFrameworks/mpc.xcframework.zip"),
.binaryTarget(
name: "mpg123",
path: "XCFrameworks/mpg123.xcframework.zip"),
.binaryTarget(
name: "ogg",
path: "XCFrameworks/ogg.xcframework.zip"),
.binaryTarget(
name: "opus",
path: "XCFrameworks/opus.xcframework.zip"),
.binaryTarget(
name: "sndfile",
path: "XCFrameworks/sndfile.xcframework.zip"),
.binaryTarget(
name: "speex",
path: "XCFrameworks/speex.xcframework.zip"),
.binaryTarget(
name: "taglib",
path: "XCFrameworks/taglib.xcframework.zip"),
.binaryTarget(
name: "tta-cpp",
path: "XCFrameworks/tta-cpp.xcframework.zip"),
.binaryTarget(
name: "vorbis",
path: "XCFrameworks/vorbis.xcframework.zip"),
.binaryTarget(
name: "wavpack",
path: "XCFrameworks/wavpack.xcframework.zip"),
.binaryTarget(
name: "SFBAudioEngine",
path: "XCFrameworks/SFBAudioEngine.xcframework.zip"),
]
) I don't think there is a great way to avoid having to pull in other frameworks at the app level because of LGPL dynamic linking requirements. You could always strip out the portions that require dynamic linking and compile a massive static library incorporating all of the dependencies. |
Beta Was this translation helpful? Give feedback.
-
Hey @sbooth! thank you so much for this library!
How we can integrate this library manually?
Any suggestions will be truly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions