-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD.bazel
66 lines (60 loc) · 1.77 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
load("@bzlws//rules:bzlws_copy.bzl", "bzlws_copy")
bzlws_copy(
name = "copy_dist_bin",
srcs = [
"@ecsact_cli",
"@ecsact_lsp_server",
],
out = "dist/bin/{FILENAME}",
force = True,
)
bzlws_copy(
name = "copy_dist_images",
srcs = [
"@ecsact_logo//:ecsact-color.png",
"@ecsact_logo//:ecsact-color150.png",
"@ecsact_logo//:ecsact-color44.png",
],
out = "dist/images/{FILENAME}",
force = True,
)
bzlws_copy(
name = "copy_dist_include",
srcs = [
"@ecsact_lang_cpp//:headers",
"@ecsact_runtime//:headers",
"@ecsact_codegen//:headers",
],
out = "dist/include/{FILEPATH}",
force = True,
strip_filepath_prefix = "external/{BAZEL_LABEL_WORKSPACE_NAME}",
)
# keep sorted
_plugins = [
"@ecsact_lang_cpp//cpp_header_codegen:ecsact_cpp_header_codegen",
"@ecsact_lang_cpp//cpp_systems_header_codegen:ecsact_cpp_systems_header_codegen",
"@ecsact_lang_cpp//cpp_systems_source_codegen:ecsact_cpp_systems_source_codegen",
"@ecsact_lang_cpp//systems_header_codegen:ecsact_systems_header_codegen",
"@ecsact_lang_csharp//csharp_codegen:ecsact_csharp_codegen",
"@ecsact_lang_json//json_codegen:ecsact_json_codegen",
]
bzlws_copy(
name = "copy_dist_codegen_plugins",
srcs = select({
"@platforms//os:windows": _plugins,
"@platforms//os:linux": _plugins,
"//conditions:default": _plugins,
}),
out = "dist/share/ecsact/plugins/{BAZEL_LABEL_NAME}.{EXTNAME}",
force = True,
)
bzlws_copy(
name = "copy_dist_recipe_bundles",
srcs = [
"@ecsact_rt_entt",
"@ecsact_rt_reference//async_reference",
"@ecsact_rt_reference//serialize_reference",
],
out = "dist/share/ecsact/recipes/{FILENAME}",
force = True,
)