chore(build): exclude webgpu_native for emscripten build

- Add platform check to exclude webgpu_native in meson.build
- Avoid requiring -Dbindings=wasm_beta for Emscripten builds
This commit is contained in:
Abdelrahman Ashraf 2025-01-21 13:47:12 +07:00 committed by Hermet Park
parent 3a3041a276
commit 53487421b5

View file

@ -21,7 +21,7 @@ source_file = [
] ]
wgpu_dep = [] wgpu_dep = []
if not get_option('bindings').contains('wasm_beta') if host_machine.system() != 'emscripten'
wgpu_dep = dependency('wgpu_native') wgpu_dep = dependency('wgpu_native')
endif endif