-
Notifications
You must be signed in to change notification settings - Fork 12
/
Package.swift
58 lines (56 loc) · 1.21 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
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to
// build this package.
import PackageDescription
let package = Package(
name: "cggen",
platforms: [
.macOS(.v10_15), .iOS(.v12),
],
products: [
.executable(name: "cggen", targets: ["cggen"]),
.library(name: "cggen-bc-runner", targets: ["BCRunner"]),
],
dependencies: [
.package(
url: "https://github.com/apple/swift-argument-parser",
.upToNextMinor(from: "0.4.0")
),
],
targets: [
.target(
name: "BCCommon"
),
.target(
name: "BCRunner",
dependencies: ["BCCommon"]
),
.target(
name: "cggen",
dependencies: [
"libcggen",
"Base",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]
),
.target(
name: "libcggen",
dependencies: ["Base", "PDFParse", "BCCommon"]
),
.target(
name: "Base"
),
.target(
name: "PDFParse",
dependencies: ["Base"]
),
.testTarget(
name: "UnitTests",
dependencies: ["Base", "libcggen"]
),
.testTarget(
name: "RegressionTests",
dependencies: ["libcggen", "BCRunner"]
),
]
)