Update build system and Flatpak manifest

This commit is contained in:
Elias Projahn 2024-06-23 14:59:26 +02:00
parent 1788303bf3
commit b9c874ab8c
26 changed files with 317 additions and 160 deletions

View file

@ -1,9 +1,16 @@
pkgdatadir = join_paths(get_option('prefix'), get_option('datadir'), meson.project_name())
gnome = import('gnome')
conf = configuration_data()
conf.set('PATH_ID', path_id)
gnome.compile_resources('musicus',
'musicus.gresource.xml',
configure_file(
input: '@0@.gresource.xml.in'.format(base_id),
output: '@0@.gresource.xml'.format(app_id),
configuration: conf,
)
gnome.compile_resources(
app_id,
meson.project_build_root() / 'data' / 'res'/ '@0@.gresource.xml'.format(app_id),
gresource_bundle: true,
install: true,
install_dir: pkgdatadir,
install_dir: datadir / meson.project_name(),
)