-
Notifications
You must be signed in to change notification settings - Fork 8
/
Package.swift
43 lines (41 loc) · 1.29 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "xcgrapher",
platforms: [
.macOS(.v10_15),
],
products: [
.executable(name: "xcgrapher", targets: ["xcgrapher"]),
.library(name: "XCGrapherModuleImportPlugin", type: .dynamic, targets: ["XCGrapherModuleImportPlugin"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.4.0")),
.package(url: "https://github.com/maxchuquimia/XCGrapherPluginSupport", .upToNextMinor(from: "0.0.6")),
],
targets: [
.target(
name: "xcgrapher",
dependencies: [
"XCGrapherLib",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.target(
name: "XCGrapherLib", // Main source added to a separate framework for testability reasons
dependencies: [
"XCGrapherPluginSupport",
]
),
.target(
name: "XCGrapherModuleImportPlugin",
dependencies: [
"XCGrapherPluginSupport",
]
),
.testTarget(
name: "XCGrapherLibTests",
dependencies: ["XCGrapherLib"]
),
]
)