1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
icondir = join_paths(get_option('datadir'), 'icons/hicolor')
foreach size: ['scalable', 'symbolic']
install_subdir('icons/hicolor/' + size, install_dir: icondir)
endforeach
resource_files = files('baobab.gresource.xml')
resources = gnome.compile_resources('org.gnome.baobab', resource_files, c_name: 'resources')
install_man ('baobab.1')
desktop_file = i18n.merge_file(
input: 'org.gnome.baobab.desktop.in',
output: 'org.gnome.baobab.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'applications'),
)
appdata_file = i18n.merge_file(
input: 'org.gnome.baobab.metainfo.xml.in',
output: 'org.gnome.baobab.metainfo.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'metainfo'),
)# Validating app data
appstreamcli = find_program('appstreamcli', required: false)
if appstreamcli.found()
test(
'validate-appdata', appstreamcli,
args: [
'validate', '--no-net', '--explain', appdata_file.full_path()
]
)
endif
install_data (
'org.gnome.baobab.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0', 'schemas')
)
service_conf = configuration_data ()
service_conf.set ('bindir', join_paths (get_option('prefix'), get_option('bindir')))
configure_file (
input: 'org.gnome.baobab.service.in',
output: 'org.gnome.baobab.service',
configuration: service_conf,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services')
)
|