2025-04-28 17:29:32 -07:00
|
|
|
dependencies = [
|
|
|
|
|
dependency('gtk4', required : true),
|
2025-04-28 18:21:02 -07:00
|
|
|
dependency('libadwaita-1', required : true),
|
|
|
|
|
dependency('gio-2.0', required : true),
|
2025-04-30 15:19:44 -07:00
|
|
|
dependency('gee-0.8', required : true),
|
2025-05-03 01:11:26 -07:00
|
|
|
dependency('gio-unix-2.0', required : true),
|
|
|
|
|
dependency('libsecret-1', required : true),
|
2025-04-28 17:29:32 -07:00
|
|
|
]
|
|
|
|
|
|
2025-04-30 15:58:47 -07:00
|
|
|
gnome = import('gnome')
|
2025-07-15 18:42:05 -07:00
|
|
|
kp_prefix = get_option('prefix')
|
|
|
|
|
datadir = join_paths(kp_prefix, get_option('datadir'))
|
2025-04-30 15:58:47 -07:00
|
|
|
resources = gnome.compile_resources(
|
|
|
|
|
'kordophone-resources',
|
|
|
|
|
'resources/kordophone.gresource.xml',
|
|
|
|
|
source_dir: 'resources'
|
|
|
|
|
)
|
|
|
|
|
|
2025-07-15 18:42:05 -07:00
|
|
|
# Icons
|
|
|
|
|
app_icon_dirs = [
|
|
|
|
|
'16x16',
|
|
|
|
|
'24x24',
|
|
|
|
|
'32x32',
|
|
|
|
|
'48x48',
|
|
|
|
|
'256x256',
|
|
|
|
|
'512x512',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
build_tools_dir = meson.source_root() / 'build-aux'
|
|
|
|
|
|
2025-08-08 13:47:21 -07:00
|
|
|
image_magick = find_program('convert', required : true)
|
2025-07-15 18:42:05 -07:00
|
|
|
resizer = find_program(build_tools_dir / 'resize.py')
|
|
|
|
|
icons = custom_target('icons',
|
|
|
|
|
output: 'hicolor',
|
|
|
|
|
input: 'resources/net.buzzert.kordophone.png',
|
|
|
|
|
command: [resizer, image_magick, '@INPUT@', '@OUTPUT@'],
|
|
|
|
|
install: true,
|
|
|
|
|
install_dir: join_paths(datadir, 'icons'),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Full res icon for Desktop Entry
|
|
|
|
|
install_data('resources/net.buzzert.kordophone.png',
|
|
|
|
|
install_dir: join_paths(datadir, 'icons'),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
# Desktop
|
|
|
|
|
install_data('resources/net.buzzert.kordophone.desktop',
|
|
|
|
|
install_dir: join_paths(datadir, 'applications')
|
|
|
|
|
)
|
|
|
|
|
|
2025-04-28 17:29:32 -07:00
|
|
|
sources = [
|
2025-04-30 14:24:33 -07:00
|
|
|
'application/kordophone-application.vala',
|
|
|
|
|
'application/main-window.vala',
|
2025-05-03 01:11:26 -07:00
|
|
|
'application/preferences-window.vala',
|
2025-04-30 14:24:33 -07:00
|
|
|
|
2025-04-30 14:53:17 -07:00
|
|
|
'service/interface/dbusservice.vala',
|
2025-05-03 01:11:26 -07:00
|
|
|
'service/dbus-service-base.vala',
|
2025-04-30 15:19:44 -07:00
|
|
|
'service/repository.vala',
|
2025-05-03 01:11:26 -07:00
|
|
|
'service/settings.vala',
|
2025-04-30 14:24:33 -07:00
|
|
|
|
|
|
|
|
'conversation-list/conversation-list-view.vala',
|
|
|
|
|
'conversation-list/conversation-list-model.vala',
|
|
|
|
|
'conversation-list/conversation-row.vala',
|
|
|
|
|
|
2025-06-12 19:26:49 -07:00
|
|
|
'transcript/attachment-preview.vala',
|
2025-05-04 00:13:47 -07:00
|
|
|
'transcript/message-list-model.vala',
|
2025-05-03 22:47:56 -07:00
|
|
|
'transcript/transcript-container-view.vala',
|
|
|
|
|
'transcript/transcript-drawing-area.vala',
|
2025-05-04 00:13:47 -07:00
|
|
|
'transcript/transcript-view.vala',
|
2025-05-03 22:47:56 -07:00
|
|
|
|
|
|
|
|
'transcript/layouts/bubble-layout.vala',
|
|
|
|
|
'transcript/layouts/chat-item-layout.vala',
|
|
|
|
|
'transcript/layouts/date-item-layout.vala',
|
2025-06-06 14:33:40 -07:00
|
|
|
'transcript/layouts/image-bubble-layout.vala',
|
2025-05-03 23:19:15 -07:00
|
|
|
'transcript/layouts/sender-annotation-layout.vala',
|
2025-05-03 22:47:56 -07:00
|
|
|
'transcript/layouts/text-bubble-layout.vala',
|
2025-04-30 15:58:47 -07:00
|
|
|
|
2025-06-06 20:03:02 -07:00
|
|
|
'models/attachment.vala',
|
2025-04-30 14:24:33 -07:00
|
|
|
'models/conversation.vala',
|
2025-04-30 15:58:47 -07:00
|
|
|
'models/message.vala',
|
2025-04-28 17:29:32 -07:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
executable('kordophone',
|
|
|
|
|
sources,
|
2025-04-30 15:58:47 -07:00
|
|
|
resources,
|
2025-07-15 18:42:05 -07:00
|
|
|
icons,
|
2025-04-28 17:29:32 -07:00
|
|
|
dependencies : dependencies,
|
2025-04-28 18:21:02 -07:00
|
|
|
vala_args: ['--pkg', 'posix'],
|
2025-06-17 00:47:03 -07:00
|
|
|
link_args: ['-lm'],
|
2025-04-28 17:29:32 -07:00
|
|
|
install : true
|
2025-07-15 18:42:05 -07:00
|
|
|
)
|