forked from Carthage/Carthage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BuildOptions.swift
33 lines (31 loc) · 975 Bytes
/
BuildOptions.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import XCDBLD
/// The build options used for building `xcodebuild` command.
public struct BuildOptions {
/// The Xcode configuration to build.
public var configuration: String
/// The platforms to build for.
public var platforms: Set<Platform>
/// The toolchain to build with.
public var toolchain: String?
/// The path to the custom derived data folder.
public var derivedDataPath: String?
/// Whether to skip building if valid cached builds exist.
public var cacheBuilds: Bool
/// Whether to use downloaded binaries if possible.
public var useBinaries: Bool
public init(
configuration: String,
platforms: Set<Platform> = [],
toolchain: String? = nil,
derivedDataPath: String? = nil,
cacheBuilds: Bool = true,
useBinaries: Bool = true
) {
self.configuration = configuration
self.platforms = platforms
self.toolchain = toolchain
self.derivedDataPath = derivedDataPath
self.cacheBuilds = cacheBuilds
self.useBinaries = useBinaries
}
}