-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
108 lines (106 loc) · 3.89 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "qamani",
platforms: [
SupportedPlatform.macOS(.v10_13) // Minumum version of macOS required, if building on macOS. Required for Process.run()
],
products: [
Product.executable(
name: "itemquulteki",
targets: ["itemquulteki"]),
Product.executable(
name: "peghqiilta",
targets: ["peghqiilta"])
],
dependencies: [
// Dependencies declare other packages that this package depends on.
Package.Dependency.package(
name: "Foma",
url: "https://github.com/dowobeha/Foma.git",
from: "0.4.1"),
Package.Dependency.package(
name: "swift-argument-parser",
url: "https://github.com/apple/swift-argument-parser.git",
from: "0.2.0"),
Package.Dependency.package(
name: "StreamReader",
url: "https://github.com/hectr/swift-stream-reader.git",
from: "0.3.0"),
Package.Dependency.package(
name: "Threading",
url: "https://github.com/Miraion/Threading.git",
from: "1.0.0"),
Package.Dependency.package(
name: "NgramLM",
url: "https://github.com/dowobeha/NgramLM.git",
from: "0.1.6"
),
Package.Dependency.package( // Needed for Swift package manager to see zlib
name: "swift-nio-zlib-support",
url: "https://github.com/apple/swift-nio-zlib-support.git",
from: "1.0.0"
)
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
Target.target(
name: "itemquulteki",
dependencies: [
Target.Dependency.target(
name: "Qamani"),
Target.Dependency.product(
name: "ArgumentParser",
package: "swift-argument-parser"),
]),
Target.target(
name: "Nasuqun",
dependencies: [
Target.Dependency.target(
name: "Qamani"),
Target.Dependency.product(
name: "Foma",
package: "Foma"),
Target.Dependency.product(
name: "StreamReader",
package: "StreamReader"),
Target.Dependency.product(
name: "Threading",
package: "Threading"),
Target.Dependency.product(
name: "NgramLM",
package: "NgramLM")
]),
Target.target(
name: "peghqiilta",
dependencies: [
Target.Dependency.target(
name: "Nasuqun"),
Target.Dependency.target(
name: "Qamani"),
Target.Dependency.product(
name: "ArgumentParser",
package: "swift-argument-parser"),
]),
Target.target(
name: "Qamani",
dependencies: [
Target.Dependency.product(
name: "Foma",
package: "Foma"),
Target.Dependency.product(
name: "StreamReader",
package: "StreamReader"),
Target.Dependency.product(
name: "Threading",
package: "Threading"),
]),
Target.testTarget(
name: "qamaniTests",
dependencies: [
Target.Dependency.target(name: "Qamani")
]),
]
)