Don't require wgpu-native with OpenGL api
This commit is contained in:
parent
c7108a0e39
commit
9b9af9e3bc
2 changed files with 9 additions and 1 deletions
|
|
@ -54,7 +54,11 @@ if(NOT DEFINED PSEMEK_GRAPHICS_API)
|
||||||
set(PSEMEK_GRAPHICS_API OPENGL)
|
set(PSEMEK_GRAPHICS_API OPENGL)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_package(wgpu-native REQUIRED)
|
if(PSEMEK_GRAPHICS_API STREQUAL WEBGPU)
|
||||||
|
find_package(wgpu-native REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
message(STATUS "Using graphics API ${PSEMEK_GRAPHICS_API}")
|
||||||
|
|
||||||
add_subdirectory(3rdparty)
|
add_subdirectory(3rdparty)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,10 @@ else()
|
||||||
list(REMOVE_ITEM PSEMEK_LIB_DIRS "ui_legacy")
|
list(REMOVE_ITEM PSEMEK_LIB_DIRS "ui_legacy")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(NOT (PSEMEK_GRAPHICS_API STREQUAL WEBGPU))
|
||||||
|
list(REMOVE_ITEM PSEMEK_LIB_DIRS "wgpu")
|
||||||
|
endif()
|
||||||
|
|
||||||
list(REMOVE_ITEM PSEMEK_LIB_DIRS sdl2 android)
|
list(REMOVE_ITEM PSEMEK_LIB_DIRS sdl2 android)
|
||||||
set(PSEMEK_BACKEND_LIB_DIR)
|
set(PSEMEK_BACKEND_LIB_DIR)
|
||||||
if(PSEMEK_BACKEND STREQUAL "SDL2")
|
if(PSEMEK_BACKEND STREQUAL "SDL2")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue