mirror of https://github.com/encounter/SDL.git
Video: do not use hardcoded VIVANTE and VDK libraries
This commit is contained in:
parent
f5a980448e
commit
57df1dfce6
|
@ -792,7 +792,9 @@ macro(CheckVivante)
|
||||||
set(SDL_VIDEO_DRIVER_VIVANTE 1)
|
set(SDL_VIDEO_DRIVER_VIVANTE 1)
|
||||||
if(HAVE_VIVANTE_VDK)
|
if(HAVE_VIVANTE_VDK)
|
||||||
set(SDL_VIDEO_DRIVER_VIVANTE_VDK 1)
|
set(SDL_VIDEO_DRIVER_VIVANTE_VDK 1)
|
||||||
list(APPEND EXTRA_LIBS VDK VIVANTE)
|
find_library(VIVANTE_LIBRARY REQUIRED NAMES VIVANTE vivante drm_vivante)
|
||||||
|
find_library(VIVANTE_VDK_LIBRARY VDK REQUIRED)
|
||||||
|
list(APPEND EXTRA_LIBS ${VIVANTE_LIBRARY} ${VIVANTE_VDK_LIBRARY})
|
||||||
else()
|
else()
|
||||||
set(SDL_CFLAGS "${SDL_CFLAGS} -DLINUX -DEGL_API_FB")
|
set(SDL_CFLAGS "${SDL_CFLAGS} -DLINUX -DEGL_API_FB")
|
||||||
list(APPEND EXTRA_LIBS EGL)
|
list(APPEND EXTRA_LIBS EGL)
|
||||||
|
|
Loading…
Reference in New Issue