forked from tylerjonesio/vlckit-spm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
42 lines (39 loc) · 1.98 KB
/
Package.swift
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
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let vlcBinary = Target.binaryTarget(name: "VLCKit-all", url: "https://github.com/tylerjonesio/vlckit-spm/releases/download/v3.5.1/VLCKit-all.xcframework.zip", checksum: "7e0b253856d4de361b03a0e21f7d99ad5bb40579803e84ff01f59d3a9466a429")
let package = Package(
name: "vlckit-spm",
platforms: [.macOS(.v10_13), .iOS(.v11), .tvOS(.v11)],
products: [
.library(
name: "VLCKitSPM",
targets: ["VLCKitSPM"]),
],
dependencies: [],
targets: [
vlcBinary,
.target(
name: "VLCKitSPM",
dependencies: [
.target(name: "VLCKit-all")
], linkerSettings: [
.linkedFramework("QuartzCore", .when(platforms: [.iOS])),
.linkedFramework("CoreText", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("AVFoundation", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("Security", .when(platforms: [.iOS])),
.linkedFramework("CFNetwork", .when(platforms: [.iOS])),
.linkedFramework("AudioToolbox", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("OpenGLES", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("CoreGraphics", .when(platforms: [.iOS])),
.linkedFramework("VideoToolbox", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("CoreMedia", .when(platforms: [.iOS, .tvOS])),
.linkedLibrary("c++", .when(platforms: [.iOS, .tvOS])),
.linkedLibrary("xml2", .when(platforms: [.iOS, .tvOS])),
.linkedLibrary("z", .when(platforms: [.iOS, .tvOS])),
.linkedLibrary("bz2", .when(platforms: [.iOS, .tvOS])),
.linkedFramework("Foundation", .when(platforms: [.macOS])),
.linkedLibrary("iconv")
]),
]
)