-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPackage.swift
More file actions
42 lines (40 loc) · 1.2 KB
/
Package.swift
File metadata and controls
42 lines (40 loc) · 1.2 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
// swift-tools-version: 5.6
import PackageDescription
let package = Package(
name: "swift-image-formats",
platforms: [.macOS(.v10_15)],
products: [
.library(
name: "ImageFormats",
targets: ["ImageFormats"]
)
],
dependencies: [
.package(url: "https://github.com/the-swift-collective/libpng", from: "1.6.45"),
.package(url: "https://github.com/stackotter/jpeg", from: "1.0.2"),
.package(url: "https://github.com/the-swift-collective/libwebp", from: "1.4.1"),
],
targets: [
.target(
name: "ImageFormats",
dependencies: [
.product(name: "LibPNG", package: "libpng"),
.product(name: "JPEG", package: "jpeg"),
.product(name: "WebP", package: "libwebp"),
]
),
.testTarget(
name: "ImageFormatsTests",
dependencies: ["ImageFormats"],
resources: [
.copy("test.png"),
.copy("test.jpg"),
.copy("test.webp"),
]
),
.executableTarget(
name: "Benchmarks",
dependencies: ["ImageFormats"]
),
]
)