ZaStoGram_desktop/Telegram/cmake/td_webauthn.cmake
John Preston 9c0d9ee2d6 Stream wallet updates with a polling fallback
Task: 2026/08/11/stream-wallet-updates-with-polling-fallback
2026-10-08 22:23:53 +04:00

63 lines
1.5 KiB
CMake

# 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
add_library(td_webauthn OBJECT)
init_non_host_target(td_webauthn)
add_library(tdesktop::td_webauthn ALIAS td_webauthn)
nice_target_sources(td_webauthn ${src_loc}
PRIVATE
webauthn/cable_core.cpp
webauthn/cable_core.h
webauthn/cable_scanner.h
)
target_include_directories(td_webauthn
PUBLIC
${src_loc}
)
target_link_libraries(td_webauthn
PUBLIC
desktop-app::external_qt
PRIVATE
desktop-app::external_openssl
)
if (WIN32)
nice_target_sources(td_webauthn ${src_loc}
PRIVATE
webauthn/cable_scanner_win.cpp
)
target_link_libraries(td_webauthn
PRIVATE
desktop-app::lib_base
desktop-app::lib_crl
)
elseif (APPLE)
nice_target_sources(td_webauthn ${src_loc}
PRIVATE
webauthn/cable_scanner_mac.mm
)
target_link_libraries(td_webauthn
PRIVATE
desktop-app::lib_base
desktop-app::lib_crl
)
else()
nice_target_sources(td_webauthn ${src_loc}
PRIVATE
webauthn/cable_scanner_linux.cpp
)
target_link_libraries(td_webauthn
PRIVATE
desktop-app::lib_base
desktop-app::lib_crl
desktop-app::external_glib
)
include(${cmake_helpers_loc}/external/glib/generate_dbus.cmake)
generate_dbus(td_webauthn org.bluez. Bluez ${src_loc}/webauthn/org.bluez.xml)
endif()