mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
clapper: meson: Add additional check for gdbus-codegen
Check at meson level if "gdbus-codegen" is available and otherwise exit cleanly, possibly building without MPRIS feature instead of failing.
This commit is contained in:
@@ -26,6 +26,14 @@ foreach dep : feature_deps
|
|||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
|
gdbus_codegen = find_program('gdbus-codegen', required: false)
|
||||||
|
if not gdbus_codegen.found()
|
||||||
|
if feature_option.enabled()
|
||||||
|
error('@0@ feature was enabled, but program gdbus-codegen was not found'.format(feature_name))
|
||||||
|
endif
|
||||||
|
subdir_done()
|
||||||
|
endif
|
||||||
|
|
||||||
clapper_mpris_gdbus = gnome.gdbus_codegen('clapper-mpris-gdbus',
|
clapper_mpris_gdbus = gnome.gdbus_codegen('clapper-mpris-gdbus',
|
||||||
sources: 'clapper-mpris-gdbus.xml',
|
sources: 'clapper-mpris-gdbus.xml',
|
||||||
interface_prefix: 'org.mpris.',
|
interface_prefix: 'org.mpris.',
|
||||||
|
Reference in New Issue
Block a user