forked from ryokosuge/Nuke-WebP-Plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
101 lines (100 loc) · 3.35 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Nuke-WebP-Plugin",
platforms: [
.iOS(.v13),
.macOS(.v10_13),
],
products: [
.library(name: "NukeWebPPlugin", targets: ["NukeWebPPlugin"]),
],
dependencies: [
.package(url: "https://github.com/kean/Nuke.git", .upToNextMajor(from: "9.2.3")),
],
targets: [
.target(
name: "NukeWebPPlugin",
dependencies: [
"NukeWebPPluginC",
.product(name: "Nuke", package: "Nuke"),
],
path: "Source",
exclude: [
"libwebp",
"WebP",
],
sources: [
"WebPImage.swift",
"Extensions",
]
),
.target(
name: "NukeWebPPluginC",
path: "Source",
exclude: [
"WebPImage.swift",
"Extensions",
"libwebp/man",
"libwebp/gradle",
"libwebp/examples",
"libwebp/swig",
"libwebp/cmake/",
"libwebp/webp_js",
"libwebp/extras",
"libwebp/imageio",
"libwebp/src/Makefile.am",
"libwebp/src/dec/Makefile.am",
"libwebp/src/demux/libwebpdemux.rc",
"libwebp/src/demux/libwebpdemux.pc.in",
"libwebp/src/demux/Makefile.am",
"libwebp/src/dsp/Makefile.am",
"libwebp/src/enc/Makefile.am",
"libwebp/src/libwebp.pc.in",
"libwebp/src/libwebp.rc",
"libwebp/src/libwebpdecoder.pc.in",
"libwebp/src/libwebpdecoder.rc",
"libwebp/src/mux/libwebpmux.pc.in",
"libwebp/src/mux/libwebpmux.rc",
"libwebp/src/mux/Makefile.am",
"libwebp/src/utils/Makefile.am",
"libwebp/ChangeLog",
"libwebp/doc/README",
"libwebp/doc/template.html",
"libwebp/doc/TODO",
"libwebp/doc/webp-container-spec.txt",
"libwebp/doc/webp-lossless-bitstream-spec.txt",
"libwebp/Makefile.am",
"libwebp/makefile.unix",
"libwebp/m4/ax_pthread.m4",
"libwebp/PATENTS",
"libwebp/README.mux",
"libwebp/codereview.settings",
"libwebp/gradlew.bat",
"libwebp/configure.ac",
"libwebp/AUTHORS",
"libwebp/README",
"libwebp/gradlew",
"libwebp/autogen.sh",
"libwebp/Makefile.vc",
"libwebp/gradle.properties",
"libwebp/NEWS",
"libwebp/Android.mk",
"libwebp/COPYING",
"libwebp/build.gradle",
"libwebp/iosbuild.sh",
"libwebp/CMakeLists.txt",
"libwebp/README.webp_js",
],
publicHeadersPath: "WebP",
cSettings: [
.headerSearchPath("libwebp"),
.headerSearchPath("libwebp/src"),
],
cxxSettings: [
.headerSearchPath("libwebp"),
.headerSearchPath("libwebp/src"),
]
),
]
)