@@ -132,6 +132,7 @@ public struct CSetting {
132
132
/// - Parameters:
133
133
/// - path: The path of the directory that contains the headers. The path is relative to the target's directory.
134
134
/// - condition: A condition that restricts the application of the build setting.
135
+ @available ( _PackageDescription, introduced: 5.0 )
135
136
public static func headerSearchPath( _ path: String , _ condition: BuildSettingCondition ? = nil ) -> CSetting {
136
137
return CSetting ( name: " headerSearchPath " , value: [ path] , condition: condition)
137
138
}
@@ -147,6 +148,7 @@ public struct CSetting {
147
148
/// - value: The value of the macro.
148
149
/// - condition: A condition that restricts the application of the build
149
150
/// setting.
151
+ @available ( _PackageDescription, introduced: 5.0 )
150
152
public static func define( _ name: String , to value: String ? = nil , _ condition: BuildSettingCondition ? = nil ) -> CSetting {
151
153
var settingValue = name
152
154
if let value = value {
@@ -172,6 +174,7 @@ public struct CSetting {
172
174
/// - flags: The unsafe flags to set.
173
175
/// - condition: A condition that restricts the application of the build
174
176
/// setting.
177
+ @available ( _PackageDescription, introduced: 5.0 )
175
178
public static func unsafeFlags( _ flags: [ String ] , _ condition: BuildSettingCondition ? = nil ) -> CSetting {
176
179
return CSetting ( name: " unsafeFlags " , value: flags, condition: condition)
177
180
}
@@ -198,6 +201,7 @@ public struct CXXSetting {
198
201
/// - Parameters:
199
202
/// - path: The path of the directory that contains the headers. The path is
200
203
/// - condition: A condition that restricts the application of the build setting.
204
+ @available ( _PackageDescription, introduced: 5.0 )
201
205
public static func headerSearchPath( _ path: String , _ condition: BuildSettingCondition ? = nil ) -> CXXSetting {
202
206
return CXXSetting ( name: " headerSearchPath " , value: [ path] , condition: condition)
203
207
}
@@ -213,6 +217,7 @@ public struct CXXSetting {
213
217
/// - value: The value of the macro.
214
218
/// - condition: A condition that restricts the application of the build
215
219
/// setting.
220
+ @available ( _PackageDescription, introduced: 5.0 )
216
221
public static func define( _ name: String , to value: String ? = nil , _ condition: BuildSettingCondition ? = nil ) -> CXXSetting {
217
222
var settingValue = name
218
223
if let value = value {
@@ -237,6 +242,7 @@ public struct CXXSetting {
237
242
/// - flags: The unsafe flags to set.
238
243
/// - condition: A condition that restricts the application of the build
239
244
/// setting.
245
+ @available ( _PackageDescription, introduced: 5.0 )
240
246
public static func unsafeFlags( _ flags: [ String ] , _ condition: BuildSettingCondition ? = nil ) -> CXXSetting {
241
247
return CXXSetting ( name: " unsafeFlags " , value: flags, condition: condition)
242
248
}
@@ -271,6 +277,7 @@ public struct SwiftSetting {
271
277
/// - name: The name of the macro.
272
278
/// - condition: A condition that restricts the application of the build
273
279
/// setting.
280
+ @available ( _PackageDescription, introduced: 5.0 )
274
281
public static func define( _ name: String , _ condition: BuildSettingCondition ? = nil ) -> SwiftSetting {
275
282
return SwiftSetting ( name: " define " , value: [ name] , condition: condition)
276
283
}
@@ -292,6 +299,7 @@ public struct SwiftSetting {
292
299
/// - flags: The unsafe flags to set.
293
300
/// - condition: A condition that restricts the application of the build
294
301
/// setting.
302
+ @available ( _PackageDescription, introduced: 5.0 )
295
303
public static func unsafeFlags( _ flags: [ String ] , _ condition: BuildSettingCondition ? = nil ) -> SwiftSetting {
296
304
return SwiftSetting ( name: " unsafeFlags " , value: flags, condition: condition)
297
305
}
@@ -365,6 +373,7 @@ public struct LinkerSetting {
365
373
/// - library: The library name.
366
374
/// - condition: A condition that restricts the application of the build
367
375
/// setting.
376
+ @available ( _PackageDescription, introduced: 5.0 )
368
377
public static func linkedLibrary( _ library: String , _ condition: BuildSettingCondition ? = nil ) -> LinkerSetting {
369
378
return LinkerSetting ( name: " linkedLibrary " , value: [ library] , condition: condition)
370
379
}
@@ -380,6 +389,7 @@ public struct LinkerSetting {
380
389
/// - framework: The framework name.
381
390
/// - condition: A condition that restricts the application of the build
382
391
/// setting.
392
+ @available ( _PackageDescription, introduced: 5.0 )
383
393
public static func linkedFramework( _ framework: String , _ condition: BuildSettingCondition ? = nil ) -> LinkerSetting {
384
394
return LinkerSetting ( name: " linkedFramework " , value: [ framework] , condition: condition)
385
395
}
@@ -401,6 +411,7 @@ public struct LinkerSetting {
401
411
/// - flags: The unsafe flags to set.
402
412
/// - condition: A condition that restricts the application of the build
403
413
/// setting.
414
+ @available ( _PackageDescription, introduced: 5.0 )
404
415
public static func unsafeFlags( _ flags: [ String ] , _ condition: BuildSettingCondition ? = nil ) -> LinkerSetting {
405
416
return LinkerSetting ( name: " unsafeFlags " , value: flags, condition: condition)
406
417
}
0 commit comments