mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-29 19:20:09 +00:00
Update CMakeLists to configure it properly when enabling DRM
This commit is contained in:
parent
776b97deef
commit
48ffaaa378
@ -84,12 +84,22 @@ if(ENABLE_SENTRY)
|
||||
set(SENTRY_DNS "" CACHE STRING "Sentry DNS URL")
|
||||
endif()
|
||||
|
||||
if(ENABLE_NEWS OR ENABLE_UPDATER)
|
||||
if(ENABLE_NEWS OR ENABLE_UPDATER OR ENABLE_DRM)
|
||||
set(REQUIRE_CURL ON)
|
||||
else()
|
||||
set(REQUIRE_CURL OFF)
|
||||
endif()
|
||||
|
||||
# Select libcurl's TLS backend according to target platform
|
||||
if(REQUIRE_CURL AND ENABLE_DRM)
|
||||
if(APPLE)
|
||||
option(CMAKE_USE_SECTRANSP "enable Apple OS native SSL/TLS" ON)
|
||||
endif()
|
||||
if(WIN32)
|
||||
set(CMAKE_USE_SCHANNEL "enable Windows native SSL/TLS" ON)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT LAF_OS_BACKEND)
|
||||
if(NOT ENABLE_UI)
|
||||
set(LAF_OS_BACKEND "none") # Without UI, we use the none backend
|
||||
|
@ -56,6 +56,7 @@ endif()
|
||||
|
||||
if(ENABLE_DRM)
|
||||
add_definitions(-DENABLE_DRM)
|
||||
add_definitions(-DENABLE_SAVE)
|
||||
endif()
|
||||
|
||||
if(ENABLE_DEVMODE)
|
||||
@ -66,7 +67,7 @@ if(ENABLE_UI)
|
||||
add_definitions(-DENABLE_UI)
|
||||
endif()
|
||||
|
||||
if(ENABLE_UI AND NOT ENABLE_TRIAL_MODE)
|
||||
if(ENABLE_UI AND (NOT ENABLE_TRIAL_MODE OR ENABLE_DRM))
|
||||
set(ENABLE_DATA_RECOVERY on)
|
||||
add_definitions(-DENABLE_DATA_RECOVERY)
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user