2023-06-21 22:04:39 +00:00
|
|
|
subdir('po')
|
2023-03-20 01:01:22 +00:00
|
|
|
dependencies = [
|
|
|
|
dep_dino,
|
|
|
|
dep_gee,
|
|
|
|
dep_glib,
|
|
|
|
dep_gmodule,
|
|
|
|
dep_gtk4,
|
|
|
|
dep_icu_uc,
|
|
|
|
dep_libadwaita,
|
|
|
|
dep_m,
|
|
|
|
dep_qlite,
|
|
|
|
dep_xmpp_vala,
|
|
|
|
]
|
|
|
|
sources = files(
|
|
|
|
'src/main.vala',
|
|
|
|
'src/ui/add_conversation/add_conference_dialog.vala',
|
|
|
|
'src/ui/add_conversation/add_contact_dialog.vala',
|
|
|
|
'src/ui/add_conversation/add_groupchat_dialog.vala',
|
|
|
|
'src/ui/add_conversation/conference_details_fragment.vala',
|
|
|
|
'src/ui/add_conversation/conference_list.vala',
|
|
|
|
'src/ui/add_conversation/list_row.vala',
|
|
|
|
'src/ui/add_conversation/roster_list.vala',
|
|
|
|
'src/ui/add_conversation/select_contact_dialog.vala',
|
|
|
|
'src/ui/add_conversation/select_jid_fragment.vala',
|
|
|
|
'src/ui/application.vala',
|
|
|
|
'src/ui/call_window/audio_settings_popover.vala',
|
|
|
|
'src/ui/call_window/call_bottom_bar.vala',
|
|
|
|
'src/ui/call_window/call_connection_details_window.vala',
|
|
|
|
'src/ui/call_window/call_encryption_button.vala',
|
|
|
|
'src/ui/call_window/call_window.vala',
|
|
|
|
'src/ui/call_window/call_window_controller.vala',
|
|
|
|
'src/ui/call_window/participant_widget.vala',
|
|
|
|
'src/ui/call_window/video_settings_popover.vala',
|
|
|
|
'src/ui/chat_input/chat_input_controller.vala',
|
|
|
|
'src/ui/chat_input/chat_text_view.vala',
|
|
|
|
'src/ui/chat_input/encryption_button.vala',
|
|
|
|
'src/ui/chat_input/occupants_tab_completer.vala',
|
|
|
|
'src/ui/chat_input/smiley_converter.vala',
|
|
|
|
'src/ui/chat_input/view.vala',
|
|
|
|
'src/ui/contact_details/permissions_provider.vala',
|
|
|
|
'src/ui/contact_details/settings_provider.vala',
|
|
|
|
'src/ui/conversation_content_view/call_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/chat_state_populator.vala',
|
|
|
|
'src/ui/conversation_content_view/content_populator.vala',
|
|
|
|
'src/ui/conversation_content_view/conversation_item_skeleton.vala',
|
|
|
|
'src/ui/conversation_content_view/conversation_view.vala',
|
|
|
|
'src/ui/conversation_content_view/date_separator_populator.vala',
|
|
|
|
'src/ui/conversation_content_view/file_default_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/file_image_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/file_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/item_actions.vala',
|
|
|
|
'src/ui/conversation_content_view/message_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/quote_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/reactions_widget.vala',
|
|
|
|
'src/ui/conversation_content_view/subscription_notification.vala',
|
2024-03-02 12:18:53 +00:00
|
|
|
'src/ui/conversation_content_view/unread_indicator_populator.vala',
|
2023-09-24 17:54:04 +00:00
|
|
|
'src/ui/conversation_details.vala',
|
2023-03-20 01:01:22 +00:00
|
|
|
'src/ui/conversation_list_titlebar.vala',
|
|
|
|
'src/ui/conversation_selector/conversation_selector.vala',
|
|
|
|
'src/ui/conversation_selector/conversation_selector_row.vala',
|
|
|
|
'src/ui/conversation_titlebar/call_entry.vala',
|
|
|
|
'src/ui/conversation_titlebar/conversation_titlebar.vala',
|
|
|
|
'src/ui/conversation_titlebar/menu_entry.vala',
|
|
|
|
'src/ui/conversation_titlebar/occupants_entry.vala',
|
|
|
|
'src/ui/conversation_titlebar/search_entry.vala',
|
|
|
|
'src/ui/conversation_view.vala',
|
|
|
|
'src/ui/conversation_view_controller.vala',
|
|
|
|
'src/ui/file_send_overlay.vala',
|
|
|
|
'src/ui/global_search.vala',
|
|
|
|
'src/ui/main_window.vala',
|
|
|
|
'src/ui/main_window_controller.vala',
|
|
|
|
'src/ui/manage_accounts/account_row.vala',
|
|
|
|
'src/ui/manage_accounts/add_account_dialog.vala',
|
2023-12-28 00:23:02 +00:00
|
|
|
'src/ui/manage_accounts/change_password_dialog.vala',
|
2023-03-20 01:01:22 +00:00
|
|
|
'src/ui/manage_accounts/dialog.vala',
|
|
|
|
'src/ui/notifier_freedesktop.vala',
|
|
|
|
'src/ui/notifier_gnotifications.vala',
|
|
|
|
'src/ui/occupant_menu/list.vala',
|
|
|
|
'src/ui/occupant_menu/list_row.vala',
|
|
|
|
'src/ui/occupant_menu/view.vala',
|
|
|
|
'src/ui/settings_dialog.vala',
|
|
|
|
'src/ui/util/accounts_combo_box.vala',
|
|
|
|
'src/ui/util/config.vala',
|
|
|
|
'src/ui/util/data_forms.vala',
|
|
|
|
'src/ui/util/helper.vala',
|
|
|
|
'src/ui/util/label_hybrid.vala',
|
|
|
|
'src/ui/util/size_request_box.vala',
|
|
|
|
'src/ui/util/sizing_bin.vala',
|
|
|
|
'src/ui/widgets/avatar_picture.vala',
|
|
|
|
'src/ui/widgets/date_separator.vala',
|
|
|
|
'src/ui/widgets/fixed_ratio_picture.vala',
|
|
|
|
'src/ui/widgets/natural_size_increase.vala',
|
2023-09-24 17:54:04 +00:00
|
|
|
'src/view_model/conversation_details.vala',
|
|
|
|
'src/view_model/preferences_row.vala',
|
|
|
|
'src/windows/conversation_details.vala',
|
2023-03-20 01:01:22 +00:00
|
|
|
)
|
2023-06-21 22:04:39 +00:00
|
|
|
sources += gnome.compile_resources(
|
|
|
|
'resources',
|
2023-03-20 01:01:22 +00:00
|
|
|
'data/gresource.xml',
|
|
|
|
source_dir: 'data',
|
|
|
|
)
|
|
|
|
|
|
|
|
c_args = [
|
|
|
|
'-DG_LOG_DOMAIN="dino"',
|
|
|
|
'-DGETTEXT_PACKAGE="dino"',
|
|
|
|
'-DLOCALE_INSTALL_DIR="@0@"'.format(get_option('prefix') / get_option('localedir')),
|
|
|
|
]
|
2023-06-21 22:04:39 +00:00
|
|
|
vala_args = [
|
|
|
|
'--vapidir', meson.current_source_dir() / 'vapi',
|
|
|
|
]
|
2023-09-30 01:05:20 +00:00
|
|
|
if dep_libadwaita.version() == 'unknown' or dep_libadwaita.version().version_compare('>=1.2')
|
|
|
|
vala_args += ['-D', 'Adw_1_2']
|
|
|
|
endif
|
|
|
|
if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.6')
|
|
|
|
vala_args += ['-D', 'GTK_4_6']
|
|
|
|
endif
|
|
|
|
if dep_gtk4.version() == 'unknown' or dep_gtk4.version().version_compare('>=4.8')
|
|
|
|
vala_args += ['-D', 'GTK_4_8']
|
|
|
|
endif
|
2023-06-21 22:04:39 +00:00
|
|
|
exe_dino = executable('dino', sources, c_args: c_args, vala_args: vala_args, dependencies: dependencies, install: true)
|
|
|
|
|
|
|
|
install_data('data/icons/scalable/apps/im.dino.Dino-symbolic.svg', install_dir: get_option('datadir') / 'hicolor/symbolic/apps')
|
|
|
|
install_data('data/icons/scalable/apps/im.dino.Dino.svg', install_dir: get_option('datadir') / 'hicolor/scalable/apps')
|
|
|
|
install_data('data/im.dino.Dino.appdata.xml', install_dir: get_option('datadir') / 'metainfo')
|
|
|
|
install_data('data/im.dino.Dino.desktop', install_dir: get_option('datadir') / 'applications')
|
2023-11-12 13:17:55 +00:00
|
|
|
install_data('data/im.dino.Dino.service', install_dir: get_option('datadir') / 'dbus-1/services')
|