/
Package.swift
61 lines (59 loc) · 1.83 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
// swift-tools-version:5.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "Sepro18",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.executable(
name: "sepro",
targets: ["Tool"]),
.library(
name: "Sepro",
targets: ["Simulation", "Compiler"]),
],
dependencies: [
.package(url: "https://github.com/Stiivi/DotWriter.git", from: "0.1.0"),
.package(url: "https://github.com/AgentFarms/ObjectGraph.git", from: "0.1.2"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
.package(url: "https://github.com/kylef/Commander.git", from: "0.8.0"),
],
targets: [
.target(
name: "Model",
dependencies: []),
.target(
name: "Simulator",
dependencies: []),
.target(
name: "Compiler",
dependencies: ["Model"]),
.target(
name: "Simulation",
dependencies: ["Model", "Simulator", "ObjectGraph"]),
.target(
name: "Tool",
dependencies: [
"Linenoise",
"Commander",
"Shell",
"Compiler",
"Simulation",
"DotWriter",
"Logging",
]),
.target(
name: "Shell",
dependencies: [
"Compiler",
"Simulation",
"Logging",
]),
.target(
name: "Linenoise",
dependencies: []),
.testTarget(
name: "CompilerTests",
dependencies: ["Compiler"])
]
)