meson: Make X11 support an optional feature
Closes #255 Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/326>
This commit is contained in:
parent
8c817a3ec6
commit
b44412fac6
4 changed files with 16 additions and 3 deletions
|
|
@ -14,6 +14,9 @@ dependency('gweather4', version: '>=4.0.0')
|
|||
# Required by glycin crate
|
||||
dependency('lcms2', version: '>=2.12.0')
|
||||
|
||||
# Optional dependencies
|
||||
gtk4_x11 = dependency('gtk4-x11', required: get_option('x11'))
|
||||
|
||||
cargo = find_program('cargo', required: true)
|
||||
glib_compile_schemas = find_program('glib-compile-schemas', required: true)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue