forked from lauraragone/Inclusive-Color
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Package.swift
41 lines (37 loc) · 1.32 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
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "InclusiveColor",
platforms: [
.iOS(.v10),
.macOS(.v10_13),
.tvOS(.v10),
.watchOS(.v6)
],
products: [
// These two products have different uses.
//
// (1) Core tools are in "InclusiveColorTools". You can link this to production executables.
//
// (2) For unit testing targets only, "InclusiveColor" wraps the InclusiveColorTools' methods with custom assertions and error handling.
//
// Linking the latter XCTest-extending library to production targets will cause build errors. How Swift Package Manager chooses to handle XCTest extensions requires that little linking workaround and a symlink between the libraries within this package.
.library(
name: "InclusiveColor",
targets: ["InclusiveColor"]),
.library(
name: "InclusiveColorTools",
targets: ["InclusiveColorTools"]),
],
targets: [
.target(
name: "InclusiveColor",
dependencies: []),
.target(
name: "InclusiveColorTools",
dependencies: []),
.testTarget(
name: "InclusiveColorTests",
dependencies: ["InclusiveColor"]),
]
)