Repository navigation
Expand file tree
/
Copy pathPackage.swift
More file actions
119 lines (113 loc) · 5.81 KB
/
Copy pathPackage.swift
File metadata and controls
119 lines (113 loc) · 5.81 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// swift-tools-version: 5.9
import PackageDescription
// 公共 linker settings
let commonLinkerSettings: [LinkerSetting] = [
.linkedFramework("AVFoundation"),
.linkedFramework("Accelerate"),
.linkedFramework("AssetsLibrary"),
.linkedFramework("CoreML"),
.linkedFramework("JavaScriptCore"),
.linkedFramework("CoreFoundation"),
.linkedFramework("MetalPerformanceShaders"),
.linkedFramework("CoreTelephony"),
.linkedFramework("VideoToolbox"),
.linkedLibrary("z"),
.linkedLibrary("resolv"),
.linkedLibrary("iconv"),
.linkedLibrary("stdc++"),
.linkedLibrary("c++"),
.linkedLibrary("sqlite3"),
]
let package = Package(
name: "TencentEffect_Basic_SwiftPM",
platforms: [
.iOS(.v12)
],
products: [
// A 系列
.library(name: "TencentEffect_A1-00", targets: ["TencentEffect_A1-00"]),
.library(name: "TencentEffect_A1-00_nobundle", targets: ["TencentEffect_A1-00_nobundle"]),
.library(name: "TencentEffect_A1-00_nolibpag", targets: ["TencentEffect_A1-00_nolibpag"]),
.library(name: "TencentEffect_A1-01", targets: ["TencentEffect_A1-01"]),
.library(name: "TencentEffect_A1-01_nobundle", targets: ["TencentEffect_A1-01_nobundle"]),
.library(name: "TencentEffect_A1-01_nolibpag", targets: ["TencentEffect_A1-01_nolibpag"]),
// S 系列
.library(name: "TencentEffect_S1-00", targets: ["TencentEffect_S1-00"]),
.library(name: "TencentEffect_S1-00_nobundle", targets: ["TencentEffect_S1-00_nobundle"]),
.library(name: "TencentEffect_S1-00_nolibpag", targets: ["TencentEffect_S1-00_nolibpag"]),
],
targets: [
// ============ Binary Targets ============
.binaryTarget(name: "XMagic", url: "https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/SwiftPM/4.3.0.25/Basic/XMagic.xcframework.zip", checksum: "161e09d669dcb96306a24aa65194d52539219d15dcd450fd73d361e41e91cfb0"),
.binaryTarget(name: "YTCommonXMagic", url: "https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/SwiftPM/4.3.0.25/YTCommonXMagic.xcframework.zip", checksum: "76e950fade6f04d2481c2b84c38c93efa84159f6005476ea842718ac082ee546"),
.binaryTarget(name: "libpag", url: "https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/SwiftPM/4.3.0.25/libpag.xcframework.zip", checksum: "f52dfe82a6f3e460fc2bd40d310342e352330da16052d5f71b2c450a48f74150"),
.binaryTarget(name: "TECodec", url: "https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/SwiftPM/4.3.0.25/TECodec.xcframework.zip", checksum: "3819c017fbbf2b360f1d752ca09952bd637583801d7a84745ab1b6b54b5871e5"),
.binaryTarget(name: "XMagicResources", url: "https://mediacloud-76607.gzc.vod.tencent-cloud.com/TencentEffect/iOS/SwiftPM/4.3.0.25/Resources/Basic/XMagicResources.xcframework.zip", checksum: "56984222b95d801a7b5f76cf54fca7efb8af61cb169958c765c03649f1399271"),
// ============ A1-00 套餐 ============
.target(
name: "TencentEffect_A1-00",
dependencies: ["XMagic", "YTCommonXMagic", "libpag", "TECodec", "XMagicResources"],
path: "Sources/TencentEffect_A1-00",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
.target(
name: "TencentEffect_A1-00_nobundle",
dependencies: ["XMagic", "YTCommonXMagic", "libpag", "TECodec"],
path: "Sources/TencentEffect_A1-00_nobundle",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
.target(
name: "TencentEffect_A1-00_nolibpag",
dependencies: ["XMagic", "YTCommonXMagic", "TECodec", "XMagicResources"],
path: "Sources/TencentEffect_A1-00_nolibpag",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
// ============ A1-01 套餐 ============
.target(
name: "TencentEffect_A1-01",
dependencies: ["XMagic", "YTCommonXMagic", "libpag", "TECodec", "XMagicResources"],
path: "Sources/TencentEffect_A1-01",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
.target(
name: "TencentEffect_A1-01_nobundle",
dependencies: ["XMagic", "YTCommonXMagic", "libpag", "TECodec"],
path: "Sources/TencentEffect_A1-01_nobundle",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
.target(
name: "TencentEffect_A1-01_nolibpag",
dependencies: ["XMagic", "YTCommonXMagic", "TECodec", "XMagicResources"],
path: "Sources/TencentEffect_A1-01_nolibpag",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
// ============ S1-00 套餐 ============
.target(
name: "TencentEffect_S1-00",
dependencies: ["XMagic", "YTCommonXMagic", "libpag", "TECodec", "XMagicResources"],
path: "Sources/TencentEffect_S1-00",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
.target(
name: "TencentEffect_S1-00_nobundle",
dependencies: ["XMagic", "YTCommonXMagic", "libpag", "TECodec"],
path: "Sources/TencentEffect_S1-00_nobundle",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
.target(
name: "TencentEffect_S1-00_nolibpag",
dependencies: ["XMagic", "YTCommonXMagic", "TECodec", "XMagicResources"],
path: "Sources/TencentEffect_S1-00_nolibpag",
sources: ["TencentEffect.swift"],
linkerSettings: commonLinkerSettings
),
]
)