-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
108 lines (104 loc) · 3.47 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.5
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
enum SubmoduleName: String {
case fuzzyKit = "FuzzyKit"
case fuzzySets = "FuzzySets"
case fuzzyNumbers = "FuzzyNumbers"
case fuzzyRelations = "FuzzyRelations"
case fuzzyLogic = "FuzzyLogic"
var name: String { rawValue }
var target: String { rawValue }
var testTarget: String { rawValue + "Tests" }
}
let package = Package(
name: "FuzzyKit",
products: [
.library(
name: SubmoduleName.fuzzyKit.name,
targets: [SubmoduleName.fuzzyKit.target]
),
.library(
name: SubmoduleName.fuzzySets.name,
targets: [SubmoduleName.fuzzySets.target]
),
.library(
name: SubmoduleName.fuzzyNumbers.name,
targets: [SubmoduleName.fuzzyNumbers.target]
),
.library(
name: SubmoduleName.fuzzyRelations.name,
targets: [SubmoduleName.fuzzyRelations.target]
),
.library(
name: SubmoduleName.fuzzyLogic.name,
targets: [SubmoduleName.fuzzyLogic.target]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-numerics.git", .upToNextMajor(from: "1.0.0")),
],
targets: [
.target(
name: SubmoduleName.fuzzyKit.target,
dependencies: [
.target(name: SubmoduleName.fuzzySets.target),
.target(name: SubmoduleName.fuzzyNumbers.target),
.target(name: SubmoduleName.fuzzyRelations.target),
.target(name: SubmoduleName.fuzzyLogic.target),
]
),
.target(
name: SubmoduleName.fuzzySets.target,
dependencies: [
.product(name: "RealModule", package: "swift-numerics"),
]
),
.testTarget(
name: SubmoduleName.fuzzySets.testTarget,
dependencies: [
.target(name: SubmoduleName.fuzzySets.target)
]
),
.target(
name: SubmoduleName.fuzzyNumbers.target,
dependencies: [
.target(name: SubmoduleName.fuzzySets.target),
]
),
.testTarget(
name: SubmoduleName.fuzzyNumbers.testTarget,
dependencies: [
.target(name: SubmoduleName.fuzzyNumbers.target),
]
),
.target(
name: SubmoduleName.fuzzyRelations.target,
dependencies: [
.target(name: SubmoduleName.fuzzySets.target),
]
),
.testTarget(
name: SubmoduleName.fuzzyRelations.testTarget,
dependencies: [
.target(name: SubmoduleName.fuzzyRelations.target),
.target(name: SubmoduleName.fuzzySets.target),
]
),
.target(
name: SubmoduleName.fuzzyLogic.target,
dependencies: [
.target(name: SubmoduleName.fuzzySets.target),
.target(name: SubmoduleName.fuzzyRelations.target),
]
),
.testTarget(
name: SubmoduleName.fuzzyLogic.testTarget,
dependencies: [
.target(name: SubmoduleName.fuzzyLogic.target),
.target(name: SubmoduleName.fuzzyRelations.target),
.target(name: SubmoduleName.fuzzySets.target),
]
),
]
)