forked from Carthage/Carthage
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuildOptions.swift
More file actions
31 lines (28 loc) · 936 Bytes
/
BuildOptions.swift
File metadata and controls
31 lines (28 loc) · 936 Bytes
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
//
// BuildOptions.swift
// Carthage
//
// Created by Syo Ikeda on 5/22/16.
// Copyright © 2016 Carthage. All rights reserved.
//
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?
/// Rebuild even if cached builds exist.
public var cacheBuilds: Bool
public init(configuration: String, platforms: Set<Platform> = [], toolchain: String? = nil, derivedDataPath: String? = nil, cacheBuilds: Bool = true) {
self.configuration = configuration
self.platforms = platforms
self.toolchain = toolchain
self.derivedDataPath = derivedDataPath
self.cacheBuilds = cacheBuilds
}
}