Commit 97646c2a authored by Felix Häcker's avatar Felix Häcker

Make sure that resources are included in binary

parent 52f171c4
......@@ -20,6 +20,7 @@ resources.gresource
tags.*
wip
src/config.rs
src/static_resource.rs
/_build/
/target/
**/*.rs.bk
......
......@@ -52,6 +52,20 @@ if appstream_util.found()
endif
# Gschema file #
install_data('de.haeckerfelix.Shortwave.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0/schemas')
)
# Validate gschema file #
compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()]
)
endif
# DBUS service
service_conf = configuration_data()
service_conf.set('appid', app_id)
......@@ -64,15 +78,10 @@ configure_file(
)
# Gschema file #
install_data('de.haeckerfelix.Shortwave.gschema.xml',
install_dir: join_paths(datadir, 'glib-2.0/schemas')
# Resources
app_resources = gnome.compile_resources(
'de.haeckerfelix.Shortwave',
'de.haeckerfelix.Shortwave.gresource.xml',
gresource_bundle: true,
source_dir: meson.current_build_dir()
)
# Validate gschema file #
compile_schemas = find_program('glib-compile-schemas', required: false)
if compile_schemas.found()
test('Validate schema file', compile_schemas,
args: ['--strict', '--dry-run', meson.current_source_dir()]
)
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment