forked from nikitabobko/AeroSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
82 lines (80 loc) · 3.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "AeroSpacePackage",
// Runtime support for parameterized protocol types is only available in macOS 13.0.0 or newer
// And it specifies deploymentTarget for CLI
platforms: [.macOS(.v13)],
// Products define the executables and libraries a package produces, making them visible to other packages.
products: [
.executable(name: "aerospace", targets: ["Cli"]),
// Don't use this build for release, use xcode instead
.executable(name: "AeroSpaceApp", targets: ["AeroSpaceApp"]),
// We only need to expose this as a product for xcode
.library(name: "AppBundle", targets: ["AppBundle"]),
],
dependencies: [
.package(url: "https://github.com/InerziaSoft/ISSoundAdditions", from: "2.0.1"),
.package(url: "https://github.com/Kitura/BlueSocket", exact: "2.0.4"),
.package(url: "https://github.com/soffes/HotKey", exact: "0.1.3"),
.package(url: "https://github.com/LebJe/TOMLKit", exact: "0.5.5"),
.package(url: "https://github.com/apple/swift-collections", exact: "1.1.0"),
.package(url: "https://github.com/antlr/antlr4", exact: "4.13.1"),
],
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
targets: [
// Exposes the prviate _AXUIElementGetWindow function to swift
.target(
name: "PrivateApi",
path: "Sources/PrivateApi",
publicHeadersPath: "include"
),
.target(
name: "Common",
dependencies: [
.product(name: "Collections", package: "swift-collections"),
]
),
.target(
name: "ShellParserGenerated",
dependencies: [
.product(name: "Antlr4Static", package: "antlr4"),
]
),
.target(
name: "AppBundle",
dependencies: [
.target(name: "PrivateApi"),
.target(name: "Common"),
.target(name: "ShellParserGenerated"),
.product(name: "Antlr4Static", package: "antlr4"),
.product(name: "Socket", package: "BlueSocket"),
.product(name: "HotKey", package: "HotKey"),
.product(name: "ISSoundAdditions", package: "ISSoundAdditions"),
.product(name: "TOMLKit", package: "TOMLKit"),
.product(name: "Collections", package: "swift-collections"),
]
),
.executableTarget(
name: "AeroSpaceApp",
dependencies: [
.target(name: "AppBundle"),
]
),
.executableTarget(
name: "Cli",
dependencies: [
.target(name: "Common"),
.product(name: "Socket", package: "BlueSocket"),
]
),
.testTarget(
name: "AppBundleTests",
dependencies: [
.target(name: "AppBundle"),
]
),
]
)