2019-07-10 01:51:41 +02:00
|
|
|
gnome = import('gnome')
|
|
|
|
|
|
|
|
metainfodir = join_paths(datadir, 'metainfo')
|
|
|
|
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('version', meson.project_version())
|
2019-07-17 13:10:36 +02:00
|
|
|
conf.set('url', 'https://github.com/tuhiproject/tuhi')
|
2019-07-10 01:51:41 +02:00
|
|
|
conf.set('version_date', version_date)
|
|
|
|
|
|
|
|
about_dialog = configure_file(input: 'ui/AboutDialog.ui.in',
|
|
|
|
output: 'AboutDialog.ui',
|
|
|
|
configuration: conf)
|
|
|
|
|
2019-08-16 14:57:34 +02:00
|
|
|
install_data('org.freedesktop.Tuhi.svg', install_dir: icondir_scalable)
|
|
|
|
install_data('org.freedesktop.Tuhi-symbolic.svg', install_dir: icondir_symbolic)
|
2019-07-10 01:51:41 +02:00
|
|
|
|
2019-07-17 13:10:36 +02:00
|
|
|
i18n.merge_file(input: 'org.freedesktop.Tuhi.desktop.in',
|
|
|
|
output: 'org.freedesktop.Tuhi.desktop',
|
2019-07-10 01:51:41 +02:00
|
|
|
type: 'desktop',
|
|
|
|
po_dir: podir,
|
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir)
|
|
|
|
|
2019-07-17 13:10:36 +02:00
|
|
|
appdata = configure_file(input: 'org.freedesktop.Tuhi.appdata.xml.in.in',
|
|
|
|
output: 'org.freedesktop.Tuhi.appdata.xml.in',
|
2019-07-10 01:51:41 +02:00
|
|
|
configuration: conf)
|
|
|
|
|
|
|
|
i18n.merge_file(input: appdata,
|
2019-07-17 13:10:36 +02:00
|
|
|
output: 'org.freedesktop.Tuhi.appdata.xml',
|
2019-07-10 01:51:41 +02:00
|
|
|
type: 'xml',
|
|
|
|
po_dir: podir,
|
|
|
|
install: true,
|
|
|
|
install_dir: metainfodir)
|
|
|
|
|
|
|
|
|
2019-07-17 13:10:36 +02:00
|
|
|
gnome.compile_resources('tuhi', 'tuhi.gresource.xml',
|
2019-07-10 01:51:41 +02:00
|
|
|
source_dir: '.',
|
|
|
|
dependencies: [about_dialog],
|
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: pkgdatadir)
|