-
Notifications
You must be signed in to change notification settings - Fork 1
/
Package.swift
52 lines (51 loc) · 1.95 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
// swift-tools-version: 5.7
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "SwiftCompilationTimingParser",
platforms: [
.macOS(.v13)
],
products: [
.executable(name: "SwiftCompilationTimingParser", targets: ["SwiftCompilationTimingParser"]),
.library(name: "SwiftCompilationTimingParserFramework", targets: ["SwiftCompilationTimingParserFramework"])
],
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.0.0")),
.package(url: "https://github.com/MobileNativeFoundation/XCLogParser", exact: "0.2.39"),
],
targets: [
.executableTarget(
name: "SwiftCompilationTimingParser",
dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "XCLogParser", package: "XCLogParser"),
"SwiftCompilationTimingParserFramework"
],
path: "Sources/SwiftCompilationTimingParser",
swiftSettings: [.define("DEBUG", .when(configuration: .debug))]),
.target(
name: "SwiftCompilationTimingParserFramework",
dependencies: [
.product(name: "XCLogParser", package: "XCLogParser"),
],
path: "Sources/SwiftCompilationTimingParserFramework"
),
.testTarget(
name: "SwiftCompilationTimingParserTests",
dependencies: [
"SwiftCompilationTimingParser",
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "XCLogParser", package: "XCLogParser"),
]
),
]
)
for target in package.targets {
target.swiftSettings = target.swiftSettings ?? []
target.swiftSettings?.append(
.unsafeFlags([
"-enable-bare-slash-regex",
])
)
}