-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Package.swift
45 lines (44 loc) · 1.59 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
// swift-tools-version:6.0
import PackageDescription
let package = Package(
name: "sample-testable-package",
platforms: [
.macOS(.v15),
.iOS(.v18),
.watchOS(.v11),
.tvOS(.v18),
],
products: [
.executable(name: "SampleTestablePackageRun", targets: ["SampleTestablePackageRun"]),
.library(name: "SampleTestablePackage", targets: ["SampleTestablePackage"]),
.library(name: "SampleTestablePackageBenchmark", targets: ["SampleTestablePackageBenchmark"]),
],
dependencies: [
.package(url: "https://github.com/apple/swift-log.git", from: "1.5.0")
],
targets: [
.executableTarget(
name: "SampleTestablePackageRun",
dependencies: [
.product(name: "Logging", package: "swift-log"),
.target(name: "SampleTestablePackageBenchmark"),
],
path: "sample-testable-package/Sources/SampleTestablePackageRun"
),
.target(
name: "SampleTestablePackage",
dependencies: [],
path: "sample-testable-package/Sources/SampleTestablePackage"
),
.target(
name: "SampleTestablePackageBenchmark",
dependencies: [.target(name: "SampleTestablePackage")],
path: "sample-testable-package/Sources/SampleTestablePackageBenchmark"
),
.testTarget(
name: "SampleTestablePackageTests",
dependencies: [.target(name: "SampleTestablePackage")],
path: "sample-testable-package/Tests/SampleTestablePackageTests"
),
]
)