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

View File

@ -180,11 +180,15 @@ if(LIBRW_PLATFORM_GL3)
endif() endif()
if(NINTENDO_SWITCH) 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 target_link_libraries(librw
PUBLIC PUBLIC
EGL ${SWITCH_EGL_LIBRARY}
glapi ${SWITCH_GLAPI_LIBRARY}
drm_nouveau ${SWITCH_DRM_NOUVEAU_LIBRARY}
) )
endif() endif()
elseif(LIBRW_PLATFORM_D3D9) elseif(LIBRW_PLATFORM_D3D9)