1
1
load ("@bazel_tools//tools/build_defs/repo:http.bzl" , "http_archive" )
2
- load ("@build_bazel_rules_nodejs//:index.bzl" , "npm_install " , "node_repositories " )
2
+ load ("@build_bazel_rules_nodejs//:index.bzl" , "node_repositories " , "npm_install " )
3
3
load (":revisions.bzl" , "EMSCRIPTEN_TAGS" )
4
4
5
5
def _parse_version (v ):
@@ -40,7 +40,7 @@ filegroup(
40
40
"bin/wasm-emscripten-finalize{bin_extension}",
41
41
"bin/wasm-ld{bin_extension}",
42
42
"bin/wasm-opt{bin_extension}",
43
- ],
43
+ ] + glob(["emscripten/node_modules/**"]) ,
44
44
)
45
45
46
46
filegroup(
@@ -83,7 +83,7 @@ def emscripten_deps(emscripten_version = "latest"):
83
83
strip_prefix = "install" ,
84
84
url = emscripten_url .format ("linux" , revision .hash , "" , "tbz2" ),
85
85
sha256 = revision .sha_linux ,
86
- build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = "" ),
86
+ build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = "" ),
87
87
type = "tar.bz2" ,
88
88
)
89
89
@@ -93,7 +93,7 @@ def emscripten_deps(emscripten_version = "latest"):
93
93
strip_prefix = "install" ,
94
94
url = emscripten_url .format ("mac" , revision .hash , "" , "tbz2" ),
95
95
sha256 = revision .sha_mac ,
96
- build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = "" ),
96
+ build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = "" ),
97
97
type = "tar.bz2" ,
98
98
)
99
99
@@ -103,7 +103,7 @@ def emscripten_deps(emscripten_version = "latest"):
103
103
strip_prefix = "install" ,
104
104
url = emscripten_url .format ("mac" , revision .hash , "-arm64" , "tbz2" ),
105
105
sha256 = revision .sha_mac_arm64 ,
106
- build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = "" ),
106
+ build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = "" ),
107
107
type = "tar.bz2" ,
108
108
)
109
109
@@ -113,7 +113,7 @@ def emscripten_deps(emscripten_version = "latest"):
113
113
strip_prefix = "install" ,
114
114
url = emscripten_url .format ("win" , revision .hash , "" , "zip" ),
115
115
sha256 = revision .sha_win ,
116
- build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = ".exe" ),
116
+ build_file_content = BUILD_FILE_CONTENT_TEMPLATE .format (bin_extension = ".exe" ),
117
117
type = "zip" ,
118
118
)
119
119
0 commit comments