2020-09-30 07:51:17 +00: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
|
|
|
|
|
|
|
|
add_library(td_ui OBJECT)
|
|
|
|
init_target(td_ui)
|
|
|
|
add_library(tdesktop::td_ui ALIAS td_ui)
|
|
|
|
|
|
|
|
include(lib_ui/cmake/generate_styles.cmake)
|
2020-10-13 15:11:53 +00:00
|
|
|
include(cmake/generate_numbers.cmake)
|
2020-09-30 07:51:17 +00:00
|
|
|
|
|
|
|
set(style_files
|
|
|
|
ui/td_common.style
|
2020-10-13 15:11:53 +00:00
|
|
|
ui/filter_icons.style
|
2020-10-10 09:15:37 +00:00
|
|
|
ui/chat/chat.style
|
2020-10-13 15:11:53 +00:00
|
|
|
boxes/boxes.style
|
2020-10-10 09:15:37 +00:00
|
|
|
dialogs/dialogs.style
|
2020-10-13 15:11:53 +00:00
|
|
|
chat_helpers/chat_helpers.style
|
|
|
|
calls/calls.style
|
|
|
|
export/view/export.style
|
|
|
|
info/info.style
|
|
|
|
intro/intro.style
|
|
|
|
media/player/media_player.style
|
|
|
|
passport/passport.style
|
|
|
|
profile/profile.style
|
|
|
|
settings/settings.style
|
|
|
|
media/view/media_view.style
|
|
|
|
overview/overview.style
|
2020-10-10 09:15:37 +00:00
|
|
|
window/window.style
|
2020-09-30 07:51:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(dependent_style_files
|
|
|
|
${submodules_loc}/lib_ui/ui/colors.palette
|
|
|
|
${submodules_loc}/lib_ui/ui/basic.style
|
|
|
|
${submodules_loc}/lib_ui/ui/layers/layers.style
|
|
|
|
${submodules_loc}/lib_ui/ui/widgets/widgets.style
|
|
|
|
)
|
|
|
|
|
|
|
|
generate_styles(td_ui ${src_loc} "${style_files}" "${dependent_style_files}")
|
2020-10-13 15:11:53 +00:00
|
|
|
generate_numbers(td_ui ${res_loc}/numbers.txt)
|
2020-09-30 07:51:17 +00:00
|
|
|
|
|
|
|
target_precompile_headers(td_ui PRIVATE ${src_loc}/ui/ui_pch.h)
|
|
|
|
nice_target_sources(td_ui ${src_loc}
|
|
|
|
PRIVATE
|
|
|
|
${style_files}
|
|
|
|
|
2020-10-13 16:43:18 +00:00
|
|
|
core/file_location.cpp
|
|
|
|
core/file_location.h
|
2020-10-13 15:11:53 +00:00
|
|
|
core/mime_type.cpp
|
|
|
|
core/mime_type.h
|
|
|
|
|
2020-10-13 16:43:18 +00:00
|
|
|
media/clip/media_clip_check_streaming.cpp
|
|
|
|
media/clip/media_clip_check_streaming.h
|
|
|
|
media/clip/media_clip_ffmpeg.cpp
|
|
|
|
media/clip/media_clip_ffmpeg.h
|
|
|
|
media/clip/media_clip_implementation.cpp
|
|
|
|
media/clip/media_clip_implementation.h
|
|
|
|
media/clip/media_clip_reader.cpp
|
|
|
|
media/clip/media_clip_reader.h
|
|
|
|
|
|
|
|
platform/mac/file_bookmark_mac.h
|
|
|
|
platform/mac/file_bookmark_mac.mm
|
|
|
|
platform/platform_file_bookmark.h
|
|
|
|
|
2020-10-13 15:11:53 +00:00
|
|
|
ui/chat/attach/attach_album_thumbnail.cpp
|
|
|
|
ui/chat/attach/attach_album_thumbnail.h
|
|
|
|
ui/chat/attach/attach_album_preview.cpp
|
|
|
|
ui/chat/attach/attach_album_preview.h
|
2020-10-13 10:00:35 +00:00
|
|
|
ui/chat/attach/attach_extensions.cpp
|
|
|
|
ui/chat/attach/attach_extensions.h
|
2020-10-13 15:11:53 +00:00
|
|
|
ui/chat/attach/attach_prepare.cpp
|
|
|
|
ui/chat/attach/attach_prepare.h
|
2020-10-15 14:27:16 +00:00
|
|
|
ui/chat/attach/attach_send_files_way.cpp
|
|
|
|
ui/chat/attach/attach_send_files_way.h
|
2020-10-13 15:11:53 +00:00
|
|
|
ui/chat/attach/attach_single_file_preview.cpp
|
|
|
|
ui/chat/attach/attach_single_file_preview.h
|
2020-10-13 17:15:52 +00:00
|
|
|
ui/chat/attach/attach_single_media_preview.cpp
|
|
|
|
ui/chat/attach/attach_single_media_preview.h
|
2020-10-10 09:15:37 +00:00
|
|
|
ui/chat/message_bar.cpp
|
|
|
|
ui/chat/message_bar.h
|
2020-10-12 15:05:54 +00:00
|
|
|
ui/chat/pinned_bar.cpp
|
|
|
|
ui/chat/pinned_bar.h
|
2020-10-13 10:00:35 +00:00
|
|
|
ui/controls/emoji_button.cpp
|
|
|
|
ui/controls/emoji_button.h
|
|
|
|
ui/controls/send_button.cpp
|
|
|
|
ui/controls/send_button.h
|
2020-09-30 11:32:02 +00:00
|
|
|
ui/text/format_values.cpp
|
|
|
|
ui/text/format_values.h
|
2020-10-10 09:15:37 +00:00
|
|
|
ui/text/text_options.cpp
|
|
|
|
ui/text/text_options.h
|
2020-09-30 07:51:17 +00:00
|
|
|
ui/toasts/common_toasts.cpp
|
|
|
|
ui/toasts/common_toasts.h
|
2020-10-13 15:11:53 +00:00
|
|
|
ui/cached_round_corners.cpp
|
|
|
|
ui/cached_round_corners.h
|
|
|
|
ui/grouped_layout.cpp
|
|
|
|
ui/grouped_layout.h
|
|
|
|
|
2020-10-13 10:00:35 +00:00
|
|
|
ui/ui_pch.h
|
2020-09-30 07:51:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(td_ui
|
|
|
|
PUBLIC
|
|
|
|
${src_loc}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(td_ui
|
|
|
|
PUBLIC
|
2020-09-30 09:11:44 +00:00
|
|
|
tdesktop::td_lang
|
2020-09-30 07:51:17 +00:00
|
|
|
desktop-app::lib_ui
|
2020-10-13 16:43:18 +00:00
|
|
|
desktop-app::lib_ffmpeg
|
2020-10-13 17:15:52 +00:00
|
|
|
desktop-app::lib_lottie
|
2020-09-30 07:51:17 +00:00
|
|
|
)
|