You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
859 B
36 lines
859 B
// swift-tools-version: 5.9
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "ble_service",
|
|
platforms: [.iOS("16.0")],
|
|
products: [
|
|
.library(name: "ble-service", targets: ["ble_service"])
|
|
],
|
|
dependencies: [
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ble_service",
|
|
dependencies: [
|
|
"opus",
|
|
"JLAudioUnitKit"
|
|
],
|
|
path: "Sources/ble_service",
|
|
linkerSettings: [
|
|
.linkedFramework("AVFoundation"),
|
|
.linkedFramework("AudioToolbox"),
|
|
.linkedFramework("CoreBluetooth")
|
|
]
|
|
),
|
|
// 本地opus框架作为二进制目标(使用xcframework格式)
|
|
.binaryTarget(
|
|
name: "opus", // 改为与 xcframework 内部模块名称一致
|
|
path: "opus.xcframework"
|
|
),
|
|
.binaryTarget(
|
|
name: "JLAudioUnitKit",
|
|
path: "JLAudioUnitKit.xcframework"
|
|
)
|
|
]
|
|
)
|