forked from tuplestream/swift-lz4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPackage.swift
More file actions
36 lines (34 loc) · 1.13 KB
/
Copy pathPackage.swift
File metadata and controls
36 lines (34 loc) · 1.13 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "swift-lz4",
products: [
.library(name: "LZ4", targets: ["LZ4"]),
.library(name: "LZ4NIO", targets: ["LZ4NIO"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0")
],
targets: [
.systemLibrary(name: "lz4Native", pkgConfig: "liblz4"),
.target(
name: "LZ4",
dependencies: [
.byName(name: "lz4Native"),
.product(name: "Logging", package: "swift-log")
]),
.target(
name: "LZ4NIO",
dependencies: [
.product(name: "NIO", package: "swift-nio"),
.product(name: "NIOFoundationCompat", package: "swift-nio"),
.byName(name: "LZ4")
]
),
.testTarget(
name: "LZ4Tests",
dependencies: ["LZ4", "LZ4NIO"]),
]
)