forked from tylerjonesio/vlckit-spm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
42 lines (39 loc) · 1.97 KB
/
Package.swift
File metadata and controls
42 lines (39 loc) · 1.97 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
// 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/MateeDevs/vlckit-spm/releases/download/3.5.1/VLCKit-all.xcframework.zip", checksum: "b5ca763a42e292d43aabbc7e418ae59f5bcd5aa754521741f9f7bb8521aa006a")
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")
]),
]
)