-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathPackage.swift
More file actions
57 lines (52 loc) · 1.24 KB
/
Copy pathPackage.swift
File metadata and controls
57 lines (52 loc) · 1.24 KB
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
// swift-tools-version:4.0
import PackageDescription
let pkg = Package(name: "PromiseKit")
pkg.products = [
.library(name: "PromiseKit", targets: ["PromiseKit", "PromiseKitObjC"])
]
let pmk: Target = .target(name: "PromiseKit")
pmk.path = "Sources"
pmk.exclude = [
"AnyPromise.m",
"PMKCallVariadicBlock.m",
"dispatch_promise.m",
"join.m",
"when.m",
"NSMethodSignatureForBlock.m",
"after.m",
"hang.m",
"race.m",
"Deprecations.swift"
]
let pmkObjc: Target = .target(name: "PromiseKitObjC")
pmkObjc.dependencies = ["PromiseKit"]
pmkObjc.path = "Sources"
pmkObjc.publicHeadersPath = "."
pmkObjc.exclude = [
"PMKCallVariadicBlock.m",
"after.swift",
"AnyPromise.swift",
"Box.swift",
"Catchable.swift",
"Configuration.swift",
"CustomStringConvertible.swift",
"Deprecations.swift",
"Error.swift",
"firstly.swift",
"Guarantee.swift",
"hang.swift",
"Info.plist",
"LogEvent.swift",
"Promise.swift",
"race.swift",
"Resolver.swift",
"Thenable.swift",
"when.swift"
]
pkg.swiftLanguageVersions = [3, 4]
pkg.targets = [
pmk,
pmkObjc,
.testTarget(name: "APlus", dependencies: ["PromiseKit"], path: "Tests/A+"),
.testTarget(name: "CorePromise", dependencies: ["PromiseKit"], path: "Tests/CorePromise"),
]