-
Notifications
You must be signed in to change notification settings - Fork 838
Allow specifying run script and copy files phase ordering #402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
ffc6b92
731428c
e6a0af7
6819516
aff1ae2
296b938
ef0c87e
e6288b4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,8 +33,9 @@ public struct Target: ProjectTarget { | |
public var transitivelyLinkDependencies: Bool? | ||
public var directlyEmbedCarthageDependencies: Bool? | ||
public var requiresObjCLinking: Bool? | ||
public var prebuildScripts: [BuildScript] | ||
public var postbuildScripts: [BuildScript] | ||
public var preBuildScripts: [BuildScript] | ||
public var postCompileScripts: [BuildScript] | ||
brentleyjones marked this conversation as resolved.
Show resolved
Hide resolved
|
||
public var postBuildScripts: [BuildScript] | ||
public var buildRules: [BuildRule] | ||
public var configFiles: [String: String] | ||
public var scheme: TargetScheme? | ||
|
@@ -70,8 +71,9 @@ public struct Target: ProjectTarget { | |
transitivelyLinkDependencies: Bool? = nil, | ||
directlyEmbedCarthageDependencies: Bool? = nil, | ||
requiresObjCLinking: Bool? = nil, | ||
prebuildScripts: [BuildScript] = [], | ||
postbuildScripts: [BuildScript] = [], | ||
preBuildScripts: [BuildScript] = [], | ||
postCompileScripts: [BuildScript] = [], | ||
postBuildScripts: [BuildScript] = [], | ||
buildRules: [BuildRule] = [], | ||
scheme: TargetScheme? = nil, | ||
legacy: LegacyTarget? = nil, | ||
|
@@ -91,8 +93,9 @@ public struct Target: ProjectTarget { | |
self.transitivelyLinkDependencies = transitivelyLinkDependencies | ||
self.directlyEmbedCarthageDependencies = directlyEmbedCarthageDependencies | ||
self.requiresObjCLinking = requiresObjCLinking | ||
self.prebuildScripts = prebuildScripts | ||
self.postbuildScripts = postbuildScripts | ||
self.preBuildScripts = preBuildScripts | ||
self.postCompileScripts = postCompileScripts | ||
self.postBuildScripts = postBuildScripts | ||
self.buildRules = buildRules | ||
self.scheme = scheme | ||
self.legacy = legacy | ||
|
@@ -218,8 +221,9 @@ extension Target: Equatable { | |
lhs.info == rhs.info && | ||
lhs.entitlements == rhs.entitlements && | ||
lhs.dependencies == rhs.dependencies && | ||
lhs.prebuildScripts == rhs.prebuildScripts && | ||
lhs.postbuildScripts == rhs.postbuildScripts && | ||
lhs.preBuildScripts == rhs.preBuildScripts && | ||
lhs.postCompileScripts == rhs.postCompileScripts && | ||
lhs.postBuildScripts == rhs.postBuildScripts && | ||
lhs.buildRules == rhs.buildRules && | ||
lhs.scheme == rhs.scheme && | ||
lhs.legacy == rhs.legacy && | ||
|
@@ -298,8 +302,9 @@ extension Target: NamedJSONDictionaryConvertible { | |
directlyEmbedCarthageDependencies = jsonDictionary.json(atKeyPath: "directlyEmbedCarthageDependencies") | ||
requiresObjCLinking = jsonDictionary.json(atKeyPath: "requiresObjCLinking") | ||
|
||
prebuildScripts = jsonDictionary.json(atKeyPath: "prebuildScripts") ?? [] | ||
postbuildScripts = jsonDictionary.json(atKeyPath: "postbuildScripts") ?? [] | ||
preBuildScripts = jsonDictionary.json(atKeyPath: "preBuildScripts") ?? jsonDictionary.json(atKeyPath: "prebuildScripts") ?? [] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes me think the |
||
postCompileScripts = jsonDictionary.json(atKeyPath: "postCompileScripts") ?? [] | ||
postBuildScripts = jsonDictionary.json(atKeyPath: "postBuildScripts") ?? jsonDictionary.json(atKeyPath: "postbuildScripts") ?? [] | ||
buildRules = jsonDictionary.json(atKeyPath: "buildRules") ?? [] | ||
scheme = jsonDictionary.json(atKeyPath: "scheme") | ||
legacy = jsonDictionary.json(atKeyPath: "legacy") | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,8 @@ class SourceGenerator { | |
if headerVisibility == .public { | ||
chosenBuildPhase = .copyFiles(TargetSource.BuildPhase.CopyFilesSettings( | ||
destination: .productsDirectory, | ||
subpath: "include/$(PRODUCT_NAME)" | ||
subpath: "include/$(PRODUCT_NAME)", | ||
phaseOrder: .preCompile | ||
)) | ||
} else { | ||
chosenBuildPhase = nil | ||
|
@@ -188,7 +189,8 @@ class SourceGenerator { | |
guard targetType == .staticLibrary else { return nil } | ||
return .copyFiles(TargetSource.BuildPhase.CopyFilesSettings( | ||
destination: .productsDirectory, | ||
subpath: "include/$(PRODUCT_NAME)" | ||
subpath: "include/$(PRODUCT_NAME)", | ||
phaseOrder: .preCompile | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This being |
||
)) | ||
case "framework": return .frameworks | ||
case "xpc": return .copyFiles(.xpcServices) | ||
|
Uh oh!
There was an error while loading. Please reload this page.