Compare commits

..

2 Commits

Author SHA1 Message Date
Sebastian Dawid
e70f7f39bd
Merge 0e80ca651b into 936307558e 2025-11-13 09:41:08 +00:00
Sebastian Emanuel Dawid
0e80ca651b Create universal WebGPU library during project configuration on macOS 2025-11-13 10:40:00 +01:00

View File

@ -98,20 +98,8 @@ else () # macOS
URL ${WEBGPU_URL}
)
FetchContent_MakeAvailable(webgpu_other_bins)
add_library(webgpu_other STATIC IMPORTED GLOBAL)
set(WEBGPU_RUNTIME_LIB_OTHER "${webgpu_other_bins_SOURCE_DIR}/lib/${WEBGPU_LIBNAME}")
set_target_properties(webgpu_other PROPERTIES
IMPORTED_LOCATION "${WEBGPU_RUNTIME_LIB_OTHER}"
)
target_include_directories(webgpu_other INTERFACE
"${webgpu_other_bins_SOURCE_DIR}/include"
"${webgpu_other_bins_SOURCE_DIR}/include/webgpu"
)
target_link_libraries(webgpu INTERFACE
webgpu_other
)
execute_process(COMMAND lipo -create ${WEBGPU_RUNTIME_LIB} ${WEBGPU_RUNTIME_LIB_OTHER} -output ${WEBGPU_RUNTIME_LIB})
endif ()
add_executable(boing WIN32 MACOSX_BUNDLE boing.c ${ICON} ${GLAD_GL})