mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-04-27 15:45:41 -04:00
CMake: Add WITH_SDL2 option
This allows you to build the Qt frontend with controller support but without building the SDL frontend
This commit is contained in:
parent
6c9e80cf43
commit
1427e9f097
@ -7,6 +7,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
|
|||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
option(BUILD_SDL_FRONTEND "Build the SDL frontend" ON)
|
option(BUILD_SDL_FRONTEND "Build the SDL frontend" ON)
|
||||||
option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
|
option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
|
||||||
|
option(USE_SDL2 "Link with SDL2 for controller support" ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
@ -26,7 +27,7 @@ endif()
|
|||||||
|
|
||||||
# Required libraries.
|
# Required libraries.
|
||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
if(BUILD_SDL_FRONTEND)
|
if(BUILD_SDL_FRONTEND OR USE_SDL2)
|
||||||
find_package(SDL2 REQUIRED)
|
find_package(SDL2 REQUIRED)
|
||||||
endif()
|
endif()
|
||||||
if(BUILD_QT_FRONTEND)
|
if(BUILD_QT_FRONTEND)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user