2019-07-10 01:51:41 +02:00
|
|
|
gnome = import('gnome')
|
|
|
|
|
|
|
|
desktopdir = join_paths(datadir, 'applications')
|
|
|
|
icondir = join_paths(datadir, 'icons', 'hicolor', 'scalable', 'apps')
|
|
|
|
metainfodir = join_paths(datadir, 'metainfo')
|
|
|
|
|
|
|
|
conf = configuration_data()
|
|
|
|
conf.set('version', meson.project_version())
|
2019-07-15 06:17:23 +02:00
|
|
|
conf.set('url', 'https://github.com/tuhiproject/tuhigui')
|
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)
|
|
|
|
|
|
|
|
install_data('org.freedesktop.TuhiGui.svg', install_dir: icondir)
|
|
|
|
|
|
|
|
i18n.merge_file(input: 'org.freedesktop.TuhiGui.desktop.in',
|
|
|
|
output: 'org.freedesktop.TuhiGui.desktop',
|
|
|
|
type: 'desktop',
|
|
|
|
po_dir: podir,
|
|
|
|
install: true,
|
|
|
|
install_dir: desktopdir)
|
|
|
|
|
|
|
|
appdata = configure_file(input: 'org.freedesktop.TuhiGui.appdata.xml.in.in',
|
|
|
|
output: 'org.freedesktop.TuhiGui.appdata.xml.in',
|
|
|
|
configuration: conf)
|
|
|
|
|
|
|
|
i18n.merge_file(input: appdata,
|
|
|
|
output: 'org.freedesktop.TuhiGui.appdata.xml',
|
|
|
|
type: 'xml',
|
|
|
|
po_dir: podir,
|
|
|
|
install: true,
|
|
|
|
install_dir: metainfodir)
|
|
|
|
|
|
|
|
|
|
|
|
gnome.compile_resources('tuhigui', 'tuhigui.gresource.xml',
|
|
|
|
source_dir: '.',
|
|
|
|
dependencies: [about_dialog],
|
|
|
|
gresource_bundle: true,
|
|
|
|
install: true,
|
|
|
|
install_dir: pkgdatadir)
|