mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
296b938e82
Also cleanup the documentation and add more tests for the newly added `postCompileScripts`.
24 lines
553 B
Swift
24 lines
553 B
Swift
import Foundation
|
|
|
|
public protocol ProjectTarget: BuildSettingsContainer {
|
|
|
|
var name: String { get }
|
|
var buildScripts: [BuildScript] { get }
|
|
var scheme: TargetScheme? { get }
|
|
var attributes: [String: Any] { get }
|
|
}
|
|
|
|
extension Target {
|
|
|
|
public var buildScripts: [BuildScript] {
|
|
return preBuildScripts + postCompileScripts + postBuildScripts
|
|
}
|
|
}
|
|
|
|
extension Project {
|
|
|
|
public var projectTargets: [ProjectTarget] {
|
|
return targets.map { $0 as ProjectTarget } + aggregateTargets.map { $0 as ProjectTarget }
|
|
}
|
|
}
|