-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPackage.swift
57 lines (51 loc) · 1.76 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
// swift-tools-version:4.2
import PackageDescription
let package = Package(
name: "quanta",
products: [
.executable(name: "quanta", targets: ["Run"]),
.library(name: "CMozJpeg", type: .static, targets: ["CMozJpeg"]),
.library(name: "Quanta", targets: ["Quanta"]),
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "3.0.0"),
.package(url: "https://github.com/vapor/leaf.git", from: "3.0.0"),
.package(url: "https://github.com/allegro/swiftbox", from: "1.0.0"),
.package(url: "https://github.com/allegro/swift-junit.git", from: "1.0.0"),
],
targets: [
.target(
name: "CMozJpeg",
path: "./Sources/CMozJpeg/",
sources: ["."],
publicHeadersPath: "./includes"
),
.target(name: "Quanta",
dependencies: [
"CMozJpeg",
"Vapor",
"Leaf",
"SwiftBoxLogging",
"SwiftBoxMetrics",
"SwiftBoxConfig"
],
exclude: [
"Config",
"Database",
"Public",
"Resources",
]
),
.target(
name: "Run",
dependencies: ["Quanta"]
),
.testTarget(
name: "QuantaTests",
dependencies: [
"Quanta",
"SwiftTestReporter",
]
),
]
)