Skip to content

Commit aa625a5

Browse files
zaucyKelwan
authored andcommitted
feat: ecsact codegen plugin for optimization
- Removed metaprogramming to reduce compile times - Ecsact file details are now code generated
1 parent 6342148 commit aa625a5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+5648
-4751
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
test-windows:
2121
runs-on: windows-latest
2222
steps:
23+
- name: Ecsact SDK
24+
uses: ecsact-dev/[email protected]
2325
- uses: actions/cache@v3
2426
with:
2527
path: |
@@ -35,6 +37,8 @@ jobs:
3537
test-linux:
3638
runs-on: ubuntu-latest
3739
steps:
40+
- name: Ecsact SDK
41+
uses: ecsact-dev/[email protected]
3842
- uses: actions/cache@v3
3943
with:
4044
path: |

.vscode/launch.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
{
2-
"version": "0.2.0",
3-
"configurations": [
4-
{
5-
"name": "test //runtime/test:test",
6-
"request": "launch",
7-
"program": "${workspaceFolder}/bazel-bin/runtime/test/test",
8-
"cwd": "${workspaceFolder}",
9-
"args": [
10-
"--gtest_catch_exceptions",
11-
"--gtest_break_on_failure"
12-
],
13-
"type": "cppdbg",
14-
"windows": {
15-
"type": "cppvsdbg",
16-
"program": "${workspaceFolder}/bazel-bin/runtime/test/test.exe"
17-
},
18-
"preLaunchTask": "build //runtime/test:test",
19-
"sourceFileMap": {
20-
"E:/.cache/bazel/output_base/execroot/ecsact_rt_entt": "${workspaceFolder}"
21-
}
22-
}
23-
],
24-
"compounds": []
25-
}
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "test //runtime/test:test",
6+
"request": "launch",
7+
"program": "${workspaceFolder}/bazel-bin/runtime/test/test",
8+
"cwd": "${workspaceFolder}",
9+
"args": [
10+
"--gtest_catch_exceptions",
11+
// "--gtest_break_on_failure",
12+
],
13+
"type": "cppvsdbg",
14+
"windows": {
15+
"type": "cppvsdbg",
16+
"program": "${workspaceFolder}/bazel-bin/runtime/test/test.exe"
17+
},
18+
"preLaunchTask": "build //runtime/test:test",
19+
"sourceFileMap": {
20+
"C:/users/austin/_bazel_austin/ohk2m3f2/execroot/ecsact_rt_entt": "${workspaceFolder}"
21+
}
22+
}
23+
],
24+
"compounds": []
25+
}

MODULE.bazel

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

77
bazel_dep(name = "rules_cc", version = "0.0.9")
88
bazel_dep(name = "bazel_skylib", version = "1.4.2")
9-
bazel_dep(name = "rules_ecsact", version = "0.4.7")
9+
bazel_dep(name = "rules_ecsact", version = "0.4.9")
1010
bazel_dep(name = "ecsact_runtime", version = "0.5.1")
11-
bazel_dep(name = "ecsact_lang_cpp", version = "0.3.0")
11+
bazel_dep(name = "ecsact_lang_cpp", version = "0.3.3")
1212
bazel_dep(name = "boost.mp11", version = "1.83.0.bzl.1")
1313
bazel_dep(name = "entt", version = "3.12.2")
14+
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
1415
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
16+
bazel_dep(name = "ecsact_codegen", version = "0.1.3")
1517

1618
git_override(
1719
module_name = "hedron_compile_commands",
1820
remote = "https://github.com/hedronvision/bazel-compile-commands-extractor.git",
1921
commit = "204aa593e002cbd177d30f11f54cff3559110bb9",
2022
)
23+
24+
llvm = use_extension("@toolchains_llvm//toolchain/extensions:llvm.bzl", "llvm", dev_dependency = True)
25+
llvm.toolchain(llvm_version = "17.0.6")
26+
27+
use_repo(llvm, "llvm_toolchain")
28+
register_toolchains("@llvm_toolchain//:all", dev_dependency = True)

0 commit comments

Comments
 (0)