forked from PromiseKit/Foundation
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 813 Bytes
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
// swift-tools-version:5.0
import PackageDescription
let pkg = Package(name: "PMKFoundation")
pkg.products = [
.library(name: "PMKFoundation", targets: ["PMKFoundation"]),
]
pkg.dependencies = [
.package(url: "https://github.com/mxcl/PromiseKit.git", from: "6.8.3")
]
pkg.swiftLanguageVersions = [.v4, .v4_2, .v5]
let target: Target = .target(name: "PMKFoundation")
target.path = "Sources"
target.exclude = ["NSNotificationCenter", "NSTask", "NSURLSession"].flatMap {
["\($0)+AnyPromise.m", "\($0)+AnyPromise.h"]
}
target.exclude.append("PMKFoundation.h")
target.dependencies = [
"PromiseKit"
]
#if os(Linux)
target.exclude += [
"afterlife.swift",
"NSObject+Promise.swift"
]
#endif
pkg.targets = [target]
pkg.platforms = [
.macOS(.v10_10), .iOS(.v8), .tvOS(.v9), .watchOS(.v2)
]