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)
|
2021-10-28 12:16:12 +00:00
|
|
|
init_non_host_target(td_ui)
|
2020-09-30 07:51:17 +00:00
|
|
|
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
|
2021-03-23 12:34:34 +00:00
|
|
|
payments/ui/payments.style
|
2020-10-13 15:11:53 +00:00
|
|
|
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
|
2021-02-05 09:24:26 +00:00
|
|
|
editor/editor.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}")
|
|
|
|
|
|
|
|
target_precompile_headers(td_ui PRIVATE ${src_loc}/ui/ui_pch.h)
|
|
|
|
nice_target_sources(td_ui ${src_loc}
|
|
|
|
PRIVATE
|
|
|
|
${style_files}
|
2021-04-12 16:25:58 +00:00
|
|
|
|
2021-09-07 11:33:20 +00:00
|
|
|
calls/group/ui/calls_group_recording_box.cpp
|
|
|
|
calls/group/ui/calls_group_recording_box.h
|
2021-06-07 12:01:41 +00:00
|
|
|
calls/group/ui/calls_group_scheduled_labels.cpp
|
|
|
|
calls/group/ui/calls_group_scheduled_labels.h
|
2021-04-20 10:30:42 +00:00
|
|
|
calls/group/ui/desktop_capture_choose_source.cpp
|
|
|
|
calls/group/ui/desktop_capture_choose_source.h
|
|
|
|
|
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
|
|
|
|
|
2021-08-26 14:46:24 +00:00
|
|
|
countries/countries_instance.cpp
|
|
|
|
countries/countries_instance.h
|
2021-03-23 16:06:59 +00:00
|
|
|
|
2021-07-25 22:01:00 +00:00
|
|
|
layout/abstract_layout_item.cpp
|
|
|
|
layout/abstract_layout_item.h
|
2021-07-28 14:00:46 +00:00
|
|
|
layout/layout_mosaic.cpp
|
2021-07-26 00:10:54 +00:00
|
|
|
layout/layout_mosaic.h
|
2021-07-25 22:20:42 +00:00
|
|
|
layout/layout_position.cpp
|
|
|
|
layout/layout_position.h
|
2021-07-26 03:59:25 +00:00
|
|
|
layout/layout_selection.cpp
|
|
|
|
layout/layout_selection.h
|
2021-07-25 22:01:00 +00:00
|
|
|
|
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
|
|
|
|
|
2021-11-18 17:02:12 +00:00
|
|
|
media/player/media_player_dropdown.cpp
|
|
|
|
media/player/media_player_dropdown.h
|
|
|
|
|
2021-03-23 16:06:59 +00:00
|
|
|
passport/ui/passport_details_row.cpp
|
|
|
|
passport/ui/passport_details_row.h
|
|
|
|
passport/ui/passport_form_row.cpp
|
|
|
|
passport/ui/passport_form_row.h
|
|
|
|
|
2021-03-25 15:27:30 +00:00
|
|
|
payments/ui/payments_edit_card.cpp
|
|
|
|
payments/ui/payments_edit_card.h
|
2021-03-23 16:06:59 +00:00
|
|
|
payments/ui/payments_edit_information.cpp
|
|
|
|
payments/ui/payments_edit_information.h
|
2021-03-23 12:34:34 +00:00
|
|
|
payments/ui/payments_form_summary.cpp
|
|
|
|
payments/ui/payments_form_summary.h
|
2021-03-26 15:23:12 +00:00
|
|
|
payments/ui/payments_field.cpp
|
|
|
|
payments/ui/payments_field.h
|
2021-03-23 12:34:34 +00:00
|
|
|
payments/ui/payments_panel.cpp
|
|
|
|
payments/ui/payments_panel.h
|
|
|
|
payments/ui/payments_panel_data.h
|
|
|
|
payments/ui/payments_panel_delegate.h
|
|
|
|
|
2020-10-13 16:43:18 +00:00
|
|
|
platform/mac/file_bookmark_mac.h
|
|
|
|
platform/mac/file_bookmark_mac.mm
|
|
|
|
platform/platform_file_bookmark.h
|
|
|
|
|
2021-02-11 14:46:46 +00:00
|
|
|
ui/boxes/auto_delete_settings.cpp
|
|
|
|
ui/boxes/auto_delete_settings.h
|
2021-01-19 07:14:50 +00:00
|
|
|
ui/boxes/calendar_box.cpp
|
|
|
|
ui/boxes/calendar_box.h
|
|
|
|
ui/boxes/choose_date_time.cpp
|
|
|
|
ui/boxes/choose_date_time.h
|
2021-10-18 21:36:55 +00:00
|
|
|
ui/boxes/confirm_box.cpp
|
|
|
|
ui/boxes/confirm_box.h
|
2021-10-18 22:43:50 +00:00
|
|
|
ui/boxes/confirm_phone_box.cpp
|
|
|
|
ui/boxes/confirm_phone_box.h
|
2021-03-23 16:06:59 +00:00
|
|
|
ui/boxes/country_select_box.cpp
|
|
|
|
ui/boxes/country_select_box.h
|
2021-01-19 07:14:50 +00:00
|
|
|
ui/boxes/edit_invite_link.cpp
|
|
|
|
ui/boxes/edit_invite_link.h
|
2021-10-21 23:25:01 +00:00
|
|
|
ui/boxes/rate_call_box.cpp
|
|
|
|
ui/boxes/rate_call_box.h
|
2021-02-15 17:37:22 +00:00
|
|
|
ui/boxes/report_box.cpp
|
|
|
|
ui/boxes/report_box.h
|
2021-03-23 16:06:59 +00:00
|
|
|
ui/boxes/single_choice_box.cpp
|
|
|
|
ui/boxes/single_choice_box.h
|
2021-10-18 21:36:55 +00:00
|
|
|
|
2021-07-12 11:02:02 +00:00
|
|
|
ui/chat/attach/attach_abstract_single_file_preview.cpp
|
|
|
|
ui/chat/attach/attach_abstract_single_file_preview.h
|
2021-07-12 11:02:35 +00:00
|
|
|
ui/chat/attach/attach_abstract_single_media_preview.cpp
|
|
|
|
ui/chat/attach/attach_abstract_single_media_preview.h
|
2021-07-12 10:40:59 +00:00
|
|
|
ui/chat/attach/attach_abstract_single_preview.h
|
2020-10-13 15:11:53 +00:00
|
|
|
ui/chat/attach/attach_album_preview.cpp
|
|
|
|
ui/chat/attach/attach_album_preview.h
|
2021-04-12 16:25:58 +00:00
|
|
|
ui/chat/attach/attach_album_thumbnail.cpp
|
|
|
|
ui/chat/attach/attach_album_thumbnail.h
|
|
|
|
ui/chat/attach/attach_controls.cpp
|
|
|
|
ui/chat/attach/attach_controls.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
|
2021-08-27 20:44:47 +00:00
|
|
|
ui/chat/chat_style.cpp
|
|
|
|
ui/chat/chat_style.h
|
2021-08-26 15:02:21 +00:00
|
|
|
ui/chat/chat_theme.cpp
|
|
|
|
ui/chat/chat_theme.h
|
2021-09-30 00:09:50 +00:00
|
|
|
ui/chat/continuous_scroll.cpp
|
|
|
|
ui/chat/continuous_scroll.h
|
2021-08-31 16:47:38 +00:00
|
|
|
ui/chat/forward_options_box.cpp
|
|
|
|
ui/chat/forward_options_box.h
|
2020-11-20 19:25:35 +00:00
|
|
|
ui/chat/group_call_bar.cpp
|
|
|
|
ui/chat/group_call_bar.h
|
2020-12-25 10:10:03 +00:00
|
|
|
ui/chat/group_call_userpics.cpp
|
|
|
|
ui/chat/group_call_userpics.h
|
2020-10-10 09:15:37 +00:00
|
|
|
ui/chat/message_bar.cpp
|
|
|
|
ui/chat/message_bar.h
|
2021-08-19 14:22:12 +00:00
|
|
|
ui/chat/message_bubble.cpp
|
|
|
|
ui/chat/message_bubble.h
|
2020-10-12 15:05:54 +00:00
|
|
|
ui/chat/pinned_bar.cpp
|
|
|
|
ui/chat/pinned_bar.h
|
2021-10-14 10:17:03 +00:00
|
|
|
ui/chat/requests_bar.cpp
|
|
|
|
ui/chat/requests_bar.h
|
2021-10-30 06:11:27 +00:00
|
|
|
ui/chat/select_scroll_manager.cpp
|
|
|
|
ui/chat/select_scroll_manager.h
|
2021-03-11 15:28:31 +00:00
|
|
|
ui/controls/call_mute_button.cpp
|
|
|
|
ui/controls/call_mute_button.h
|
2021-02-11 16:10:15 +00:00
|
|
|
ui/controls/delete_message_context_action.cpp
|
|
|
|
ui/controls/delete_message_context_action.h
|
2020-10-13 10:00:35 +00:00
|
|
|
ui/controls/emoji_button.cpp
|
|
|
|
ui/controls/emoji_button.h
|
2021-01-15 12:57:42 +00:00
|
|
|
ui/controls/invite_link_buttons.cpp
|
|
|
|
ui/controls/invite_link_buttons.h
|
2021-01-15 11:42:26 +00:00
|
|
|
ui/controls/invite_link_label.cpp
|
|
|
|
ui/controls/invite_link_label.h
|
2021-11-09 12:10:51 +00:00
|
|
|
ui/controls/send_as_button.cpp
|
|
|
|
ui/controls/send_as_button.h
|
2020-10-13 10:00:35 +00:00
|
|
|
ui/controls/send_button.cpp
|
|
|
|
ui/controls/send_button.h
|
2021-09-07 15:44:01 +00:00
|
|
|
ui/controls/who_read_context_action.cpp
|
|
|
|
ui/controls/who_read_context_action.h
|
2021-05-29 22:26:58 +00:00
|
|
|
ui/text/format_song_name.cpp
|
|
|
|
ui/text/format_song_name.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
|
2021-10-18 15:48:46 +00:00
|
|
|
|
2021-10-18 15:54:45 +00:00
|
|
|
ui/widgets/continuous_sliders.cpp
|
|
|
|
ui/widgets/continuous_sliders.h
|
|
|
|
ui/widgets/discrete_sliders.cpp
|
|
|
|
ui/widgets/discrete_sliders.h
|
2021-10-18 15:48:46 +00:00
|
|
|
ui/widgets/sent_code_field.cpp
|
|
|
|
ui/widgets/sent_code_field.h
|
2021-03-23 12:34:34 +00:00
|
|
|
ui/widgets/separate_panel.cpp
|
|
|
|
ui/widgets/separate_panel.h
|
2021-10-18 15:48:46 +00:00
|
|
|
|
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
|
2021-03-29 12:16:54 +00:00
|
|
|
ui/special_fields.cpp
|
|
|
|
ui/special_fields.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 17:15:52 +00:00
|
|
|
desktop-app::lib_lottie
|
2021-03-23 12:34:34 +00:00
|
|
|
PRIVATE
|
2021-04-20 10:30:42 +00:00
|
|
|
tdesktop::lib_tgcalls
|
2021-03-23 12:34:34 +00:00
|
|
|
desktop-app::lib_ffmpeg
|
|
|
|
desktop-app::lib_webview
|
2021-04-20 10:30:42 +00:00
|
|
|
desktop-app::lib_webrtc
|
2021-03-29 12:16:54 +00:00
|
|
|
desktop-app::lib_stripe
|
2020-09-30 07:51:17 +00:00
|
|
|
)
|