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 53 54 55 56 57 58 59
|
gnome = import('gnome')
# Glade UI files
gresources = gnome.compile_resources('resource', 'gresource.xml', source_dir: '.')
# Desktop file
desktop_config = configuration_data()
desktop_config.set('VERSION', meson.project_version())
desktop_file_configured = configure_file(
input: 'gtkterm.desktop.in',
output: 'gtkterm.desktop',
configuration: desktop_config,
install_dir: join_paths(
datadir,
'applications',
)
)
desktop_file_validate = find_program('desktop-file-validate', required: false)
if desktop_file_validate.found()
test(
'desktop file test',
desktop_file_validate,
args: [
desktop_file_configured
]
)
endif
# Icon
install_data('gtkterm_256x256.png',
install_dir: join_paths(datadir, 'icons', 'hicolor', '256x256', 'apps'),
rename : 'gtkterm.png'
)
install_data('gtkterm_128x128.png',
install_dir: join_paths(datadir, 'icons', 'hicolor', '128x128', 'apps'),
rename : 'gtkterm.png'
)
install_data('gtkterm_64x64.png',
install_dir: join_paths(datadir, 'icons', 'hicolor', '64x64', 'apps'),
rename : 'gtkterm.png'
)
install_data('gtkterm_48x48.png',
install_dir: join_paths(datadir, 'icons', 'hicolor', '48x48', 'apps'),
rename : 'gtkterm.png'
)
install_data('gtkterm_48x48.png',
install_dir: join_paths(datadir, 'icons', 'hicolor', '48x48', 'apps'),
rename : 'gtkterm.png'
)
# Manpage
install_man('gtkterm.1')
|