34 lines
903 B
Meson
34 lines
903 B
Meson
i18n = import('i18n')
|
|
|
|
desktop_file = i18n.merge_file(
|
|
input: 'mcg.desktop',
|
|
output: 'mcg.desktop',
|
|
type: 'desktop',
|
|
po_dir: '../po',
|
|
install: true,
|
|
install_dir: join_paths(get_option('datadir'), 'applications')
|
|
)
|
|
|
|
desktop_utils = find_program('desktop-file-validate', required: false)
|
|
if desktop_utils.found()
|
|
test('Validate desktop file', desktop_utils,
|
|
args: [desktop_file]
|
|
)
|
|
endif
|
|
|
|
gnome = import('gnome')
|
|
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
|
|
|
|
gnome.compile_resources('mcg',
|
|
'xyz.suruatoel.mcg.gresource.xml',
|
|
gresource_bundle: true,
|
|
install: true,
|
|
install_dir: pkgdatadir,
|
|
)
|
|
|
|
install_data('xyz.suruatoel.mcg.gschema.xml',
|
|
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
|
|
)
|
|
gnome.compile_schemas(depend_files: files('xyz.suruatoel.mcg.gschema.xml'))
|
|
|
|
subdir('icons')
|