mirror of https://github.com/mgba-emu/mgba.git
Add option of not using GL
This commit is contained in:
parent
7e90eb2631
commit
0386d41b40
|
@ -1,4 +1,5 @@
|
||||||
set(SDL_VERSION "2" CACHE STRING "Version of SDL to use (1.2 or 2)")
|
set(SDL_VERSION "2" CACHE STRING "Version of SDL to use (1.2 or 2)")
|
||||||
|
set(BUILD_GL ON CACHE STRING "Build with OpenGL")
|
||||||
|
|
||||||
if (SDL_VERSION EQUAL "2")
|
if (SDL_VERSION EQUAL "2")
|
||||||
include(FindPkgConfig)
|
include(FindPkgConfig)
|
||||||
|
@ -26,7 +27,7 @@ if(BUILD_RASPI)
|
||||||
target_link_libraries(${BINARY_NAME}-rpi ${BINARY_NAME} ${PLATFORM_LIBRARY} ${EGL_LIBRARY})
|
target_link_libraries(${BINARY_NAME}-rpi ${BINARY_NAME} ${PLATFORM_LIBRARY} ${EGL_LIBRARY})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_BBB OR BUILD_RASPI)
|
if(BUILD_BBB OR BUILD_RASPI OR NOT BUILD_GL)
|
||||||
set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/sdl/sw-main.c)
|
set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/sdl/sw-main.c)
|
||||||
else()
|
else()
|
||||||
set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/sdl/gl-main.c)
|
set(MAIN_SRC ${CMAKE_SOURCE_DIR}/src/platform/sdl/gl-main.c)
|
||||||
|
|
Loading…
Reference in New Issue