Add find_library checks for Switch libraries

Makes sure that required Switch libraries are present before proceeding
This commit is contained in:
Adrian Graber 2021-06-17 15:57:52 +02:00
parent 06a59173bc
commit 03df7307bb
1 changed files with 7 additions and 3 deletions

View File

@ -180,11 +180,15 @@ if(LIBRW_PLATFORM_GL3)
endif()
if(NINTENDO_SWITCH)
find_library(SWITCH_EGL_LIBRARY EGL)
find_library(SWITCH_GLAPI_LIBRARY glapi)
find_library(SWITCH_DRM_NOUVEAU_LIBRARY drm_nouveau)
target_link_libraries(librw
PUBLIC
EGL
glapi
drm_nouveau
${SWITCH_EGL_LIBRARY}
${SWITCH_GLAPI_LIBRARY}
${SWITCH_DRM_NOUVEAU_LIBRARY}
)
endif()
elseif(LIBRW_PLATFORM_D3D9)