-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathPackage.swift
More file actions
67 lines (64 loc) · 2.07 KB
/
Package.swift
File metadata and controls
67 lines (64 loc) · 2.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "AudioStreaming",
platforms: [
.iOS(.v15),
.macOS(.v13),
.tvOS(.v16)
],
products: [
.library(
name: "AudioStreaming",
targets: ["AudioCodecs", "AudioStreaming"]
),
],
dependencies: [
.package(url: "https://github.com/sbooth/ogg-binary-xcframework", exact: "0.1.2"),
.package(url: "https://github.com/sbooth/vorbis-binary-xcframework", exact: "0.1.2")
],
targets: [
// C target for audio codec bridges
.target(
name: "AudioCodecs",
dependencies: [
.product(name: "ogg", package: "ogg-binary-xcframework"),
.product(name: "vorbis", package: "vorbis-binary-xcframework")
],
path: "AudioCodecs",
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("."),
.headerSearchPath("include")
],
linkerSettings: [
.linkedFramework("AudioToolbox"),
.linkedFramework("Foundation")
]
),
// Main Swift target
.target(
name: "AudioStreaming",
dependencies: [
"AudioCodecs",
.product(name: "ogg", package: "ogg-binary-xcframework"),
.product(name: "vorbis", package: "vorbis-binary-xcframework")
],
path: "AudioStreaming",
exclude: ["AudioStreaming.h", "Streaming/OggVorbis", "Info.plist"],
swiftSettings: []
),
.testTarget(
name: "AudioStreamingTests",
dependencies: [
"AudioStreaming"
],
path: "AudioStreamingTests",
exclude: ["Info.plist", "Streaming/output"],
resources: [
// Test resources for metadata stream processor tests
.copy("Streaming/Metadata Stream Processor/raw-audio-streams")
]
)
]
)