-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
78 lines (75 loc) · 3.17 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
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
68
69
70
71
72
73
74
75
76
77
// swift-tools-version: 6.0.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "TRTC_SwiftPM",
platforms: [
.iOS(.v12)
],
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "TRTC_SwiftPM",
targets: ["TRTC_SwiftPM"]),
.library(
name: "TXLiteAVSDK_ReplayKit",
targets: ["TXLiteAVSDK_ReplayKitExt"]),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.binaryTarget(
name: "TXLiteAVSDK_TRTC",
url: "https://liteav.sdk.qcloud.com/download/spm/12.2/trtc/TXLiteAVSDK_TRTC.xcframework.zip",
checksum: "882a37ea51c362dcf366f60ae33bcf5c26d8e506b70130e29d8332a80fe7838c"
),
.binaryTarget(
name: "TXFFmpeg",
url: "https://liteav.sdk.qcloud.com/download/spm/12.2/trtc/TXFFmpeg.xcframework.zip",
checksum: "5c09fa4ca07b9132391c61f4cb8d3ecd1748ce7f89df8017cc2811e1cbc49b9e"
),
.binaryTarget(
name: "TXLiteAVSDK_ReplayKitExt",
url: "https://liteav.sdk.qcloud.com/download/spm/12.2/professional/TXLiteAVSDK_ReplayKitExt.xcframework.zip",
checksum: "6735c24f1ae1a5acb75886b47eaa032ee4a99cd99fa0719638216721ddede152"
),
.binaryTarget(
name: "TXSoundTouch",
url: "https://liteav.sdk.qcloud.com/download/spm/12.2/trtc/TXSoundTouch.xcframework.zip",
checksum: "335c52de61bf65e719759c9641100159a33bfee5945e87efa4a5a191e5987294"
),.target(
name: "TRTC_SwiftPM",
dependencies: [
.target(name: "TXLiteAVSDK_TRTC"),
.target(name: "TXFFmpeg"),
.target(name: "TXSoundTouch")
],
sources: ["TRTC_SwiftPM.swift"],
linkerSettings: [
.linkedFramework("ReplayKit"),
.linkedFramework("VideoToolbox"),
.linkedFramework("AVKit"),
.linkedFramework("GLKit"),
.linkedFramework("AssetsLibrary"),
.linkedFramework("SystemConfiguration"),
.linkedFramework("CoreTelephony"),
.linkedFramework("AVFoundation"),
.linkedFramework("OpenGLES"),
.linkedFramework("Accelerate"),
.linkedFramework("MetalKit"),
.linkedFramework("MobileCoreServices"),
.linkedFramework("CoreMedia"),
.linkedFramework("MetalPerformanceShaders"),
.linkedLibrary("sqlite3.0"),
.linkedLibrary("c++"),
.linkedLibrary("resolv")
]
),.target(
name: "TXLiteAVSDK_ReplayKit",
dependencies: [
.target(name: "TXLiteAVSDK_ReplayKitExt")
],
sources: ["TXLiteAVSDK_ReplayKitExt.swift"]
)
]
)