2019-11-21 14:56:17 +03:00
|
|
|
# This file is part of Telegram Desktop,
|
|
|
|
# the official desktop application for the Telegram messaging service.
|
|
|
|
#
|
|
|
|
# For license and copyright information please follow this link:
|
|
|
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
|
|
|
|
option(TDESKTOP_API_TEST "Use test API credentials." OFF)
|
2020-05-12 07:59:59 +03:00
|
|
|
option(KTGDESKTOP_ENABLE_PACKER "Enable building update packer on non-special targets." OFF)
|
2019-11-21 14:56:17 +03:00
|
|
|
set(TDESKTOP_API_ID "0" CACHE STRING "Provide 'api_id' for the Telegram API access.")
|
|
|
|
set(TDESKTOP_API_HASH "" CACHE STRING "Provide 'api_hash' for the Telegram API access.")
|
2020-01-21 18:39:13 +03:00
|
|
|
set(TDESKTOP_LAUNCHER_BASENAME "" CACHE STRING "Desktop file base name (Linux only).")
|
2019-11-21 14:56:17 +03:00
|
|
|
|
|
|
|
if (TDESKTOP_API_TEST)
|
|
|
|
set(TDESKTOP_API_ID 17349)
|
|
|
|
set(TDESKTOP_API_HASH 344583e45741c457fe1862106095a5eb)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (DESKTOP_APP_DISABLE_SPELLCHECK)
|
|
|
|
target_compile_definitions(Telegram PRIVATE TDESKTOP_DISABLE_SPELLCHECK)
|
|
|
|
else()
|
2019-11-21 17:41:11 +03:00
|
|
|
target_link_libraries(Telegram PRIVATE desktop-app::lib_spellcheck)
|
2019-11-21 14:56:17 +03:00
|
|
|
endif()
|
|
|
|
|
2020-04-07 22:54:51 +04:00
|
|
|
if (DESKTOP_APP_DISABLE_AUTOUPDATE)
|
2019-12-06 14:10:44 +03:00
|
|
|
target_compile_definitions(Telegram PRIVATE TDESKTOP_DISABLE_AUTOUPDATE)
|
|
|
|
endif()
|
|
|
|
|
2020-06-27 19:17:50 +03:00
|
|
|
# if (DESKTOP_APP_SPECIAL_TARGET)
|
|
|
|
# target_compile_definitions(Telegram PRIVATE TDESKTOP_ALLOW_CLOSED_ALPHA)
|
|
|
|
# endif()
|
2019-12-06 14:10:44 +03:00
|
|
|
|
2020-01-21 18:39:13 +03:00
|
|
|
if (NOT TDESKTOP_LAUNCHER_BASENAME)
|
2020-01-24 03:06:30 +03:00
|
|
|
set(TDESKTOP_LAUNCHER_BASENAME "kotatogramdesktop")
|
2020-01-09 15:50:01 +01:00
|
|
|
endif()
|
2020-01-21 18:39:13 +03:00
|
|
|
target_compile_definitions(Telegram PRIVATE TDESKTOP_LAUNCHER_BASENAME=${TDESKTOP_LAUNCHER_BASENAME})
|