mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
CMakeLists: Add option to disable automatic update support
This commit is contained in:
parent
c9896e1c4b
commit
e23df9369d
@ -50,6 +50,7 @@ option(ENABLE_TESTS "Enables building the unit tests" ON)
|
|||||||
option(ENABLE_VULKAN "Enables vulkan video backend" ON)
|
option(ENABLE_VULKAN "Enables vulkan video backend" ON)
|
||||||
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence, show the current game on Discord" ON)
|
option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence, show the current game on Discord" ON)
|
||||||
option(USE_MGBA "Enables GBA controllers emulation using libmgba" ON)
|
option(USE_MGBA "Enables GBA controllers emulation using libmgba" ON)
|
||||||
|
option(ENABLE_AUTOUPDATE "Enables support for automatic updates" ON)
|
||||||
|
|
||||||
# Maintainers: if you consider blanket disabling this for your users, please
|
# Maintainers: if you consider blanket disabling this for your users, please
|
||||||
# consider the following points:
|
# consider the following points:
|
||||||
@ -536,6 +537,11 @@ if(ENABLE_ANALYTICS)
|
|||||||
add_definitions(-DUSE_ANALYTICS=1)
|
add_definitions(-DUSE_ANALYTICS=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(ENABLE_AUTOUPDATE)
|
||||||
|
message(STATUS "Enabling automatic update support")
|
||||||
|
add_definitions(-DAUTOUPDATE=1)
|
||||||
|
endif()
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
# Setup include directories (and make sure they are preferred over the Externals)
|
# Setup include directories (and make sure they are preferred over the Externals)
|
||||||
#
|
#
|
||||||
|
@ -23,10 +23,10 @@ if (APPLE OR WIN32)
|
|||||||
add_subdirectory(UpdaterCommon)
|
add_subdirectory(UpdaterCommon)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE AND ENABLE_AUTOUPDATE)
|
||||||
add_subdirectory(MacUpdater)
|
add_subdirectory(MacUpdater)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32 AND ENABLE_AUTOUPDATE)
|
||||||
add_subdirectory(WinUpdater)
|
add_subdirectory(WinUpdater)
|
||||||
endif()
|
endif()
|
||||||
|
@ -128,11 +128,15 @@ std::string GenerateChangelog(const picojson::array& versions)
|
|||||||
|
|
||||||
bool AutoUpdateChecker::SystemSupportsAutoUpdates()
|
bool AutoUpdateChecker::SystemSupportsAutoUpdates()
|
||||||
{
|
{
|
||||||
|
#if defined AUTOUPDATE
|
||||||
#if defined _WIN32 || defined __APPLE__
|
#if defined _WIN32 || defined __APPLE__
|
||||||
return true;
|
return true;
|
||||||
#else
|
#else
|
||||||
return false;
|
return false;
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::string GetPlatformID()
|
static std::string GetPlatformID()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user