Tokamak/Package.swift

65 lines
1.7 KiB
Swift
Raw Normal View History

// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to
// build this package.
2018-12-07 19:21:37 +08:00
import PackageDescription
let package = Package(
name: "Tokamak",
platforms: [
.macOS(.v10_15),
],
2018-12-29 05:54:16 +08:00
products: [
// Products define the executables and libraries produced by a package,
// and make them visible to other packages.
2020-06-17 07:58:10 +08:00
.executable(
name: "TokamakDemo",
targets: ["TokamakDemo"]
),
2018-12-29 05:54:16 +08:00
.library(
2020-06-23 06:01:11 +08:00
name: "TokamakHTML",
targets: ["TokamakHTML"]
2018-12-29 05:54:16 +08:00
),
.library(
2020-06-23 06:01:11 +08:00
name: "TokamakDOM",
targets: ["TokamakDOM"]
2018-12-29 05:54:16 +08:00
),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/kateinoigakukun/JavaScriptKit.git", .revision("47f2bb1")),
.package(url: "https://github.com/MaxDesiatov/Runtime.git", .branch("wasi-build")),
2018-12-29 05:54:16 +08:00
],
targets: [
// Targets are the basic building blocks of a package. A target can define
// a module or a test suite.
// Targets can depend on other targets in this package, and on products
// in packages which this package depends on.
2018-12-29 05:54:16 +08:00
.target(
name: "Tokamak",
dependencies: ["Runtime"]
2018-12-29 05:54:16 +08:00
),
.target(
name: "TokamakDemo",
2020-06-17 07:58:10 +08:00
dependencies: ["JavaScriptKit", "Tokamak", "TokamakDOM"]
),
.target(
name: "TokamakDOM",
2020-06-23 06:01:11 +08:00
dependencies: ["JavaScriptKit", "Tokamak", "TokamakHTML"]
),
.target(
name: "TokamakHTML",
dependencies: ["Tokamak"]
),
2018-12-29 05:54:16 +08:00
.target(
name: "TokamakTestRenderer",
dependencies: ["Tokamak"]
2018-12-29 05:54:16 +08:00
),
.testTarget(
name: "TokamakTests",
dependencies: ["TokamakDemo", "TokamakTestRenderer"]
2018-12-29 05:54:16 +08:00
),
]
2018-12-07 19:21:37 +08:00
)