-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
68 lines (64 loc) · 1.35 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
// swift-tools-version:5.9
// 📜 https://github.com/apple/swift-package-manager/blob/main/Documentation/PackageDescription.md
import PackageDescription
#if os(Linux)
let products: [Product] = [
.library(
name: "Blocks",
targets: ["Blocks"]
)
]
#else
let products: [Product] = [
.library(
name: "Blocks",
targets: ["Blocks"]
),
.library(
name: "ObjectiveBlocks",
targets: ["ObjectiveBlocks"]
)
]
#endif
#if os(Linux)
let targets: [Target] = [
.target(
name: "Blocks",
dependencies: []
),
.testTarget(
name: "BlocksTests",
dependencies: ["Blocks"],
resources: [.process("Resources")]
)
]
#else
let targets: [Target] = [
.target(
name: "Blocks",
dependencies: []
),
.testTarget(
name: "BlocksTests",
dependencies: ["Blocks"],
resources: [.process("Resources")]
),
.target(
name: "ObjectiveBlocks",
dependencies: [],
publicHeadersPath: "public"
)
]
#endif
let package = Package(
name: "swift-blocks",
platforms: [
.macOS(.v10_15), // Limiting factor: XCTest's fulfillment
.iOS(.v13), // Limiting factor: XCTest's fulfillment
.tvOS(.v15),
.watchOS(.v8)
],
products: products,
dependencies: [],
targets: targets
)