-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
42 lines (38 loc) · 1018 Bytes
/
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
// swift-tools-version:5.0
import PackageDescription
let package = Package(
name: "Swift plays Pokemon",
platforms: [
.macOS(.v10_11)
],
products: [
.executable(name: "Code generation", targets: ["Code generation"]),
.library(name: "GameBoyKit", targets: ["GameBoyKit"])
],
targets: [
// We can't add 'GameBoyMac' because SPM does not support 'Metal'
// Framework with GameBoy emulator
.target(
name: "GameBoyKit",
dependencies: []
),
// Unit tests
.testTarget(
name: "GameBoyKitTests",
dependencies: ["GameBoyKit"]
),
// Tests that execute specific ROMs, for example:
// http://gbdev.gg8.se/files/roms/blargg-gb-tests/
.target(
name: "GameBoyKitROMTests",
dependencies: ["GameBoyKit"],
path: "Tests/GameBoyKitROMTests"
),
// Tiny tool to work with 'opcodes.json'
// from https://github.com/lmmendes/game-boy-opcodes
.target(
name: "Code generation",
dependencies: []
)
]
)