Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Oct 22, 2020 · 2 revisions

Target

The basic building blocks of a package.

public struct Target: Equatable

A target can define a module or a test suite.

Targets can depend on other targets in this package, and on products in packages which this package depends on.

Inheritance

Decodable, Equatable

Initializers

init(from:)

public init(from decoder: Decoder) throws

Properties

`type`

The type of target (regular, test, or system)

let `type`: `Type`

name

The name of the target.

let name: String

path

The path to the target sources.

let path: String?

excludedPaths

The paths to sources that are excluded from the target.

let excludedPaths: [String]

dependencies

The names of the dependencies used by the target.

let dependencies: [String]

resources

The paths to resources bundled into the target.

let resources: [String]

settings

The settings specified for build the target.

let settings: [String]

cModuleName

The name used for C modules.

let cModuleName: String?

providers

The providers of system packages used by the target.

let providers: [SystemPackageProvider]