diff options
author | Oz Tiram <[email protected]> | 2025-03-30 15:20:05 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2025-04-04 22:19:13 +0000 |
commit | b1f21edcec82c25cbd6b59b521a841f86fb1f327 (patch) | |
tree | 57bed53a768722d58d0d4c081be54198f90d6cb6 /data/meson.build | |
parent | 0672f82ffb2e56ffb711703b3b786714d2bc794c (diff) | |
download | atril-b1f21edcec82c25cbd6b59b521a841f86fb1f327.tar.bz2 atril-b1f21edcec82c25cbd6b59b521a841f86fb1f327.tar.xz |
Initial support for meson
Mostly copy and paste from linuxmint/xreader
Signed-off-by: Oz Tiram <[email protected]>
Diffstat (limited to 'data/meson.build')
-rw-r--r-- | data/meson.build | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 00000000..ea61da21 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,55 @@ +subdir('icons') + +data_dir = include_directories('.') + +install_data( + 'atril.1', + install_dir : join_paths(get_option('prefix'), get_option('mandir'), 'man1') +) + +service_conf = configuration_data() +service_conf.set('libexecdir', join_paths(prefix, libexecdir)) + +configure_file( + input: 'org.mate.atril.Daemon.service.in', + output: 'org.mate.atril.Daemon.service', + configuration: service_conf, + install_dir: join_paths(datadir, 'dbus-1', 'services') +) + +schema_file = install_data( + 'org.mate.Atril.gschema.xml', + install_dir: join_paths(datadir, 'glib-2.0', 'schemas') +) + +desktop_conf = configuration_data() +desktop_conf.set('ATRIL_MIME_TYPES', atril_mime_types) + +desktop = configure_file( + input: 'atril.desktop.in.in', + output: 'atril.desktop.in', + configuration: desktop_conf, +) + +custom_target( + 'desktop', + input: desktop, + output: 'atril.desktop', + command: [intltool_merge, '-d', '-u', po_dir, '@INPUT@', '@OUTPUT@'], + install: true, + install_dir: desktopdir, +) + +appdata = custom_target( + 'appdata', + input: 'atril.appdata.xml.in', + output: 'atril.appdata.xml', + command: [intltool_merge, '-x', '-u', po_dir, '@INPUT@', '@OUTPUT@'], + install: true, + install_dir: join_paths(datadir, 'metainfo'), +) + +install_data( + 'hand-open.png', + install_dir: join_paths(prefix, datadir, meson.project_name()) +) |