2019-03-27 10:36:08 +03:00
|
|
|
// swift-tools-version:5.0
|
2017-07-19 15:55:01 +03:00
|
|
|
|
|
|
|
import PackageDescription
|
|
|
|
|
|
|
|
let package = Package(
|
|
|
|
name: "XcodeGen",
|
2019-09-30 19:04:38 +03:00
|
|
|
platforms: [.macOS(.v10_13)],
|
2017-09-14 01:48:57 +03:00
|
|
|
products: [
|
2017-12-27 12:50:30 +03:00
|
|
|
.executable(name: "xcodegen", targets: ["XcodeGen"]),
|
2017-09-14 01:48:57 +03:00
|
|
|
.library(name: "XcodeGenKit", targets: ["XcodeGenKit"]),
|
2017-11-18 02:15:23 +03:00
|
|
|
.library(name: "ProjectSpec", targets: ["ProjectSpec"]),
|
2017-07-19 15:55:01 +03:00
|
|
|
],
|
|
|
|
dependencies: [
|
2019-06-08 00:08:46 +03:00
|
|
|
.package(url: "https://github.com/kylef/PathKit.git", from: "1.0.0"),
|
2020-11-10 06:18:04 +03:00
|
|
|
.package(url: "https://github.com/jpsim/Yams.git", from: "4.0.0"),
|
2019-04-09 15:20:47 +03:00
|
|
|
.package(url: "https://github.com/yonaskolb/JSONUtilities.git", from: "4.2.0"),
|
2018-09-13 16:05:01 +03:00
|
|
|
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.0"),
|
2017-12-16 23:55:07 +03:00
|
|
|
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
|
2020-07-14 17:53:18 +03:00
|
|
|
.package(url: "https://github.com/tuist/XcodeProj.git", .exact("7.13.0")),
|
2020-01-05 03:03:10 +03:00
|
|
|
.package(url: "https://github.com/jakeheis/SwiftCLI.git", from: "6.0.0"),
|
2020-02-07 02:40:24 +03:00
|
|
|
.package(url: "https://github.com/mxcl/Version", from: "2.0.0"),
|
2020-06-17 11:12:34 +03:00
|
|
|
.package(url: "https://github.com/SwiftDocOrg/GraphViz.git", from: "0.1.0"),
|
2017-09-14 01:48:57 +03:00
|
|
|
],
|
|
|
|
targets: [
|
|
|
|
.target(name: "XcodeGen", dependencies: [
|
2019-01-28 14:19:02 +03:00
|
|
|
"XcodeGenCLI",
|
2020-02-07 02:40:24 +03:00
|
|
|
"Version",
|
2018-11-10 16:42:21 +03:00
|
|
|
]),
|
|
|
|
.target(name: "XcodeGenCLI", dependencies: [
|
2019-01-28 14:19:02 +03:00
|
|
|
"XcodeGenKit",
|
|
|
|
"ProjectSpec",
|
|
|
|
"SwiftCLI",
|
|
|
|
"Rainbow",
|
|
|
|
"PathKit",
|
2020-02-07 02:40:24 +03:00
|
|
|
"Version",
|
2017-09-14 01:48:57 +03:00
|
|
|
]),
|
|
|
|
.target(name: "XcodeGenKit", dependencies: [
|
2019-01-28 14:19:02 +03:00
|
|
|
"ProjectSpec",
|
|
|
|
"JSONUtilities",
|
2019-06-08 00:08:46 +03:00
|
|
|
"XcodeProj",
|
2019-01-28 14:19:02 +03:00
|
|
|
"PathKit",
|
2019-10-27 15:15:12 +03:00
|
|
|
"Core",
|
2020-05-04 13:52:49 +03:00
|
|
|
"GraphViz",
|
2017-09-14 01:48:57 +03:00
|
|
|
]),
|
|
|
|
.target(name: "ProjectSpec", dependencies: [
|
2019-01-28 14:19:02 +03:00
|
|
|
"JSONUtilities",
|
2019-06-08 00:08:46 +03:00
|
|
|
"XcodeProj",
|
2019-01-28 14:19:02 +03:00
|
|
|
"Yams",
|
2019-10-27 15:15:12 +03:00
|
|
|
"Core",
|
2020-02-07 02:40:24 +03:00
|
|
|
"Version",
|
2019-10-27 15:15:12 +03:00
|
|
|
]),
|
|
|
|
.target(name: "Core", dependencies: [
|
|
|
|
"PathKit",
|
|
|
|
"Yams",
|
|
|
|
]),
|
|
|
|
.target(name: "TestSupport", dependencies: [
|
|
|
|
"XcodeProj",
|
|
|
|
"Spectre",
|
|
|
|
"PathKit",
|
2017-09-14 01:48:57 +03:00
|
|
|
]),
|
|
|
|
.testTarget(name: "XcodeGenKitTests", dependencies: [
|
2019-01-28 14:19:02 +03:00
|
|
|
"XcodeGenKit",
|
|
|
|
"Spectre",
|
|
|
|
"PathKit",
|
2019-10-27 15:15:12 +03:00
|
|
|
"TestSupport",
|
|
|
|
]),
|
|
|
|
.testTarget(name: "FixtureTests", dependencies: [
|
|
|
|
"XcodeGenKit",
|
|
|
|
"Spectre",
|
|
|
|
"PathKit",
|
|
|
|
"TestSupport",
|
|
|
|
]),
|
|
|
|
.testTarget(name: "CoreTests", dependencies: [
|
|
|
|
"Core",
|
|
|
|
"Spectre",
|
|
|
|
"PathKit",
|
|
|
|
"TestSupport",
|
|
|
|
]),
|
|
|
|
.testTarget(name: "ProjectSpecTests", dependencies: [
|
|
|
|
"ProjectSpec",
|
|
|
|
"Spectre",
|
|
|
|
"PathKit",
|
|
|
|
"TestSupport",
|
2018-11-03 12:27:59 +03:00
|
|
|
]),
|
|
|
|
.testTarget(name: "PerformanceTests", dependencies: [
|
2019-01-28 14:19:02 +03:00
|
|
|
"XcodeGenKit",
|
|
|
|
"Spectre",
|
|
|
|
"PathKit",
|
2019-10-27 15:15:12 +03:00
|
|
|
"TestSupport",
|
2019-01-28 14:19:02 +03:00
|
|
|
]),
|
2017-07-19 15:55:01 +03:00
|
|
|
]
|
|
|
|
)
|