mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-13 13:35:46 -04:00
CMake: Remove unsupported options
This commit is contained in:
@ -15,55 +15,32 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
|
||||
# Platform detection.
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||
set(LINUX TRUE)
|
||||
set(SUPPORTS_X11 TRUE)
|
||||
set(SUPPORTS_WAYLAND TRUE)
|
||||
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
||||
set(FREEBSD TRUE)
|
||||
set(SUPPORTS_X11 TRUE)
|
||||
endif()
|
||||
|
||||
# Global options.
|
||||
option(BUILD_NOGUI_FRONTEND "Build the NoGUI frontend" OFF)
|
||||
option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
|
||||
option(BUILD_REGTEST "Build regression test runner" OFF)
|
||||
option(BUILD_TESTS "Build unit tests" OFF)
|
||||
option(ENABLE_CUBEB "Build with Cubeb audio output" ON)
|
||||
# Renderer options.
|
||||
option(ENABLE_OPENGL "Build with OpenGL renderer" ON)
|
||||
option(ENABLE_VULKAN "Build with Vulkan renderer" ON)
|
||||
option(ENABLE_DISCORD_PRESENCE "Build with Discord Rich Presence support" ON)
|
||||
#option(USE_SDL2 "Link with SDL2 for controller support" ON)
|
||||
set(USE_SDL2 ON)
|
||||
|
||||
# Global options.
|
||||
if(NOT ANDROID)
|
||||
option(BUILD_NOGUI_FRONTEND "Build the NoGUI frontend" OFF)
|
||||
option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
|
||||
option(BUILD_REGTEST "Build regression test runner" OFF)
|
||||
option(BUILD_TESTS "Build unit tests" OFF)
|
||||
|
||||
# OpenGL context creation methods.
|
||||
if(SUPPORTS_X11)
|
||||
option(USE_X11 "Support X11 window system" ON)
|
||||
endif()
|
||||
if(SUPPORTS_WAYLAND)
|
||||
option(USE_WAYLAND "Support Wayland window system" ON)
|
||||
endif()
|
||||
if((LINUX OR FREEBSD) AND NOT ANDROID)
|
||||
option(USE_DBUS "Enable DBus support for screensaver inhibiting" ON)
|
||||
endif()
|
||||
if(APPLE)
|
||||
option(SKIP_POSTPROCESS_BUNDLE "Disable bundle post-processing, including Qt additions" OFF)
|
||||
endif()
|
||||
set(ENABLE_CUBEB ON)
|
||||
set(ENABLE_DISCORD_PRESENCE ON)
|
||||
set(USE_SDL2 ON)
|
||||
|
||||
if(ANDROID)
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
if(LINUX OR FREEBSD)
|
||||
option(USE_X11 "Support X11 window system" ON)
|
||||
option(USE_WAYLAND "Support Wayland window system" ON)
|
||||
endif()
|
||||
if(APPLE)
|
||||
option(SKIP_POSTPROCESS_BUNDLE "Disable bundle post-processing, including Qt additions" OFF)
|
||||
endif()
|
||||
set(BUILD_NOGUI_FRONTEND OFF CACHE BOOL "")
|
||||
set(BUILD_QT_FRONTEND OFF CACHE BOOL "")
|
||||
set(BUILD_REGTEST OFF CACHE BOOL "")
|
||||
set(ENABLE_CUBEB OFF CACHE BOOL "")
|
||||
set(ENABLE_OPENGL ON CACHE BOOL "")
|
||||
set(ENABLE_VULKAN ON CACHE BOOL "")
|
||||
set(ENABLE_DISCORD_PRESENCE OFF CACHE BOOL "")
|
||||
set(ENABLE_CHEEVOS ON CACHE BOOL "")
|
||||
set(USE_SDL2 OFF CACHE BOOL "")
|
||||
set(USE_X11 OFF CACHE BOOL "")
|
||||
set(USE_WAYLAND OFF CACHE BOOL "")
|
||||
endif()
|
||||
|
||||
|
||||
@ -73,9 +50,11 @@ if(USE_SDL2)
|
||||
endif()
|
||||
if(NOT WIN32 AND NOT ANDROID)
|
||||
find_package(CURL REQUIRED)
|
||||
find_package(Libbacktrace)
|
||||
if(NOT LIBBACKTRACE_FOUND)
|
||||
message(WARNING "libbacktrace not found, crashes will not produce backtraces.")
|
||||
if(NOT APPLE)
|
||||
find_package(Libbacktrace)
|
||||
if(NOT LIBBACKTRACE_FOUND)
|
||||
message(WARNING "libbacktrace not found, crashes will not produce backtraces.")
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
if(BUILD_QT_FRONTEND)
|
||||
@ -99,9 +78,6 @@ endif()
|
||||
if(USE_WAYLAND)
|
||||
message(STATUS "Wayland support enabled")
|
||||
endif()
|
||||
if(ENABLE_CHEEVOS)
|
||||
message(STATUS "RetroAchievements support enabled")
|
||||
endif()
|
||||
|
||||
|
||||
# Set _DEBUG macro for Debug builds.
|
||||
|
Reference in New Issue
Block a user