Files
XcodeGen/Sources/ProjectSpec/Config.swift
T
2017-11-22 13:01:17 +01:00

25 lines
592 B
Swift

import Foundation
import xcproj
import JSONUtilities
public struct Config: Equatable {
public var name: String
public var type: ConfigType?
public init(name: String, type: ConfigType? = nil) {
self.name = name
self.type = type
}
public static func == (lhs: Config, rhs: Config) -> Bool {
return lhs.name == rhs.name && lhs.type == rhs.type
}
public static var defaultConfigs: [Config] = [Config(name: "Debug", type: .debug), Config(name: "Release", type: .release)]
}
public enum ConfigType: String {
case debug
case release
}