-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPackage.swift
34 lines (32 loc) · 1.08 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
// swift-tools-version:5.3
// The swift-tools-version declares the minimum version of Swift required to build this package.
//
// Yes, these module names are cursed, but see... just read the 'i' of 'i2021' as 'iteration 2021' and ignore it lol
import PackageDescription
let package = Package(
name: "AdventOfCode",
products: [
.executable(name: "AdventOfCode", targets: ["AdventOfCode"])
],
targets: [
.target(
name: "AdventOfCode",
dependencies: ["Days"]),
.target(
name: "Days",
dependencies: ["Year", "i2021", "i2022"]),
.target(
name: "Year"),
.target(
name: "i2021",
dependencies: ["Year"],
resources: Array(1...14).map({.process("Input/day\($0).txt")})),
.target(
name: "i2022",
dependencies: ["Year", "BigInt"],
resources: Array(1...11).map({.process("Input/day\($0).txt")})),
.testTarget(
name: "AdventOfCodeTests",
dependencies: ["AdventOfCode", "Days"]),
]
)