mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
CMake: Add an ENABLE_NOGUI option
This commit is contained in:
parent
836f76da89
commit
eabde77892
@ -23,6 +23,7 @@ endif()
|
|||||||
|
|
||||||
option(USE_SHARED_ENET "Use shared libenet if found rather than Dolphin's soon-to-compatibly-diverge version" OFF)
|
option(USE_SHARED_ENET "Use shared libenet if found rather than Dolphin's soon-to-compatibly-diverge version" OFF)
|
||||||
option(USE_UPNP "Enables UPnP port mapping support" ON)
|
option(USE_UPNP "Enables UPnP port mapping support" ON)
|
||||||
|
option(ENABLE_NOGUI "Enable NoGUI frontend" ON)
|
||||||
option(ENABLE_QT "Enable Qt (Default)" ON)
|
option(ENABLE_QT "Enable Qt (Default)" ON)
|
||||||
option(ENABLE_LTO "Enables Link Time Optimization" OFF)
|
option(ENABLE_LTO "Enables Link Time Optimization" OFF)
|
||||||
option(ENABLE_GENERIC "Enables generic build that should run on any little-endian host" OFF)
|
option(ENABLE_GENERIC "Enables generic build that should run on any little-endian host" OFF)
|
||||||
@ -364,6 +365,10 @@ if(ANDROID)
|
|||||||
message(STATUS "Building for Android")
|
message(STATUS "Building for Android")
|
||||||
if(NOT ENABLE_HEADLESS)
|
if(NOT ENABLE_HEADLESS)
|
||||||
add_definitions(-DANDROID)
|
add_definitions(-DANDROID)
|
||||||
|
if(ENABLE_NOGUI)
|
||||||
|
message(STATUS "Building Android app, disabling NoGUI frontend.")
|
||||||
|
set(ENABLE_NOGUI 0)
|
||||||
|
endif()
|
||||||
else()
|
else()
|
||||||
# Lie to cmake a bit. We are cross compiling to Android
|
# Lie to cmake a bit. We are cross compiling to Android
|
||||||
# but not as a shared library. We want an executable.
|
# but not as a shared library. We want an executable.
|
||||||
@ -384,7 +389,6 @@ if(ENABLE_HEADLESS)
|
|||||||
message(STATUS "Enabling Headless! Disabling GUI.")
|
message(STATUS "Enabling Headless! Disabling GUI.")
|
||||||
set(ENABLE_QT 0)
|
set(ENABLE_QT 0)
|
||||||
set(USE_DISCORD_PRESENCE 0)
|
set(USE_DISCORD_PRESENCE 0)
|
||||||
add_definitions(-DUSE_HEADLESS)
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Set file offset size to 64 bits.
|
# Set file offset size to 64 bits.
|
||||||
|
@ -2,12 +2,15 @@ add_subdirectory(AudioCommon)
|
|||||||
add_subdirectory(Common)
|
add_subdirectory(Common)
|
||||||
add_subdirectory(Core)
|
add_subdirectory(Core)
|
||||||
add_subdirectory(DiscIO)
|
add_subdirectory(DiscIO)
|
||||||
add_subdirectory(DolphinNoGUI)
|
|
||||||
add_subdirectory(InputCommon)
|
add_subdirectory(InputCommon)
|
||||||
add_subdirectory(UICommon)
|
add_subdirectory(UICommon)
|
||||||
add_subdirectory(VideoCommon)
|
add_subdirectory(VideoCommon)
|
||||||
add_subdirectory(VideoBackends)
|
add_subdirectory(VideoBackends)
|
||||||
|
|
||||||
|
if(ENABLE_NOGUI)
|
||||||
|
add_subdirectory(DolphinNoGUI)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(ENABLE_QT)
|
if(ENABLE_QT)
|
||||||
add_subdirectory(DolphinQt)
|
add_subdirectory(DolphinQt)
|
||||||
endif()
|
endif()
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
if(NOT((ENABLE_X11 AND X11_FOUND) OR ENABLE_HEADLESS))
|
|
||||||
return()
|
|
||||||
endif()
|
|
||||||
|
|
||||||
add_executable(dolphin-nogui
|
add_executable(dolphin-nogui
|
||||||
Platform.cpp
|
Platform.cpp
|
||||||
PlatformHeadless.cpp
|
PlatformHeadless.cpp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user