2020-06-11 01:26:43 +08:00
|
|
|
// swift-tools-version:5.2
|
2018-12-29 22:41:46 +08:00
|
|
|
// 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(
|
2019-02-18 18:54:49 +08:00
|
|
|
name: "Tokamak",
|
2019-04-01 16:44:20 +08:00
|
|
|
platforms: [
|
2020-04-07 22:26:42 +08:00
|
|
|
.macOS(.v10_15),
|
2019-04-01 16:44:20 +08:00
|
|
|
],
|
2018-12-29 05:54:16 +08:00
|
|
|
products: [
|
2018-12-29 22:41:46 +08:00
|
|
|
// 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: "TokamakDOM",
|
|
|
|
targets: ["TokamakDOM"]
|
2018-12-29 05:54:16 +08:00
|
|
|
),
|
2020-06-23 18:31:27 +08:00
|
|
|
.library(
|
|
|
|
name: "TokamakTestRenderer",
|
|
|
|
targets: ["TokamakTestRenderer"]
|
|
|
|
),
|
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"),
|
2020-06-22 05:32:50 +08:00
|
|
|
.package(url: "https://github.com/kateinoigakukun/JavaScriptKit.git", .revision("47f2bb1")),
|
2020-05-04 23:52:15 +08:00
|
|
|
.package(url: "https://github.com/MaxDesiatov/Runtime.git", .branch("wasi-build")),
|
2018-12-29 05:54:16 +08:00
|
|
|
],
|
|
|
|
targets: [
|
2018-12-29 22:41:46 +08:00
|
|
|
// 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(
|
2019-02-18 18:54:49 +08:00
|
|
|
name: "Tokamak",
|
2020-04-12 01:21:04 +08:00
|
|
|
dependencies: ["Runtime"]
|
2018-12-29 05:54:16 +08:00
|
|
|
),
|
2019-03-12 19:37:22 +08:00
|
|
|
.target(
|
|
|
|
name: "TokamakDemo",
|
2020-06-17 07:58:10 +08:00
|
|
|
dependencies: ["JavaScriptKit", "Tokamak", "TokamakDOM"]
|
2019-03-12 19:37:22 +08:00
|
|
|
),
|
2020-04-12 04:58:24 +08:00
|
|
|
.target(
|
|
|
|
name: "TokamakDOM",
|
2020-06-23 18:31:27 +08:00
|
|
|
dependencies: ["JavaScriptKit", "Tokamak"]
|
2020-04-12 04:58:24 +08:00
|
|
|
),
|
2018-12-29 05:54:16 +08:00
|
|
|
.target(
|
2019-02-18 18:54:49 +08:00
|
|
|
name: "TokamakTestRenderer",
|
|
|
|
dependencies: ["Tokamak"]
|
2018-12-29 05:54:16 +08:00
|
|
|
),
|
|
|
|
.testTarget(
|
2019-02-18 18:54:49 +08:00
|
|
|
name: "TokamakTests",
|
2020-04-12 01:21:04 +08:00
|
|
|
dependencies: ["TokamakDemo", "TokamakTestRenderer"]
|
2018-12-29 05:54:16 +08:00
|
|
|
),
|
|
|
|
]
|
2018-12-07 19:21:37 +08:00
|
|
|
)
|