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: [
|
2021-09-24 02:11:10 +03:00
|
|
|
.package(url: "https://github.com/kylef/PathKit.git", from: "1.0.1"),
|
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"),
|
2020-11-24 03:28:41 +03:00
|
|
|
.package(url: "https://github.com/kylef/Spectre.git", from: "0.9.2"),
|
2017-12-16 23:55:07 +03:00
|
|
|
.package(url: "https://github.com/onevcat/Rainbow.git", from: "3.0.0"),
|
2022-05-10 08:03:39 +03:00
|
|
|
.package(url: "https://github.com/tuist/XcodeProj.git", from: "8.7.0"),
|
2021-09-24 02:11:10 +03:00
|
|
|
.package(url: "https://github.com/jakeheis/SwiftCLI.git", from: "6.0.3"),
|
2020-02-07 02:40:24 +03:00
|
|
|
.package(url: "https://github.com/mxcl/Version", from: "2.0.0"),
|
2021-05-05 01:45:42 +03:00
|
|
|
.package(url: "https://github.com/SwiftDocOrg/GraphViz.git", .exact("0.2.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",
|
2021-05-01 06:39:34 +03:00
|
|
|
"XcodeGenCore",
|
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",
|
2021-05-01 06:39:34 +03:00
|
|
|
"XcodeGenCore",
|
2020-02-07 02:40:24 +03:00
|
|
|
"Version",
|
2019-10-27 15:15:12 +03:00
|
|
|
]),
|
2021-05-01 06:39:34 +03:00
|
|
|
.target(name: "XcodeGenCore", dependencies: [
|
2019-10-27 15:15:12 +03:00
|
|
|
"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",
|
|
|
|
]),
|
2021-05-01 06:39:34 +03:00
|
|
|
.testTarget(name: "XcodeGenCoreTests", dependencies: [
|
|
|
|
"XcodeGenCore",
|
2019-10-27 15:15:12 +03:00
|
|
|
"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
|
|
|
]
|
|
|
|
)
|