Bundle wgpu-native into Linux WebGPU amalgamation (#4220)

This commit is contained in:
yuiseki
2026-06-11 20:26:48 +09:00
committed by GitHub
parent 3a7c0a11c2
commit fa8a9c8e32
4 changed files with 71 additions and 10 deletions

View File

@@ -208,6 +208,13 @@ if(MLN_CREATE_AMALGAMATION)
find_static_library(STATIC_LIBS NAMES GenericCodeGen)
endif()
if(MLN_WITH_WEBGPU AND MLN_WEBGPU_IMPL_WGPU)
if(NOT WGPU_STATIC_LIBRARY)
message(FATAL_ERROR "Linux WebGPU amalgamation requires WGPU_STATIC_LIBRARY")
endif()
list(APPEND STATIC_LIBS "${WGPU_STATIC_LIBRARY}")
endif()
add_custom_command(
TARGET mbgl-core
POST_BUILD