Skip to content

Commit

Permalink
Following open-sourcing webgpu with open-sourcing one of its dependen…
Browse files Browse the repository at this point in the history
…cies `third_party/emscripten`

PiperOrigin-RevId: 675647290
  • Loading branch information
MediaPipe Team authored and copybara-github committed Sep 17, 2024
1 parent c0fa667 commit ecddc6a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions mediapipe/framework/formats/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ cc_library(
"//conditions:default": [],
# Option for vendor binaries to avoid linking libandroid.so.
"//mediapipe/framework:android_no_jni": [],
"//mediapipe/gpu/webgpu:use_webgpu_emscripten": ["-sUSE_WEBGPU=1"],
}),
deps = [
"//mediapipe/framework:memory_manager",
Expand Down
8 changes: 8 additions & 0 deletions mediapipe/gpu/webgpu/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ selects.config_setting_group(
],
)

selects.config_setting_group(
name = "use_webgpu_emscripten",
match_all = [
":use_webgpu_define",
"//mediapipe:emscripten",
],
)

exports_files([
"tensor_webgpu_texture_view.cc",
])
Expand Down

0 comments on commit ecddc6a

Please sign in to comment.