forked from twitter/ios-twitter-image-pipeline
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
75 lines (73 loc) · 2.37 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
// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.
import Foundation
import PackageDescription
let package = Package(
name: "TwitterImagePipeline",
products: [
.library(name: "TwitterImagePipeline", targets: ["TwitterImagePipeline"]),
.library(name: "TwitterImagePipelineMP4Codec", targets: ["TwitterImagePipelineMP4Codec"]),
.library(name: "TwitterImagePipelineWebPCodec", targets: ["TwitterImagePipelineWebPCodec"])
],
targets: [
.target(
name: "TwitterImagePipeline",
resources: [
.copy("PrivacyInfo.xcprivacy")
],
cSettings: [
.define("TIP_PROJECT_VERSION", to: "2.25")
],
linkerSettings: [
.linkedFramework("UIKit", .when(platforms: [.iOS, .tvOS]))
]
),
.target(
name: "TIPUtils"
),
.target(
name: "TwitterImagePipelineMP4Codec",
dependencies: [
"TwitterImagePipeline",
"TIPUtils"
]
),
.binaryTarget(
name: "WebP",
path: "Frameworks/WebP.xcframework"
),
.binaryTarget(
name: "WebPDemux",
path: "Frameworks/WebPDemux.xcframework"
),
.target(
name: "TwitterImagePipelineWebPCodec",
dependencies: [
"TwitterImagePipeline",
"TIPUtils",
"WebP",
"WebPDemux"
],
cSettings: [
.define("TIPX_WEBP_ANIMATION_DECODING_ENABLED", to: "1")
]
),
.testTarget(
name: "TwitterImagePipelineTests",
dependencies: [
"TwitterImagePipeline",
"TwitterImagePipelineMP4Codec",
"TwitterImagePipelineWebPCodec"
],
resources: [
.process("Resources")
],
cSettings: [
.headerSearchPath("../../Sources/TwitterImagePipeline"),
.headerSearchPath("../../Sources/TwitterImagePipelineMP4Codec"),
.headerSearchPath("../../Sources/TwitterImagePipelineWebPCodec"),
.headerSearchPath("../../Sources/TIPUtils"),
]
)
]
)