Skip to content

Commit 0defb9e

Browse files
authored
chore(deps): ecsact_cli toolchain + update deps (#59)
1 parent 46e66f0 commit 0defb9e

File tree

2 files changed

+65
-15
lines changed

2 files changed

+65
-15
lines changed

BUILD.bazel

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@rules_cc//cc:defs.bzl", "cc_library")
2+
load("@rules_ecsact//ecsact:toolchain.bzl", "ecsact_toolchain")
23
load("//bazel:copts.bzl", "copts")
34

45
package(default_visibility = ["//visibility:public"])
@@ -13,3 +14,35 @@ cc_library(
1314
hdrs = glob(["ecsact/**/*.hh"]),
1415
copts = copts,
1516
)
17+
18+
#### ECSACT TOOLCHAIN STUFF FOR TESTS BELOW HERE ####
19+
20+
ecsact_toolchain(
21+
name = "ecsact_cli_windows",
22+
target_tool = "@ecsact_cli_windows//file",
23+
)
24+
25+
ecsact_toolchain(
26+
name = "ecsact_cli_linux",
27+
target_tool = "@ecsact_cli_linux//file",
28+
)
29+
30+
toolchain(
31+
name = "ecsact_windows_toolchain",
32+
exec_compatible_with = [
33+
"@platforms//os:windows",
34+
"@platforms//cpu:x86_64",
35+
],
36+
toolchain = ":ecsact_cli_windows",
37+
toolchain_type = "@rules_ecsact//ecsact:toolchain_type",
38+
)
39+
40+
toolchain(
41+
name = "ecsact_linux_toolchain",
42+
exec_compatible_with = [
43+
"@platforms//os:linux",
44+
"@platforms//cpu:x86_64",
45+
],
46+
toolchain = ":ecsact_cli_linux",
47+
toolchain_type = "@rules_ecsact//ecsact:toolchain_type",
48+
)

WORKSPACE.bazel

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workspace(name = "ecsact_rt_entt")
22

3-
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
3+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive", "http_file")
44

55
http_archive(
66
name = "com_github_skypjack_entt",
@@ -10,31 +10,48 @@ http_archive(
1010
)
1111

1212
http_archive(
13-
name = "rules_ecsact",
14-
sha256 = "c170cebbee0af5bf9a26e9d038aa32e3c164aa8cc7f2d4f3996e19bf3510dd0f",
15-
strip_prefix = "rules_ecsact-0.2.3",
16-
url = "https://github.com/ecsact-dev/rules_ecsact/archive/refs/tags/0.2.3.tar.gz",
13+
name = "ecsact_lang_cpp",
14+
sha256 = "7ecf1d23fba53edfa5abf75498028b03068970a044eab3c703bd74b1edb0b2d5",
15+
strip_prefix = "ecsact_lang_cpp-0.2.0",
16+
urls = ["https://github.com/ecsact-dev/ecsact_lang_cpp/archive/refs/tags/0.2.0.tar.gz"],
1717
)
1818

1919
http_archive(
20-
name = "ecsact_lang_cpp",
21-
sha256 = "2fa208f81a8422f8bce9ed7200fa726622b77af7c8e08fdae4fa723d2e8fc163",
22-
strip_prefix = "ecsact_lang_cpp-3b70f5d276a4b29c709c687295d36ab804042e1a",
23-
url = "https://github.com/ecsact-dev/ecsact_lang_cpp/archive/3b70f5d276a4b29c709c687295d36ab804042e1a.zip",
20+
name = "ecsact_runtime",
21+
sha256 = "dfc71e519d24b943c855d288d19f539fc9b9c65636c0376c7febb865233161b6",
22+
strip_prefix = "ecsact_runtime-0.2.0",
23+
urls = ["https://github.com/ecsact-dev/ecsact_runtime/archive/refs/tags/0.2.0.tar.gz"],
24+
)
25+
26+
http_file(
27+
name = "ecsact_cli_windows",
28+
url = "https://github.com/ecsact-dev/ecsact_cli/releases/download/0.1.0/ecsact_0.1.0_windows_x64.exe",
29+
executable = True,
30+
downloaded_file_path = "ecsact.exe",
31+
)
32+
33+
http_file(
34+
name = "ecsact_cli_linux",
35+
url = "https://github.com/ecsact-dev/ecsact_cli/releases/download/0.1.0/ecsact_0.1.0_linux_x64",
36+
executable = True,
37+
downloaded_file_path = "ecsact",
2438
)
2539

2640
http_archive(
27-
name = "ecsact_runtime",
28-
sha256 = "ba5b8f1649fc86b9c803ab852d0612e2d100a64e2a06a13b612e111bf8d18735",
29-
strip_prefix = "ecsact_runtime-c6cdc81000bbee028a8e7a2bc95fc35711db1b75",
30-
url = "https://github.com/ecsact-dev/ecsact_runtime/archive/c6cdc81000bbee028a8e7a2bc95fc35711db1b75.zip",
41+
name = "rules_ecsact",
42+
sha256 = "3db6d498a681e036dabdcc1bb7e5ee254acadae4ab2ecf19d253f824db88d5e4",
43+
strip_prefix = "rules_ecsact-0.3.0",
44+
urls = ["https://github.com/ecsact-dev/rules_ecsact/archive/refs/tags/0.3.0.tar.gz"],
3145
)
3246

33-
load("@rules_ecsact//ecsact:repositories.bzl", "ecsact_register_toolchains", "rules_ecsact_dependencies")
47+
load("@rules_ecsact//ecsact:repositories.bzl", "rules_ecsact_dependencies")
3448

3549
rules_ecsact_dependencies()
3650

37-
ecsact_register_toolchains()
51+
register_toolchains(
52+
"//:ecsact_windows_toolchain",
53+
"//:ecsact_linux_toolchain",
54+
)
3855

3956
http_archive(
4057
name = "com_google_googletest",

0 commit comments

Comments
 (0)