thorvg/src/renderer/wg_engine/meson.build
Jinny You dca095b3c1 wasm/infra: Add build scripts for WebGPU
New build script for WASM with WebGPU.

Run `wasm_webgpu_build.sh` to have WebGPU WASM binary
2024-09-30 16:44:21 +09:00

33 lines
790 B
Meson
Executable file

source_file = [
'tvgWgBindGroups.h',
'tvgWgCommon.h',
'tvgWgCompositor.h',
'tvgWgGeometry.h',
'tvgWgPipelines.h',
'tvgWgRenderData.h',
'tvgWgRenderer.h',
'tvgWgRenderTarget.h',
'tvgWgShaderSrc.h',
'tvgWgShaderTypes.h',
'tvgWgBindGroups.cpp',
'tvgWgCommon.cpp',
'tvgWgCompositor.cpp',
'tvgWgGeometry.cpp',
'tvgWgPipelines.cpp',
'tvgWgRenderData.cpp',
'tvgWgRenderer.cpp',
'tvgWgRenderTarget.cpp',
'tvgWgShaderSrc.cpp',
'tvgWgShaderTypes.cpp'
]
wgpu_dep = []
if not get_option('bindings').contains('wasm_beta')
wgpu_dep = dependency('wgpu_native')
endif
engine_dep += [declare_dependency(
dependencies : wgpu_dep,
include_directories : include_directories('.'),
sources : source_file
)]