forked from stackotter/swift-image-formats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
38 lines (36 loc) · 1.14 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
// 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"]
),
]
)