-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
59 lines (58 loc) · 1.53 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
// swift-tools-version:5.10
import PackageDescription
let package = Package(
name: "Nuke-AVIF-Plugin",
platforms: [
.iOS(.v13),
.macOS(.v10_15),
],
products: [
.library(name: "NukeAVIFPlugin", targets: ["NukeAVIFPlugin"]),
],
dependencies: [
.package(url: "https://github.com/kean/Nuke.git", "11.0.0"..<"13.0.0"),
.package(url: "https://github.com/SDWebImage/libavif-Xcode.git", exact: "0.10.1")
],
targets: [
.target(
name: "NukeAVIFPlugin",
dependencies: [
"NukeAVIFPluginC",
"Nuke",
.product(name: "libavif", package: "libavif-Xcode"),
],
path: "Source",
exclude: [
"AVIF",
],
sources: [
"AVIFImage.swift",
"Extensions",
]
),
.target(
name: "NukeAVIFPluginC",
path: "Source",
exclude: [
"AVIFImage.swift",
"Extensions",
],
publicHeadersPath: "AVIF",
cSettings: [
.headerSearchPath("AVIF/include/"),
]
),
.testTarget(
name: "Nuke_AVIF_PluginTests",
dependencies: [
"NukeAVIFPlugin"
],
path: "Nuke_AVIF_PluginTests",
exclude: [
"Info.plist"
],
resources: [
.process("Resource")
])
]
)