Skip to content

Commit de69f01

Browse files
committed
feat: support new assoc api in C++ codegen
1 parent 89cec22 commit de69f01

File tree

7 files changed

+320
-196
lines changed

7 files changed

+320
-196
lines changed

MODULE.bazel

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ module(
66

77
bazel_dep(name = "rules_cc", version = "0.0.9")
88
bazel_dep(name = "bazel_skylib", version = "1.6.1")
9-
bazel_dep(name = "ecsact_runtime", version = "0.6.2")
9+
bazel_dep(name = "ecsact_runtime", version = "0.6.4")
1010
bazel_dep(name = "rules_ecsact", version = "0.5.2")
1111
bazel_dep(name = "ecsact_codegen", version = "0.2.0")
1212

13-
bazel_dep(name = "ecsact_cli", version = "0.3.7", dev_dependency = True)
13+
bazel_dep(name = "ecsact_cli", version = "0.3.9", dev_dependency = True)
1414
bazel_dep(name = "boost.dll", version = "1.83.0.bzl.2", dev_dependency = True)
1515
bazel_dep(name = "boost.process", version = "1.83.0.bzl.2", dev_dependency = True)
1616
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
@@ -29,6 +29,21 @@ git_override(
2929
remote = "https://github.com/zaucy/libarchive.git",
3030
)
3131

32+
local_path_override(
33+
module_name = "ecsact_runtime",
34+
path = "../ecsact_runtime",
35+
)
36+
37+
local_path_override(
38+
module_name = "ecsact_interpret",
39+
path = "../ecsact_interpret",
40+
)
41+
42+
local_path_override(
43+
module_name = "ecsact_cli",
44+
path = "../ecsact_cli",
45+
)
46+
3247
ecsact = use_extension("@rules_ecsact//ecsact:extensions.bzl", "ecsact", dev_dependency = True)
3348
ecsact.toolchain(use_ecsact_cli = True)
3449
use_repo(ecsact, "ecsact_toolchain")

cpp_header_codegen/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("//bazel:copts.bzl", "copts")
21
load("//:codegen_plugin.bzl", "cc_ecsact_codegen_plugin")
2+
load("//bazel:copts.bzl", "copts")
33

44
package(default_visibility = ["//visibility:public"])
55

@@ -8,7 +8,10 @@ cc_ecsact_codegen_plugin(
88
srcs = ["cpp_header_codegen.cc"],
99
copts = copts,
1010
output_extension = "hh",
11-
deps = ["//:support"],
11+
deps = [
12+
"//:cpp_codegen_plugin_util",
13+
"//:support",
14+
],
1215
)
1316

1417
alias(

cpp_systems_header_codegen/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("//bazel:copts.bzl", "copts")
21
load("//:codegen_plugin.bzl", "cc_ecsact_codegen_plugin")
2+
load("//bazel:copts.bzl", "copts")
33

44
package(default_visibility = ["//visibility:public"])
55

@@ -9,7 +9,10 @@ cc_ecsact_codegen_plugin(
99
copts = copts,
1010
no_validate_test = True, # file name is too long on Windows
1111
output_extension = "systems.hh",
12-
deps = ["//:support"],
12+
deps = [
13+
"//:cpp_codegen_plugin_util",
14+
"//:support",
15+
],
1316
)
1417

1518
alias(

0 commit comments

Comments
 (0)