SwiftModuleBuildDescription
Build description for a Swift module.
SwiftModuleBuildDescription.swift:35final class SwiftModuleBuildDescription
Citizens in Build
Types
enum TestTargetRole
Describes the purpose of a test target, including any special roles such as containing a list of discovered tests or serving as the manifest target which contains the main entry point.
Instance members
let buildToolPluginInvocationResults: [BuildToolPluginInvocationResult]
The results of applying any build tool plugins to this target.
var isTestTarget: Bool
If this target is a test target.
var moduleOutputPath: AbsolutePath
The path to the swiftmodule file after compilation.
var objects: [AbsolutePath]
The objects in this target, containing either machine code or bitcode depending on the build parameters used.
let package: ResolvedPackage
The package this target belongs to.
let prebuildCommandResults: [PrebuildCommandResult]
The results of running any prebuild commands for this target.
let requiredMacroProducts: [ProductBuildDescription]
Any macro products that this target requires to build.
var resourceBundleInfoPlistPath: AbsolutePath?
Path to the resource Info.plist file, if generated.
var resources: [Resource]
The list of all resource files in the target, including the derived ones.
var sources: [AbsolutePath]
The list of all source files in the target, including the derived ones.
var sourcesFileListPath: AbsolutePath
let target: ResolvedModule
The target described by this target.
let testTargetRole: TestTargetRole?
let toolsVersion: ToolsVersion
The tools version of the package that declared the target. This can can be used to conditionalize semantically significant changes in how a target is built.
func compileArguments(
) throws -> [String] The arguments needed to compile this target.
func emitCommandLine(scanInvocation: Bool
) throws -> [String] When
scanInvocation
argument is set totrue
, omit the side-effect producing arguments such as emitting a module or supplementary outputs.func getCommandName(
) -> String func getLLBuildTargetName(
) -> String func symbolGraphExtractArguments(
) throws -> [String] Determines the arguments needed to run
swift-symbolgraph-extract
for this module.