mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
This causes meson to automatically build the clapper gsettings schemas and set GSETTINGS_SCHEMA_DIR to the correct location within the devenv. This means that can now be ran without needing to install it somewhere using: meson devenv -C <builddir> clapper exit More devenv overrides should be investigated (such as automatically adopting the correct directory for translated locales etc.) Signed-off-by: Florian "sp1rit" <sp1rit@disroot.org>
51 lines
1.1 KiB
Meson
51 lines
1.1 KiB
Meson
if not ['linux'].contains(host_machine.system())
|
|
subdir_done()
|
|
endif
|
|
|
|
appstream_util = find_program('appstream-util', required: false)
|
|
if appstream_util.found()
|
|
test('Validate appstream file',
|
|
appstream_util,
|
|
args: [
|
|
'validate-relax',
|
|
'--nonet',
|
|
join_paths(meson.current_source_dir(), 'metainfo', 'com.github.rafostar.Clapper.metainfo.xml'),
|
|
]
|
|
)
|
|
endif
|
|
|
|
glib_compile_schemas = find_program('glib-compile-schemas', required: false)
|
|
if glib_compile_schemas.found()
|
|
test('Validate gsettings schemas',
|
|
glib_compile_schemas,
|
|
args: [
|
|
'--strict',
|
|
'--dry-run',
|
|
join_paths(meson.current_source_dir(), 'glib-2.0', 'schemas'),
|
|
]
|
|
)
|
|
endif
|
|
|
|
install_subdir('icons',
|
|
install_dir: join_paths(prefix, datadir)
|
|
)
|
|
install_subdir('mime',
|
|
install_dir: join_paths(prefix, datadir)
|
|
)
|
|
install_subdir('applications',
|
|
install_dir: join_paths(prefix, datadir)
|
|
)
|
|
install_subdir('metainfo',
|
|
install_dir: join_paths(prefix, datadir)
|
|
)
|
|
|
|
subdir('glib-2.0/schemas')
|
|
subdir('dbus-1')
|
|
|
|
gnome.post_install(
|
|
glib_compile_schemas: true,
|
|
gtk_update_icon_cache: true,
|
|
update_desktop_database: true,
|
|
update_mime_database: true,
|
|
)
|