-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
41 lines (38 loc) · 1.3 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
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "GraphConverter",
platforms: [.macOS(.v13)],
products: [
.executable(name: "GraphConverter", targets: ["GraphConverter"]),
.library(name: "GraphVizAdaptor", targets: ["GraphVizAdaptor"]),
.library(name: "GraphModel", targets: ["GraphModel"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "1.2.0"),
.package(url: "https://github.com/Kyle-Ye/GraphViz.git", from: "0.4.2"),
],
targets: [
.executableTarget(
name: "GraphConverter",
dependencies: [
"GraphVizAdaptor",
"GraphModel",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.target(
name: "GraphVizAdaptor",
dependencies: [
.product(name: "GraphViz", package: "GraphViz"),
]
),
.target(name: "GraphModel"),
.testTarget(
name: "GraphConverterTests",
dependencies: ["GraphConverter"],
resources: [.process("Resources")]
),
]
)