-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
83 lines (79 loc) · 2.25 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
// swift-tools-version:5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
// https://theswiftdev.com/the-swift-package-manifest-file/
import PackageDescription
var linkerSettings: [LinkerSetting]? {
#if os(Linux)
return [
.linkedLibrary("gd"),
.linkedLibrary("iptcdata"),
.linkedLibrary("exif"),
]
#else
return nil
#endif
}
let package = Package(
name: "Munin",
platforms: [
.macOS(.v10_15),
// .linux
],
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.executable(
name: "munin",
targets: ["Munin"]
),
.library(
name: "MuninKit",
targets: ["MuninKit"]
),
],
dependencies: [
.package(url: "https://github.com/t089/swift-vips.git", branch: "main"),
.package(url: "https://github.com/kradalby/SwiftExif.git", from: "0.0.7"),
// .package(path: "../SwiftExif"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.4"),
.package(url: "https://github.com/Kitura/Configuration.git", from: "3.1.0"),
.package(url: "https://github.com/onevcat/Rainbow.git", from: "4.0.1"),
.package(
url: "https://github.com/apple/swift-tools-support-core.git",
.upToNextMajor(from: "0.6.1")),
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.4.0"),
],
targets: [
.executableTarget(
name: "Munin",
dependencies: [
"MuninKit",
.product(name: "Logging", package: "swift-log"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
"Configuration",
]
),
.target(
name: "MuninKit",
dependencies: [
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
.product(name: "Logging", package: "swift-log"),
.product(name: "VIPS", package: "swift-vips"),
"SwiftExif",
"Configuration",
"Rainbow",
],
exclude: ["Templates"]
),
.testTarget(
name: "MuninTests",
dependencies: ["Munin"]
),
.testTarget(
name: "MuninKitTests",
dependencies: [
"MuninKit",
"Configuration",
]
),
]
)