SystemLibraryTarget
Represents a target describing a system library that is expected to be present on the host system.
struct SystemLibraryTarget
Represents a target describing a system library that is expected to be present on the host system.
struct SystemLibraryTarget
import PackagePlugin
protocol Target
Represents a single target defined in a package.
let compilerFlags: [String]
Flags from pkg-config
to pass to Clang (and to SwiftC via -Xcc
).
var dependencies: [TargetDependency]
var directoryURL: URL
The absolute path of the target directory in the local file system.
let id: ID
let linkerFlags: [String]
Flags from pkg-config
to pass to the platform linker.
var name: String
let pkgConfig: String?
The name of the pkg-config
file, if any, describing the library.
var directory: Path
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.