-
Notifications
You must be signed in to change notification settings - Fork 2
/
Package.swift
36 lines (33 loc) · 1.11 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "mvs",
platforms: [
.macOS(.v11)
],
products: [
.executable(name: "mvs", targets: ["Driver"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "0.5.0"),
.package(url: "https://github.com/kyouko-taiga/Diesel.git", from: "1.1.0"),
.package(name: "LLVM", url: "https://github.com/kyouko-taiga/LLVMSwift.git", .branch("master")),
],
targets: [
.target(
name: "Driver",
dependencies: [
"AST", "CodeGen", "LLVM", "Parse", "Sema",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.target(name: "AST", dependencies: ["Basic"]),
.target(name: "Basic"),
.target(name: "CodeGen", dependencies: ["AST", "Basic", "LLVM"]),
.target(name: "Parse", dependencies: ["AST", "Basic", "Diesel"]),
.target(name: "Sema", dependencies: ["AST", "Basic"]),
.testTarget(
name: "MVSTests",
dependencies: ["AST", "CodeGen", "LLVM", "Parse", "Sema"],
resources: [.copy("TestCases")]),
])