-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPackage.swift
More file actions
85 lines (84 loc) · 2.61 KB
/
Package.swift
File metadata and controls
85 lines (84 loc) · 2.61 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
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
84
85
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "SwiftDICOMDecoder",
defaultLocalization: "en",
platforms: [
.iOS(.v13),
.macOS(.v12)
],
products: [
.library(name: "DicomCore", targets: ["DicomCore"]),
.executable(name: "dicomtool", targets: ["dicomtool"]),
.library(name: "DicomSwiftUI", targets: ["DicomSwiftUI"]),
.executable(name: "DicomSwiftUIExample", targets: ["DicomSwiftUIExample"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.2.0")
],
targets: [
.target(
name: "DicomCore",
path: "Sources/DicomCore",
resources: [
.process("Resources")
],
linkerSettings: [
.linkedFramework("Metal", .when(platforms: [.iOS, .macOS]))
]
),
.executableTarget(
name: "dicomtool",
dependencies: [
"DicomCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "Sources/dicomtool"
),
.target(
name: "DicomSwiftUI",
dependencies: ["DicomCore"],
path: "Sources/DicomSwiftUI"
),
.executableTarget(
name: "DicomSwiftUIExample",
dependencies: ["DicomSwiftUI", "DicomCore"],
path: "Examples/DicomSwiftUIExample"
),
.testTarget(
name: "DicomCoreTests",
dependencies: ["DicomCore"],
path: "Tests/DicomCoreTests",
exclude: ["Fixtures"],
resources: [
.process("Resources")
],
swiftSettings: [
.define("DEBUG", .when(configuration: .debug))
]
),
.testTarget(
name: "DicomSwiftUITests",
dependencies: ["DicomSwiftUI", "DicomCore"],
path: "Tests/DicomSwiftUITests"
),
.testTarget(
name: "dicomtoolTests",
dependencies: [
"dicomtool",
"DicomCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")
],
path: "Tests/dicomtoolTests"
),
.testTarget(
name: "dicomtoolIntegrationTests",
dependencies: [
"dicomtool",
"DicomCore"
],
path: "Tests/dicomtoolIntegrationTests"
)
]
)