-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathPackage.swift
92 lines (90 loc) · 3.19 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// swift-tools-version:5.10
import PackageDescription
let targets: [Target] = [
.target(
name: "XcodeGraph",
dependencies: [
"AnyCodable",
"Path",
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "XcodeMetadata",
dependencies: [
.product(name: "ServiceContextModule", package: "swift-service-context"),
.product(name: "FileSystem", package: "FileSystem"),
.product(name: "Mockable", package: "Mockable"),
.product(name: "MachOKitC", package: "MachOKit"),
"XcodeGraph",
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.define("MOCKING", .when(configuration: .debug)),
]
),
.testTarget(
name: "XcodeMetadataTests",
dependencies: ["XcodeMetadata", "XcodeGraph"],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.target(
name: "XcodeGraphMapper",
dependencies: [
"XcodeGraph",
"XcodeMetadata",
.product(name: "Command", package: "Command"),
.product(name: "Path", package: "Path"),
.product(name: "XcodeProj", package: "XcodeProj"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.define("MOCKING", .when(configuration: .debug)),
]
),
.testTarget(
name: "XcodeGraphTests",
dependencies: [.target(name: "XcodeGraph")],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]
),
.testTarget(
name: "XcodeGraphMapperTests",
dependencies: [
"XcodeGraphMapper",
.product(name: "FileSystem", package: "FileSystem"),
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
.define("MOCKING", .when(configuration: .debug)),
]
),
]
let package = Package(
name: "XcodeGraph",
platforms: [.macOS(.v13)],
products: [
.library(
name: "XcodeGraph",
targets: ["XcodeGraph"]
),
.library(name: "XcodeGraphMapper", targets: ["XcodeGraphMapper"]),
],
dependencies: [
.package(url: "https://github.com/Flight-School/AnyCodable", .upToNextMajor(from: "0.6.7")),
.package(url: "https://github.com/tuist/Path.git", .upToNextMajor(from: "0.3.8")),
.package(url: "https://github.com/tuist/XcodeProj", .upToNextMajor(from: "8.27.1")),
.package(url: "https://github.com/tuist/Command.git", from: "0.13.0"),
.package(url: "https://github.com/tuist/FileSystem.git", .upToNextMajor(from: "0.7.7")),
.package(url: "https://github.com/apple/swift-service-context", .upToNextMajor(from: "1.2.0")),
.package(url: "https://github.com/Kolos65/Mockable.git", .upToNextMajor(from: "0.3.0")),
.package(url: "https://github.com/p-x9/MachOKit", .upToNextMajor(from: "0.28.0")),
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.4.3"),
],
targets: targets
)