-
Notifications
You must be signed in to change notification settings - Fork 3
/
Package.swift
51 lines (47 loc) · 1.24 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
// swift-tools-version:5.5
import PackageDescription
let package = Package(
name: "Shwift",
platforms: [
.macOS(.v12)
],
products: [
.library(name: "Script", targets: ["Script"]),
.library(name: "Shwift", targets: ["Shwift"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", from: "1.0.0"),
.package(url: "https://github.com/apple/swift-system", from: "1.1.1"),
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
],
targets: [
.target(
name: "Shwift",
dependencies: [
.product(name: "SystemPackage", package: "swift-system"),
.product(name: "NIO", package: "swift-nio"),
.product(name: "_NIOConcurrency", package: "swift-nio"),
],
cSettings: [
.define("_GNU_SOURCE", .when(platforms: [.linux]))
]),
.target(
name: "Script",
dependencies: [
"Shwift",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
]),
.executableTarget(
name: "ScriptExample",
dependencies: [
"Script"
]
),
.testTarget(
name: "ShwiftTests",
dependencies: ["Shwift"],
resources: [
.copy("Cat.txt")
]),
]
)