@@ -14,11 +14,13 @@ public import SWBUtil
1414
1515// MARK: Support types
1616
17- public struct ConfiguredTargetGUID : Hashable , Sendable , Codable {
18- public var rawValue : String
17+ public struct ConfiguredTargetIdentifier : Hashable , Sendable , Codable {
18+ public var rawGUID : String
19+ public var targetGUID : TargetGUID
1920
20- public init ( _ rawValue: String ) {
21- self . rawValue = rawValue
21+ public init ( rawGUID: String , targetGUID: TargetGUID ) {
22+ self . rawGUID = rawGUID
23+ self . targetGUID = targetGUID
2224 }
2325}
2426
@@ -61,25 +63,21 @@ public struct BuildDescriptionConfiguredTargetsResponse: Message, SerializableCo
6163
6264 public struct ConfiguredTargetInfo : SerializableCodable , Equatable , Sendable {
6365 /// The GUID of this configured target
64- public let guid : ConfiguredTargetGUID
65-
66- /// The GUID of the target from which this configured target was created
67- public let target : TargetGUID
66+ public let identifier : ConfiguredTargetIdentifier
6867
6968 /// A name of the target that may be displayed to the user
7069 public let name : String
7170
7271 /// The configured targets that this target depends on
73- public let dependencies : Set < ConfiguredTargetGUID >
72+ public let dependencies : Set < ConfiguredTargetIdentifier >
7473
7574 /// The path of the toolchain that should be used to build this target.
7675 ///
7776 /// `nil` if the toolchain for this target could not be determined due to an error.
7877 public let toolchain : Path ?
7978
80- public init ( guid: ConfiguredTargetGUID , target: TargetGUID , name: String , dependencies: Set < ConfiguredTargetGUID > , toolchain: Path ? ) {
81- self . guid = guid
82- self . target = target
79+ public init ( identifier: ConfiguredTargetIdentifier , name: String , dependencies: Set < ConfiguredTargetIdentifier > , toolchain: Path ? ) {
80+ self . identifier = identifier
8381 self . name = name
8482 self . dependencies = dependencies
8583 self . toolchain = toolchain
@@ -108,9 +106,9 @@ public struct BuildDescriptionConfiguredTargetSourcesRequest: SessionMessage, Re
108106 public let request : BuildRequestMessagePayload
109107
110108 /// The configured targets for which to load source file information
111- public let configuredTargets : [ ConfiguredTargetGUID ]
109+ public let configuredTargets : [ ConfiguredTargetIdentifier ]
112110
113- public init ( sessionHandle: String , buildDescriptionID: BuildDescriptionID , request: BuildRequestMessagePayload , configuredTargets: [ ConfiguredTargetGUID ] ) {
111+ public init ( sessionHandle: String , buildDescriptionID: BuildDescriptionID , request: BuildRequestMessagePayload , configuredTargets: [ ConfiguredTargetIdentifier ] ) {
114112 self . sessionHandle = sessionHandle
115113 self . buildDescriptionID = buildDescriptionID
116114 self . request = request
@@ -148,12 +146,12 @@ public struct BuildDescriptionConfiguredTargetSourcesResponse: Message, Serializ
148146
149147 public struct ConfiguredTargetSourceFilesInfo : SerializableCodable , Equatable , Sendable {
150148 /// The configured target to which this info belongs
151- public let configuredTarget : ConfiguredTargetGUID
149+ public let configuredTarget : ConfiguredTargetIdentifier
152150
153151 /// Information about the source files in this source file
154152 public let sourceFiles : [ SourceFileInfo ]
155153
156- public init ( configuredTarget: ConfiguredTargetGUID , sourceFiles: [ SourceFileInfo ] ) {
154+ public init ( configuredTarget: ConfiguredTargetIdentifier , sourceFiles: [ SourceFileInfo ] ) {
157155 self . configuredTarget = configuredTarget
158156 self . sourceFiles = sourceFiles
159157 }
@@ -182,7 +180,7 @@ public struct IndexBuildSettingsRequest: SessionMessage, RequestMessage, Seriali
182180 public let request : BuildRequestMessagePayload
183181
184182 /// The configured target in whose context the build settings of the source file should be loaded
185- public let configuredTarget : ConfiguredTargetGUID
183+ public let configuredTarget : ConfiguredTargetIdentifier
186184
187185 /// The path of the source file for which the build settings should be loaded
188186 public let file : Path
@@ -191,7 +189,7 @@ public struct IndexBuildSettingsRequest: SessionMessage, RequestMessage, Seriali
191189 sessionHandle: String ,
192190 buildDescriptionID: BuildDescriptionID ,
193191 request: BuildRequestMessagePayload ,
194- configuredTarget: ConfiguredTargetGUID ,
192+ configuredTarget: ConfiguredTargetIdentifier ,
195193 file: Path
196194 ) {
197195 self . sessionHandle = sessionHandle
0 commit comments