ClangSourceModuleTarget
Represents a target consisting of a source code module compiled using Clang.
struct ClangSourceModuleTarget
Represents a target consisting of a source code module compiled using Clang.
struct ClangSourceModuleTarget
import PackagePlugin
protocol SourceModuleTarget : Target
Represents a target consisting of a source code module, containing either Swift or source files in one of the C-based languages.
protocol Target
Represents a single target defined in a package.
let dependencies: [TargetDependency]
let directoryURL: URL
The absolute path of the target directory in the local file system.
let headerSearchPaths: [String]
Any custom header search paths specified for the Clang target.
let id: ID
let kind: ModuleKind
let linkedFrameworks: [String]
let linkedLibraries: [String]
let moduleName: String
let name: String
let 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 preprocessorDefinitions: [String]
Any preprocessor definitions specified for the Clang target.
let sourceFiles: FileList
let directory: Path
let publicHeadersDirectory: Path?
The directory containing public C headers, if applicable. This will only be set for targets that have a directory of a public headers.
let publicHeadersDirectoryURL: URL?
The directory containing public C headers, if applicable. This will only be set for targets that have a directory of a public headers.
var recursiveTargetDependencies: [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: 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.