-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
executable file
·50 lines (48 loc) · 2.19 KB
/
Copy pathPackage.swift
File metadata and controls
executable file
·50 lines (48 loc) · 2.19 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
// swift-tools-version:5.9
import PackageDescription
let package = Package(
name: "VLCKit",
platforms: [
.iOS(.v13),
.macOS(.v11),
.tvOS(.v13),
.watchOS(.v9),
.visionOS(.v1)
],
products: [
.library(
name: "VLCKitSPM",
targets: ["VLCKitSPM"]
),
],
targets: [
.binaryTarget(
name: "VLCKitXC",
url: "https://github.com/rursache/VLCKitSPM/releases/download/v4.0.0a19/VLCKit.xcframework.zip",
checksum: "abe793c3c33dd3df76d73153c97780a22f2116f03ad370bc7ca12efadcb29417"
),
.target(
name: "VLCKitSPM",
dependencies: [
.target(name: "VLCKitXC")
], linkerSettings: [
.linkedFramework("QuartzCore", .when(platforms: [.iOS, .tvOS, .visionOS])),
.linkedFramework("CoreText", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedFramework("AVFoundation", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedFramework("Security", .when(platforms: [.iOS, .watchOS, .visionOS])),
.linkedFramework("CFNetwork", .when(platforms: [.iOS, .watchOS, .visionOS])),
.linkedFramework("AudioToolbox", .when(platforms: [.iOS, .tvOS, .visionOS])),
.linkedFramework("OpenGLES", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("CoreGraphics", .when(platforms: [.iOS, .watchOS, .visionOS])),
.linkedFramework("VideoToolbox", .when(platforms: [.iOS, .tvOS, .visionOS])),
.linkedFramework("CoreMedia", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedLibrary("c++", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedLibrary("xml2", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedLibrary("z", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedLibrary("bz2", .when(platforms: [.iOS, .tvOS, .watchOS, .visionOS])),
.linkedFramework("Foundation", .when(platforms: [.macOS])),
.linkedLibrary("iconv")
]
)
]
)