-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
73 lines (72 loc) · 2.57 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "GGViz",
platforms: [
.macOS(.v10_11), .iOS(.v9), .tvOS(.v9), .watchOS(.v2)
],
products: [
.library(
name: "GGDSL",
targets: ["GGDSL"]),
.library(
name: "GGViz",
targets: ["GGViz"]),
.library(
name: "GGBundle",
targets: ["GGBundle"]),
.executable( // SR-1954
name: "ggtool", // SR-1954
targets: ["GGTool"]), // SR-1954
],
dependencies: [
.package(url: "https://github.com/jectivex/Judo.git", .branch("main")),
.package(url: "https://github.com/glimpseio/GGGrammar.git", .branch("main")),
.package(url: "https://github.com/weichsel/ZIPFoundation.git", .upToNextMinor(from: "0.9.12")),
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.4.3")),
],
targets: [
.target(
name: "GGDSL",
dependencies: [.product(name: "GGSchema", package: "GGGrammar")],
resources: [.process("Resources/")]),
.testTarget(
name: "GGDSLTests",
dependencies: [
.product(name: "GGSamples", package: "GGGrammar"),
"GGDSL",
],
resources: [.copy("TestResources/")]),
.target(
name: "GGBundle",
dependencies: [.product(name: "GGSchema", package: "GGGrammar")],
resources: [.process("Resources/")]),
.testTarget(
name: "GGBundleTests",
dependencies: ["GGBundle"],
resources: [.copy("TestResources/")]),
.target(
name: "GGViz",
dependencies: ["Judo", "GGDSL"],
resources: [.process("Resources/")]),
.testTarget(
name: "GGVizTests",
dependencies: [
"GGViz",
.product(name: "GGSamples", package: "GGGrammar"),
.product(name: "GGSources", package: "GGGrammar"),
],
resources: [.copy("TestResources/")]),
.target( // SR-1954
name: "GGTool", // SR-1954
dependencies: [ // SR-1954
"GGBundle", // SR-1954
"GGViz", // SR-1954
"ZIPFoundation", // SR-1954
.product(name: "ArgumentParser", package: "swift-argument-parser") // SR-1954
]), // SR-1954
.testTarget( // SR-1954
name: "GGToolTests", // SR-1954
dependencies: ["GGTool"]), // SR-1954
]
)