STRUCT
TargetScript
Contents
- Properties
namescriptorderinputPathsinputFileListPathsoutputPathsoutputFileListPathsshowEnvVarsInLogbasedOnDependencyAnalysisrunForInstallBuildsOnlyshellPathdependencyFile
- Methods
init(name:order:script:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)pre(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)post(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public struct TargetScript: Codable, EquatableA build phase action used to run a script.
Target scripts, represented as target script build phases in the generated Xcode projects, are useful to define actions to be executed before of after the build process of a target.
Properties
name
public var name: StringName of the build phase when the project gets generated.
script
public var script: ScriptThe script that is to be executed
order
public var order: OrderTarget script order.
inputPaths
public var inputPaths: FileListList of input file paths
inputFileListPaths
public var inputFileListPaths: [FilePath]List of input filelist paths
outputPaths
public var outputPaths: FileListList of output file paths
outputFileListPaths
public var outputFileListPaths: [FilePath]List of output filelist paths
showEnvVarsInLog
public var showEnvVarsInLog: BoolShow environment variables in the logs
basedOnDependencyAnalysis
public var basedOnDependencyAnalysis: Bool?Whether to skip running this script in incremental builds, if nothing has changed
runForInstallBuildsOnly
public var runForInstallBuildsOnly: BoolWhether this script only runs on install builds (default is false)
shellPath
public var shellPath: StringThe path to the shell which shall execute this script.
dependencyFile
public var dependencyFile: FilePath?The path to the dependency file
Methods
init(name:order:script:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public init(
name: String,
order: Order,
script: Script = .embedded(""),
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
)Creates the target script with its attributes.
- Parameters:
- name: Name of the build phase when the project gets generated.
- script: The script to be executed.
- order: Target script order
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- showEnvVarsInLog: Show environment variables in the logs
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
Parameters
| Name | Description |
|---|---|
| name | Name of the build phase when the project gets generated. |
| script | The script to be executed. |
| order | Target script order |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| showEnvVarsInLog | Show environment variables in the logs |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
path: FilePath,
arguments: String...,
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- path: FilePath to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | FilePath to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
path: FilePath,
arguments: [String],
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- path: FilePath to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | FilePath to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
path: FilePath,
arguments: String...,
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- path: FilePath to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | FilePath to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(path:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
path: FilePath,
arguments: [String],
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- path: FilePath to the script to execute.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| path | FilePath to the script to execute. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
tool: String,
arguments: String...,
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Geko will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Geko will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
tool: String,
arguments: [String],
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Geko will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Geko will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
tool: String,
arguments: String...,
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Geko will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Geko will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(tool:arguments:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
tool: String,
arguments: [String],
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- tool: Name of the tool to execute. Geko will look up the tool on the environment's PATH.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| tool | Name of the tool to execute. Geko will look up the tool on the environment’s PATH. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
pre(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func pre(
script: String,
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed before the sources and resources build phase.
- Parameters:
- script: The text of the script to run. This should be kept small.
- arguments: Arguments that to be passed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| script | The text of the script to run. This should be kept small. |
| arguments | Arguments that to be passed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
post(script:name:inputPaths:inputFileListPaths:outputPaths:outputFileListPaths:showEnvVarsInLog:basedOnDependencyAnalysis:runForInstallBuildsOnly:shellPath:dependencyFile:)
public static func post(
script: String,
name: String,
inputPaths: FileList = [],
inputFileListPaths: [FilePath] = [],
outputPaths: FileList = [],
outputFileListPaths: [FilePath] = [],
showEnvVarsInLog: Bool = true,
basedOnDependencyAnalysis: Bool? = nil,
runForInstallBuildsOnly: Bool = false,
shellPath: String = "/bin/sh",
dependencyFile: FilePath? = nil
) -> TargetScriptReturns a target script that gets executed after the sources and resources build phase.
- Parameters:
- script: The script to be executed.
- name: Name of the build phase when the project gets generated.
- inputPaths: Glob pattern to the files.
- inputFileListPaths: List of input filelist paths.
- outputPaths: List of output file paths.
- outputFileListPaths: List of output filelist paths.
- basedOnDependencyAnalysis: Whether to skip running this script in incremental builds
- runForInstallBuildsOnly: Whether this script only runs on install builds (default is false)
- shellPath: The path to the shell which shall execute this script. Default is
/bin/sh. - dependencyFile: The path to the dependency file. Default is
nil.
- Returns: Target script.
Parameters
| Name | Description |
|---|---|
| script | The script to be executed. |
| name | Name of the build phase when the project gets generated. |
| inputPaths | Glob pattern to the files. |
| inputFileListPaths | List of input filelist paths. |
| outputPaths | List of output file paths. |
| outputFileListPaths | List of output filelist paths. |
| basedOnDependencyAnalysis | Whether to skip running this script in incremental builds |
| runForInstallBuildsOnly | Whether this script only runs on install builds (default is false) |
| shellPath | The path to the shell which shall execute this script. Default is /bin/sh. |
| dependencyFile | The path to the dependency file. Default is nil. |
