Skip to content

Commit 3eecd73

Browse files
authored
C++ meta codegen (#4)
1 parent 283ceaf commit 3eecd73

File tree

5 files changed

+29
-20
lines changed

5 files changed

+29
-20
lines changed

.vscode/launch.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,26 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"name": "run //cli:ecsact codegen",
5+
"name": "run //cli:ecsact codegen (all plugins)",
66
"request": "launch",
77
"program": "${workspaceFolder}/bazel-bin/cli/ecsact",
88
"cwd": "${workspaceFolder}",
99
"args": [
1010
"codegen",
1111
"${workspaceFolder}/examples/example.ecsact",
1212
"${workspaceFolder}/examples/extras.ecsact",
13-
// TODO(zaucy): Removed hard coded path
14-
"--plugin=${workspaceFolder}/../ecsact_lang_cpp/bazel-bin/cpp_header_codegen/ecsact_cpp_header_codegen",
15-
"--plugin=${workspaceFolder}/../ecsact_lang_cpp/bazel-bin/systems_header_codegen/ecsact_systems_header_codegen",
16-
"--plugin=${workspaceFolder}/../ecsact_lang_cpp/bazel-bin/cpp_systems_header_codegen/ecsact_cpp_systems_header_codegen",
17-
"--plugin=${workspaceFolder}/../ecsact_lang_csharp/bazel-bin/csharp_codegen/ecsact_csharp_codegen"
13+
"--plugin=${workspaceFolder}/bazel-bin/external/ecsact_lang_cpp/cpp_header_codegen/ecsact_cpp_header_codegen",
14+
"--plugin=${workspaceFolder}/bazel-bin/external/ecsact_lang_cpp/systems_header_codegen/ecsact_systems_header_codegen",
15+
"--plugin=${workspaceFolder}/bazel-bin/external/ecsact_lang_cpp/cpp_systems_header_codegen/ecsact_cpp_systems_header_codegen",
16+
"--plugin=${workspaceFolder}/bazel-bin/external/ecsact_lang_cpp/cpp_meta_header_codegen/ecsact_cpp_meta_header_codegen",
17+
"--plugin=${workspaceFolder}/bazel-bin/external/ecsact_lang_csharp/csharp_codegen/ecsact_csharp_codegen"
1818
],
1919
"type": "lldb",
2020
"windows": {
2121
"type": "cppvsdbg",
2222
"program": "${workspaceFolder}/bazel-bin/cli/ecsact.exe"
2323
},
24-
// "preLaunchTask": "build //cli:ecsact"
24+
"preLaunchTask": "build //..."
2525
}
2626
],
2727
"compounds": []

.vscode/tasks.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@
1212
"problemMatcher": []
1313
},
1414
{
15-
"label": "build //cli:ecsact",
15+
"label": "build //...",
1616
"command": "bazel",
1717
"type": "shell",
1818
"args": [
1919
"build",
20-
"//cli:ecsact"
20+
"//..."
2121
],
2222
"group": "build"
2323
}

BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ bzlws_copy(
2323
name = "copy_dist_codegen_plugins",
2424
srcs = [
2525
"@ecsact_lang_cpp//cpp_header_codegen",
26+
"@ecsact_lang_cpp//cpp_meta_header_codegen",
2627
"@ecsact_lang_cpp//cpp_systems_header_codegen",
2728
"@ecsact_lang_cpp//systems_header_codegen",
2829
"@ecsact_lang_csharp//csharp_codegen",

WORKSPACE.bazel

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,29 @@ boost_http_archives()
2323
http_archive(
2424
name = "ecsact_parse",
2525
sha256 = "",
26-
strip_prefix = "ecsact_parse-41e73763ecf19b675efb9a23f9b3fe8cac10d7b4",
27-
url = "https://github.com/ecsact-dev/ecsact_parse/archive/41e73763ecf19b675efb9a23f9b3fe8cac10d7b4.zip",
26+
strip_prefix = "ecsact_parse-1540e46da03124ea0422ae2bb9a470a2717d4d22",
27+
url = "https://github.com/ecsact-dev/ecsact_parse/archive/1540e46da03124ea0422ae2bb9a470a2717d4d22.zip",
2828
)
2929

3030
http_archive(
3131
name = "ecsact_runtime",
32-
sha256 = "edf15d37e509163d0d1d8edad71536d125674f1757dacb338e7a665961788262",
33-
strip_prefix = "ecsact_runtime-6c5afb2032b9ec343bd17e1da4d658d1a5c3429b",
34-
url = "https://github.com/ecsact-dev/ecsact_runtime/archive/6c5afb2032b9ec343bd17e1da4d658d1a5c3429b.zip",
32+
sha256 = "b2544c9a0cea708d439bf79e3d9319382967d44a8c57f60ddab214599aaba116",
33+
strip_prefix = "ecsact_runtime-376603487a3db757811e03e7f44958a74dc337e3",
34+
url = "https://github.com/ecsact-dev/ecsact_runtime/archive/376603487a3db757811e03e7f44958a74dc337e3.zip",
3535
)
3636

3737
http_archive(
3838
name = "ecsact_parse_runtime_interop",
39-
sha256 = "d87bdae35c2d3d3d0588835adcb9137a9de123feebc95fad903b3277903ffa60",
40-
strip_prefix = "ecsact_parse_runtime_interop-f3ff60a7d13bacd139b01073fb7feb68496860dc",
41-
url = "https://github.com/ecsact-dev/ecsact_parse_runtime_interop/archive/f3ff60a7d13bacd139b01073fb7feb68496860dc.zip",
39+
sha256 = "9ed8c805a02ecda6de2c0314cb473c78526b3d9dc5f89f210414630e1a50e4b3",
40+
strip_prefix = "ecsact_parse_runtime_interop-628a33710e862f6399795cab1f1ca459fbe19cc6",
41+
url = "https://github.com/ecsact-dev/ecsact_parse_runtime_interop/archive/628a33710e862f6399795cab1f1ca459fbe19cc6.zip",
4242
)
4343

4444
http_archive(
4545
name = "ecsact_lang_cpp",
46-
sha256 = "8a430ca8c92937403c0f879eca2a29da97662abd03901d11d8b419d97fa029b8",
47-
strip_prefix = "ecsact_lang_cpp-bb88f875b3300f795ce72feab1b30109af9bbc64",
48-
url = "https://github.com/ecsact-dev/ecsact_lang_cpp/archive/bb88f875b3300f795ce72feab1b30109af9bbc64.zip",
46+
sha256 = "99f4cde8165f8d1800a5352a992bffd5f558dbeb8b6b1f42a70465224709a1eb",
47+
strip_prefix = "ecsact_lang_cpp-75ad578a59b924607cac9b4e4a0ee78577756e05",
48+
url = "https://github.com/ecsact-dev/ecsact_lang_cpp/archive/75ad578a59b924607cac9b4e4a0ee78577756e05.zip",
4949
)
5050

5151
http_archive(

renovate.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base"
5+
],
6+
"automerge": true,
7+
"platformAutomerge": true
8+
}

0 commit comments

Comments
 (0)