forked from tayloraswift/swift-jpeg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
198 lines (195 loc) · 9.07 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "jpeg",
products:
[
.library( name: "JPEG", targets: ["JPEG"]),
.executable(name: "fuzzer", targets: ["JPEGFuzzer"]),
.executable(name: "comparator", targets: ["JPEGComparator"]),
.executable(name: "unit-test", targets: ["JPEGUnitTests"]),
.executable(name: "regression-test", targets: ["JPEGRegressionTests"]),
.executable(name: "integration-test", targets: ["JPEGIntegrationTests"]),
.executable(name: "decode-basic", targets: ["JPEGDecodeBasic"]),
.executable(name: "encode-basic", targets: ["JPEGEncodeBasic"]),
.executable(name: "decode-advanced", targets: ["JPEGDecodeAdvanced"]),
.executable(name: "encode-advanced", targets: ["JPEGEncodeAdvanced"]),
.executable(name: "in-memory", targets: ["JPEGInMemory"]),
.executable(name: "decode-online", targets: ["JPEGDecodeOnline"]),
.executable(name: "recompress", targets: ["JPEGRecompress"]),
.executable(name: "rotate", targets: ["JPEGRotate"]),
.executable(name: "custom-color", targets: ["JPEGCustomColor"]),
],
targets:
[
.target( name: "JPEG", path: "sources/jpeg"),
.executableTarget(name: "JPEGFuzzer", dependencies: ["JPEG"], path: "tests/fuzz"),
.executableTarget(name: "JPEGComparator", dependencies: ["JPEG"], path: "tests/compare"),
.executableTarget(name: "JPEGUnitTests", dependencies: ["JPEG"], path: "tests/unit"),
.executableTarget(name: "JPEGRegressionTests", dependencies: ["JPEG"], path: "tests/regression",
exclude:
[
"gold/",
]
),
.executableTarget(name: "JPEGIntegrationTests", dependencies: ["JPEG"], path: "tests/integration",
exclude:
[
"decode/",
"encode/",
]
),
.executableTarget(name: "JPEGDecodeBasic", dependencies: ["JPEG"], path: "examples/decode-basic",
exclude:
[
"karlie-kwk-2019.jpg.rgb",
"karlie-kwk-2019.jpg",
"karlie-kwk-2019.jpg.rgb.png",
]
),
.executableTarget(name: "JPEGEncodeBasic", dependencies: ["JPEG"], path: "examples/encode-basic",
exclude:
[
"karlie-milan-sp12-2011-4-4-0-4.0.jpg",
"karlie-milan-sp12-2011-4-2-2-1.0.jpg",
"karlie-milan-sp12-2011-4-4-0-2.0.jpg",
"karlie-milan-sp12-2011-4-4-4-0.5.jpg",
"karlie-milan-sp12-2011-4-2-2-8.0.jpg",
"karlie-milan-sp12-2011-4-4-0-0.0.jpg",
"karlie-milan-sp12-2011-4-4-0-0.5.jpg",
"karlie-milan-sp12-2011-4-4-0-1.0.jpg",
"karlie-milan-sp12-2011-4-2-0-4.0.jpg",
"karlie-milan-sp12-2011-4-2-0-0.25.jpg",
"karlie-milan-sp12-2011-4-2-0-0.5.jpg",
"karlie-milan-sp12-2011-4-4-4-1.0.jpg",
"karlie-milan-sp12-2011-4-2-0-1.0.jpg",
"karlie-milan-sp12-2011-4-2-2-0.25.jpg",
"karlie-milan-sp12-2011-4-2-2-4.0.jpg",
"karlie-milan-sp12-2011-4-2-2-2.0.jpg",
"karlie-milan-sp12-2011-4-4-0-0.125.jpg",
"karlie-milan-sp12-2011-4-4-4-4.0.jpg",
"karlie-milan-sp12-2011-4-2-0-2.0.jpg",
"karlie-milan-sp12-2011-4-4-4-0.0.jpg",
"karlie-milan-sp12-2011-4-2-2-0.0.jpg",
"karlie-milan-sp12-2011-4-2-2-0.5.jpg",
"karlie-milan-sp12-2011-4-2-2-0.125.jpg",
"karlie-milan-sp12-2011-4-2-0-0.125.jpg",
"karlie-milan-sp12-2011-4-2-0-8.0.jpg",
"karlie-milan-sp12-2011.rgb",
"karlie-milan-sp12-2011.rgb.png",
"karlie-milan-sp12-2011-4-4-0-8.0.jpg",
"karlie-milan-sp12-2011-4-4-4-2.0.jpg",
"karlie-milan-sp12-2011-4-4-4-8.0.jpg",
"karlie-milan-sp12-2011-4-4-4-0.25.jpg",
"karlie-milan-sp12-2011-4-4-0-0.25.jpg",
"karlie-milan-sp12-2011-4-2-0-0.0.jpg",
"karlie-milan-sp12-2011-4-4-4-0.125.jpg",
]
),
.executableTarget(name: "JPEGDecodeAdvanced", dependencies: ["JPEG"], path: "examples/decode-advanced",
exclude:
[
"karlie-2019.jpg-0.640x432.gray",
"karlie-2019.jpg-2.320x216.gray.png",
"karlie-2019.jpg",
"karlie-2019.jpg.rgb.png",
"karlie-2019.jpg-1.320x216.gray",
"karlie-2019.jpg-1.320x216.gray.png",
"karlie-2019.jpg-2.320x216.gray",
"karlie-2019.jpg.rgb",
"karlie-2019.jpg-0.640x432.gray.png",
]
),
.executableTarget(name: "JPEGEncodeAdvanced", dependencies: ["JPEG"], path: "examples/encode-advanced",
exclude:
[
"karlie-cfdas-2011.png.rgb",
"karlie-cfdas-2011.png",
"karlie-cfdas-2011.png.rgb.jpg",
]
),
.executableTarget(name: "JPEGInMemory", dependencies: ["JPEG"], path: "examples/in-memory",
exclude:
[
"karlie-2011.jpg.rgb.png",
"karlie-2011.jpg",
"karlie-2011.jpg.rgb",
"karlie-2011.jpg.jpg",
]
),
.executableTarget(name: "JPEGDecodeOnline", dependencies: ["JPEG"], path: "examples/decode-online",
exclude:
[
"karlie-oscars-2017.jpg-9.rgb.png",
"karlie-oscars-2017.jpg-difference-8.rgb.png",
"karlie-oscars-2017.jpg-difference-6.rgb",
"karlie-oscars-2017.jpg-2.rgb",
"karlie-oscars-2017.jpg-5.rgb.png",
"karlie-oscars-2017.jpg-8.rgb",
"karlie-oscars-2017.jpg-7.rgb",
"karlie-oscars-2017.jpg-3.rgb",
"karlie-oscars-2017.jpg-difference-0.rgb.png",
"karlie-oscars-2017.jpg-difference-1.rgb.png",
"karlie-oscars-2017.jpg-5.rgb",
"karlie-oscars-2017.jpg-difference-7.rgb.png",
"karlie-oscars-2017.jpg-8.rgb.png",
"karlie-oscars-2017.jpg-6.rgb",
"karlie-oscars-2017.jpg-9.rgb",
"karlie-oscars-2017.jpg-difference-3.rgb.png",
"karlie-oscars-2017.jpg-6.rgb.png",
"karlie-oscars-2017.jpg-difference-9.rgb.png",
"karlie-oscars-2017.jpg-difference-5.rgb.png",
"karlie-oscars-2017.jpg-2.rgb.png",
"karlie-oscars-2017.jpg-difference-0.rgb",
"karlie-oscars-2017.jpg-difference-4.rgb.png",
"karlie-oscars-2017.jpg-difference-4.rgb",
"karlie-oscars-2017.jpg-1.rgb",
"karlie-oscars-2017.jpg-difference-6.rgb.png",
"karlie-oscars-2017.jpg-0.rgb",
"karlie-oscars-2017.jpg-4.rgb",
"karlie-oscars-2017.jpg",
"karlie-oscars-2017.jpg-difference-2.rgb",
"karlie-oscars-2017.jpg-4.rgb.png",
"karlie-oscars-2017.jpg-1.rgb.png",
"karlie-oscars-2017.jpg-difference-7.rgb",
"karlie-oscars-2017.jpg-difference-8.rgb",
"karlie-oscars-2017.jpg-difference-5.rgb",
"karlie-oscars-2017.jpg-difference-2.rgb.png",
"karlie-oscars-2017.jpg-3.rgb.png",
"karlie-oscars-2017.jpg-7.rgb.png",
"karlie-oscars-2017.jpg-0.rgb.png",
"karlie-oscars-2017.jpg-difference-9.rgb",
"karlie-oscars-2017.jpg-difference-3.rgb",
"karlie-oscars-2017.jpg-difference-1.rgb",
]
),
.executableTarget(name: "JPEGRecompress", dependencies: ["JPEG"], path: "examples/recompress",
exclude:
[
"recompressed-requantized.jpg",
"original.jpg",
"recompressed-full-cycle.jpg",
]
),
.executableTarget(name: "JPEGRotate", dependencies: ["JPEG"], path: "examples/rotate",
exclude:
[
"karlie-kwk-wwdc-2017.jpg",
"karlie-kwk-wwdc-2017-iii.jpg",
"karlie-kwk-wwdc-2017-ii.jpg",
"karlie-kwk-wwdc-2017-iv.jpg",
]
),
.executableTarget(name: "JPEGCustomColor", dependencies: ["JPEG"], path: "examples/custom-color",
exclude:
[
"output.jpg",
"output.jpg.rgb-16.png",
"output.jpg.rgb-difference.png",
"output.jpg.rgb-8.png",
"output.jpg.rgb",
]
),
],
swiftLanguageVersions: [.v4_2, .v5]
)