Support for WebGPU backend in iOS SDK, core (#4103)

This commit is contained in:
Birk Skyum
2026-02-28 23:25:19 +01:00
committed by GitHub
parent 57a14cf110
commit 10453c1ec4
23 changed files with 1366 additions and 72 deletions

View File

@@ -1206,7 +1206,15 @@ if(TARGET mbgl-vendor-wgpu)
list(APPEND EXPORT_TARGETS mbgl-vendor-wgpu)
endif()
export(TARGETS ${EXPORT_TARGETS} FILE MapboxCoreTargets.cmake)
# The Xcode generator with Dawn component targets (no monolithic library) breaks export()
# because dawn_native/dawn_proc aren't in an export set. Skip export in that case.
set(_can_export TRUE)
if(TARGET mbgl-vendor-dawn AND NOT TARGET dawn::webgpu_dawn)
set(_can_export FALSE)
endif()
if(_can_export)
export(TARGETS ${EXPORT_TARGETS} FILE MapboxCoreTargets.cmake)
endif()
if(MLN_WITH_VULKAN)
include(${PROJECT_SOURCE_DIR}/vendor/vulkan.cmake)