@@ -19,19 +19,38 @@ filegroup(
19
19
)
20
20
21
21
filegroup(
22
- name = "compiler_files ",
22
+ name = "emcc_common ",
23
23
srcs = [
24
24
"emscripten/emcc.py",
25
+ "emscripten/emscripten.py",
26
+ "emscripten/emscripten-version.txt",
27
+ "emscripten/cache/sysroot_install.stamp",
28
+ "emscripten/src/settings.js",
29
+ "emscripten/src/settings_internal.js",
30
+ ] + glob(
31
+ include = [
32
+ "emscripten/third_party/**",
33
+ "emscripten/tools/**",
34
+ ],
35
+ exclude = [
36
+ "**/__pycache__/**",
37
+ ],
38
+ ),
39
+ )
40
+
41
+ filegroup(
42
+ name = "compiler_files",
43
+ srcs = [
25
44
"bin/clang{bin_extension}",
26
45
"bin/clang++{bin_extension}",
46
+ ":emcc_common",
27
47
":includes",
28
48
],
29
49
)
30
50
31
51
filegroup(
32
52
name = "linker_files",
33
53
srcs = [
34
- "emscripten/emcc.py",
35
54
"bin/clang{bin_extension}",
36
55
"bin/llc{bin_extension}",
37
56
"bin/llvm-ar{bin_extension}",
@@ -40,15 +59,33 @@ filegroup(
40
59
"bin/wasm-emscripten-finalize{bin_extension}",
41
60
"bin/wasm-ld{bin_extension}",
42
61
"bin/wasm-opt{bin_extension}",
43
- ] + glob(["emscripten/node_modules/**"]),
62
+ "bin/wasm-metadce{bin_extension}",
63
+ ":emcc_common",
64
+ ] + glob(
65
+ include = [
66
+ "emscripten/cache/sysroot/lib/**",
67
+ "emscripten/node_modules/**",
68
+ "emscripten/src/**",
69
+ ],
70
+ ),
44
71
)
45
72
46
73
filegroup(
47
74
name = "ar_files",
48
75
srcs = [
49
- "emscripten/emar.py",
50
76
"bin/llvm-ar{bin_extension}",
51
- ],
77
+ "emscripten/emar.py",
78
+ "emscripten/emscripten-version.txt",
79
+ "emscripten/src/settings.js",
80
+ "emscripten/src/settings_internal.js",
81
+ ] + glob(
82
+ include = [
83
+ "emscripten/tools/**",
84
+ ],
85
+ exclude = [
86
+ "**/__pycache__/**",
87
+ ],
88
+ ),
52
89
)
53
90
"""
54
91
0 commit comments