aboutsummaryrefslogtreecommitdiff
path: root/main/meson.build
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2023-06-22 00:04:39 +0200
committerfiaxh <fiaxh@users.noreply.github.com>2023-10-06 15:25:12 +0200
commit62ed82a49535a891acb85a2e7b9d861433db1670 (patch)
tree82e6c65936e364891d9dcd8400f370ebbc19f077 /main/meson.build
parent6eb1b53e60a12f82c8d47a5824bf9cee954ccdc2 (diff)
downloaddino-62ed82a49535a891acb85a2e7b9d861433db1670.tar.gz
dino-62ed82a49535a891acb85a2e7b9d861433db1670.zip
meson: Install more stuff
Install .vapi, .deps, .h files for the Vala libraries. Also install the data files. .deps files have to be manually generated, there's a feature request for automated generation at https://github.com/mesonbuild/meson/issues/9756. Import the gnome module globally. Install dependencies on Meson CI.
Diffstat (limited to 'main/meson.build')
-rw-r--r--main/meson.build16
1 files changed, 13 insertions, 3 deletions
diff --git a/main/meson.build b/main/meson.build
index 0326cc7c..f6d212f8 100644
--- a/main/meson.build
+++ b/main/meson.build
@@ -1,3 +1,4 @@
+subdir('po')
dependencies = [
dep_dino,
dep_gee,
@@ -91,8 +92,8 @@ sources = files(
'src/view_model/preferences_row.vala',
'src/windows/conversation_details.vala',
)
-sources += import('gnome').compile_resources(
- 'dino-resources',
+sources += gnome.compile_resources(
+ 'resources',
'data/gresource.xml',
source_dir: 'data',
)
@@ -102,4 +103,13 @@ c_args = [
'-DGETTEXT_PACKAGE="dino"',
'-DLOCALE_INSTALL_DIR="@0@"'.format(get_option('prefix') / get_option('localedir')),
]
-exe_dino = executable('dino', sources, c_args: c_args, vala_args: ['--vapidir', meson.current_source_dir() / 'vapi'], dependencies: dependencies)
+vala_args = [
+ '--vapidir', meson.current_source_dir() / 'vapi',
+]
+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')
+install_data('data/im.dino.Dino.service', install_dir: get_option('datadir') / 'dbus-1/servces')