Skip to content

Commit 9af9947

Browse files
authored
feat: sdk 0.9.0 release prep (#332)
1 parent 76eb8b1 commit 9af9947

File tree

11 files changed

+148
-67
lines changed

11 files changed

+148
-67
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ common --registry=https://raw.githubusercontent.com/ecsact-dev/bazel_registry/ma
44
common --registry=https://raw.githubusercontent.com/zaucy/bazel-central-registry/add-curl-config2 # temporary
55
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
66
common --registry=https://bcr.bazel.build
7+
common --@docopt.cpp//:use_boost_regex
78
build --enable_platform_specific_config
89
build --incompatible_enable_cc_toolchain_resolution
910
build --incompatible_strict_action_env

.editorconfig

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
root = true
2-
3-
[*]
4-
end_of_line = lf
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
6+
[release-notes-template]
7+
indent_style = space
8+
indent_size = 4

BUILD.bazel

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ bzlws_copy(
55
srcs = [
66
"@ecsact_cli",
77
"@ecsact_lsp_server",
8-
],
8+
] + select({
9+
"@platforms//os:windows": [
10+
"@ecsact_unreal_codegen_win64//file",
11+
],
12+
"@platforms//os:linux": [
13+
"@ecsact_unreal_codegen_linux//file",
14+
],
15+
}),
916
out = "dist/bin/{FILENAME}",
1017
force = True,
1118
)
@@ -24,9 +31,9 @@ bzlws_copy(
2431
bzlws_copy(
2532
name = "copy_dist_include",
2633
srcs = [
34+
"@ecsact_codegen//:headers",
2735
"@ecsact_lang_cpp//:headers",
2836
"@ecsact_runtime//:headers",
29-
"@ecsact_codegen//:headers",
3037
],
3138
out = "dist/include/{FILEPATH}",
3239
force = True,
@@ -60,6 +67,7 @@ bzlws_copy(
6067
"@ecsact_rt_entt",
6168
"@ecsact_rt_reference//async_reference",
6269
"@ecsact_rt_reference//serialize_reference",
70+
"@ecsact_si_wasmer",
6371
],
6472
out = "dist/share/ecsact/recipes/{FILENAME}",
6573
force = True,

CheckDist.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ echo
1515
[ ! -d "dist/include/ecsact" ] && echo "Missing ecsact include directory" && exit 1
1616
[ ! -f "dist/bin/ecsact" ] && echo "Missing ecsact CLI" && exit 1
1717
[ ! -f "dist/bin/ecsact_lsp_server" ] && echo "Missing ecsact lsp CLI" && exit 1
18+
[ ! -f "dist/bin/EcsactUnrealCodegen" ] && echo "Missing EcsatUnrealCodegen tool" && exit 1
1819

1920
exit 0

CreateMsix.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ try
3838

3939
$ExecutablesToSign = @(
4040
'.\dist\bin\ecsact.exe',
41-
'.\dist\bin\ecsact_lsp_server.exe'
41+
'.\dist\bin\ecsact_lsp_server.exe',
42+
'.\dist\bin\EcsactUnrealCodegen.exe'
4243
)
4344

4445
foreach($Executable in $ExecutablesToSign)

MODULE.bazel

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,43 @@
11
module(name = "ecsact_sdk")
22

3-
bazel_dep(name = "rules_cc", version = "0.0.9")
3+
bazel_dep(name = "rules_cc", version = "0.0.17")
44
bazel_dep(name = "platforms", version = "0.0.10")
5-
bazel_dep(name = "rules_pkg", version = "0.10.1")
5+
bazel_dep(name = "rules_pkg", version = "1.0.1")
66
bazel_dep(name = "bazel_skylib", version = "1.7.1")
7-
bazel_dep(name = "ecsact_si_wasm", version = "0.1.2")
8-
bazel_dep(name = "rules_ecsact", version = "0.5.5")
9-
bazel_dep(name = "ecsact_rt_entt", version = "0.3.7")
10-
bazel_dep(name = "ecsact_rt_reference", version = "0.1.1")
11-
bazel_dep(name = "ecsact_codegen", version = "0.4.1")
12-
bazel_dep(name = "ecsact_parse", version = "0.5.1")
13-
bazel_dep(name = "ecsact_runtime", version = "0.6.7")
14-
bazel_dep(name = "ecsact_interpret", version = "0.6.4")
15-
bazel_dep(name = "ecsact_lang_cpp", version = "0.4.6")
16-
bazel_dep(name = "ecsact_cli", version = "0.3.16")
17-
bazel_dep(name = "ecsact_lsp_server", version = "0.2.1")
18-
bazel_dep(name = "ecsact_lang_json", version = "0.1.5")
19-
bazel_dep(name = "ecsact_lang_csharp", version = "0.1.5")
7+
8+
# NOTE: this si the first ecsact dependency and if you see a bazel 'compatibility' error it may _NOT_ be from this one and could be from many others.
9+
# SEE: https://github.com/bazelbuild/bazel/issues/22972
10+
bazel_dep(name = "ecsact_si_wasmer", version = "0.2.0")
11+
bazel_dep(name = "rules_ecsact", version = "0.5.10")
12+
bazel_dep(name = "ecsact_rt_entt", version = "0.3.19")
13+
bazel_dep(name = "ecsact_rt_reference", version = "0.2.0")
14+
bazel_dep(name = "ecsact_codegen", version = "0.4.4")
15+
bazel_dep(name = "ecsact_parse", version = "0.5.5")
16+
bazel_dep(name = "ecsact_runtime", version = "0.8.2")
17+
bazel_dep(name = "ecsact_interpret", version = "0.6.7")
18+
bazel_dep(name = "ecsact_lang_cpp", version = "0.4.11")
19+
bazel_dep(name = "ecsact_cli", version = "0.3.26")
20+
bazel_dep(name = "ecsact_lsp_server", version = "0.2.3")
21+
bazel_dep(name = "ecsact_lang_json", version = "0.1.7")
22+
bazel_dep(name = "ecsact_lang_csharp", version = "0.1.7")
2023
bazel_dep(name = "yaml-cpp", version = "0.8.0")
2124
bazel_dep(name = "boost.dll", version = "1.83.0.bzl.2")
2225
bazel_dep(name = "boost.process", version = "1.83.0.bzl.2")
2326
bazel_dep(name = "bzlws", version = "0.2.0")
2427
bazel_dep(name = "ecsact_logo", version = "0.1.11")
2528

26-
bazel_dep(name = "toolchains_llvm", version = "1.0.0", dev_dependency = True)
29+
prebuilt_tools = use_extension("//:prebuilt-tools.bzl", "prebuilt_tools")
30+
use_repo(
31+
prebuilt_tools,
32+
"ecsact_unreal_codegen_linux",
33+
"ecsact_unreal_codegen_win64",
34+
)
35+
36+
bazel_dep(name = "toolchains_llvm", version = "1.2.0", dev_dependency = True)
2737
bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
38+
39+
bazel_dep(name = "docopt.cpp", version = "0.6.2")
40+
2841
git_override(
2942
module_name = "hedron_compile_commands",
3043
commit = "204aa593e002cbd177d30f11f54cff3559110bb9",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Here are some core repositories that are most interesting if you're considering
2424
* https://github.com/ecsact-dev/ecsact_interpret
2525
* https://github.com/ecsact-dev/ecsact_cli
2626
* https://github.com/ecsact-dev/ecsact_rt_entt
27-
* https://github.com/ecsact-dev/ecsact_si_wasm
27+
* https://github.com/ecsact-dev/ecsact_si_wasmer

dist/AppxManifest.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@
3636
</Extensions>
3737
</Application>
3838

39+
<Application Id="EcsactSdk.EcsactUnrealCodegen" Executable="bin/EcsactUnrealCodegen.exe" EntryPoint="Windows.FullTrustApplication">
40+
<uap3:VisualElements DisplayName="Ecsact Unreal Codegen" Description="Tool for executing ecsact codegen on Unreal projects" BackgroundColor="transparent" Square44x44Logo="images/ecsact-color44.png" Square150x150Logo="images/ecsact-color150.png" AppListEntry="none" VisualGroup="Ecsact" />
41+
<Extensions>
42+
<uap3:Extension Category="windows.appExecutionAlias">
43+
<uap3:AppExecutionAlias>
44+
<uap8:ExecutionAlias Alias="EcsactUnrealCodegen.exe" />
45+
</uap3:AppExecutionAlias>
46+
</uap3:Extension>
47+
</Extensions>
48+
</Application>
49+
3950
</Applications>
4051
<Capabilities>
4152
<rescap:Capability Name="runFullTrust" />

prebuilt-tools.bzl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file")
2+
3+
ECSACT_UNREAL_VERSION = "0.2.2"
4+
5+
def _prebuilt_tools(mctx):
6+
http_file(
7+
name = "ecsact_unreal_codegen_win64",
8+
downloaded_file_path = "EcsactUnrealCodegen.exe",
9+
executable = True,
10+
url = "https://github.com/ecsact-dev/ecsact_unreal/releases/download/{}/EcsactUnrealCodegen-Win64.exe".format(ECSACT_UNREAL_VERSION),
11+
integrity = "sha256-ynFQTRdnN4k7s3t2Z3dJ2fnxoQ8hV/P5y2cvgRMvxSg=",
12+
)
13+
http_file(
14+
name = "ecsact_unreal_codegen_linux",
15+
downloaded_file_path = "EcsactUnrealCodegen",
16+
executable = True,
17+
url = "https://github.com/ecsact-dev/ecsact_unreal/releases/download/{}/EcsactUnrealCodegen-Linux".format(ECSACT_UNREAL_VERSION),
18+
integrity = "sha256-nwcXevEQn1RJrm/7/Nq+HtR3nBLMbhlovfPSgXR923A=",
19+
)
20+
21+
prebuilt_tools = module_extension(_prebuilt_tools)

release-notes-template

Lines changed: 41 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,41 @@
1-
{% if version.tag -%}
2-
## [{{ version.tag }}]({{repository_url}}/releases/tag/{{ version.tag }})
3-
{% else -%}
4-
{% set from = commits | last -%}
5-
{% set to = version.id-%}
6-
{% set from_shorthand = from.id | truncate(length=7, end="") -%}
7-
{% set to_shorthand = to | truncate(length=7, end="") -%}
8-
## Unreleased ({{ from_shorthand ~ ".." ~ to_shorthand }})
9-
{% endif -%}
10-
11-
{% for type, typed_commits in commits | sort(attribute="type")| group_by(attribute="type")-%}
12-
#### {{ type | upper_first }}
13-
{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") -%}
14-
15-
{% for commit in scoped_commits | sort(attribute="scope") -%}
16-
{% set shorthand = commit.id | truncate(length=7, end="") -%}
17-
- **({{ scope }})** {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }}))
18-
{{ commit.body }}
19-
{% endfor -%}
20-
21-
{% endfor -%}
22-
23-
{%- for commit in typed_commits | unscoped -%}
24-
{% if commit.author -%}
25-
{% set author = commit.author -%}
26-
{% else -%}
27-
{% set author = commit.signature -%}
28-
{% endif -%}
29-
30-
{% set shorthand = commit.id | truncate(length=7, end="") -%}
31-
- {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }}))
32-
{{ commit.body }}
33-
{% endfor -%}
34-
35-
{% endfor -%}
1+
{% if version.tag -%}
2+
## [{{ version.tag }}]({{repository_url}}/releases/tag/{{ version.tag }})
3+
{% else -%}
4+
{% set from = commits | last -%}
5+
{% set to = version.id-%}
6+
{% set from_shorthand = from.id | truncate(length=7, end="") -%}
7+
{% set to_shorthand = to | truncate(length=7, end="") -%}
8+
## Unreleased ({{ from_shorthand ~ ".." ~ to_shorthand }})
9+
{% endif -%}
10+
11+
{% for type, typed_commits in commits | sort(attribute="type") | group_by(attribute="type") -%}
12+
{% if type != "Miscellaneous Chores" -%}
13+
#### {{ type | upper_first }}
14+
{% endif -%}
15+
{% for scope, scoped_commits in typed_commits | group_by(attribute="scope") -%}
16+
17+
{% for commit in scoped_commits | sort(attribute="scope") -%}
18+
{% if commit.type != "Miscellaneous Chores" -%}
19+
{% set shorthand = commit.id | truncate(length=7, end="") -%}
20+
- **({{ scope }})** {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }}))
21+
{{ commit.body }}
22+
{% endif -%}
23+
{% endfor -%}
24+
25+
{% endfor -%}
26+
27+
{%- for commit in typed_commits | unscoped -%}
28+
{% if commit.type != "Miscellaneous Chores" -%}
29+
{% if commit.author -%}
30+
{% set author = commit.author -%}
31+
{% else -%}
32+
{% set author = commit.signature -%}
33+
{% endif -%}
34+
35+
{% set shorthand = commit.id | truncate(length=7, end="") -%}
36+
- {{ commit.summary }} - ([{{ shorthand }}]({{ repository_url }}/commit/{{ commit.id }}))
37+
{{ commit.body }}
38+
{% endif -%}
39+
{% endfor -%}
40+
41+
{% endfor -%}

0 commit comments

Comments
 (0)