SwiftSourceModuleTarget
Represents a target consisting of a source code module compiled using Swift.
struct SwiftSourceModuleTargetRepresents a target consisting of a source code module compiled using Swift.
struct SwiftSourceModuleTargetimport PackagePluginprotocol SourceModuleTarget : TargetRepresents a target consisting of a source code module, containing either Swift or source files in one of the C-based languages.
protocol TargetRepresents a single target defined in a package.
let compilationConditions: [String]Any custom compilation conditions specified for the Swift target in the package manifest.
let dependencies: [TargetDependency]let directoryURL: URLlet id: SwiftSourceModuleTarget.IDlet kind: ModuleKindlet linkedFrameworks: [String]let linkedLibraries: [String]let moduleName: Stringlet name: Stringlet pluginGeneratedResources: [URL]Paths of any resources generated by other plugins that have been applied to the given target before the plugin currently being executed.
let pluginGeneratedSources: [URL]Paths of any sources generated by other plugins that have been applied to the given target before the plugin currently being executed.
let sourceFiles: FileListlet directory: Pathvar recursiveTargetDependencies: [any Target] { get }The transitive closure of all the targets on which the receiver depends, ordered such that every dependency appears before any other target that depends on it (i.e. in “topological sort order”).
var sourceModule: (any SourceModuleTarget)? { get }Convenience accessor which casts the receiver toSourceModuleTarget if possible.
func sourceFiles(withSuffix suffix: String) -> FileList A possibly empty list of source files in the target that have the given filename suffix.