mirror of https://github.com/AxioDL/metaforce.git
dawn: Enable OpenGL on Windows, OpenGL ES on Linux
This commit is contained in:
parent
086b8d21bf
commit
17b3a954c7
|
@ -103,6 +103,12 @@ endif ()
|
|||
#if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
|
||||
# set(DAWN_ENABLE_VULKAN ON CACHE BOOL "Enable compilation of the Vulkan backend" FORCE)
|
||||
#endif()
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL Windows)
|
||||
set(DAWN_ENABLE_DESKTOP_GL ON CACHE BOOL "Enable compilation of the OpenGL backend" FORCE)
|
||||
endif ()
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL Linux)
|
||||
set(DAWN_ENABLE_OPENGLES ON CACHE BOOL "Enable compilation of the OpenGL ES backend" FORCE)
|
||||
endif ()
|
||||
add_subdirectory(../extern/dawn dawn EXCLUDE_FROM_ALL)
|
||||
if (DAWN_ENABLE_VULKAN)
|
||||
target_compile_definitions(dawn_native PRIVATE
|
||||
|
|
Loading…
Reference in New Issue