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
|
|
@ -27,6 +27,10 @@ else
|
|||
message('Building in release mode')
|
||||
endif
|
||||
|
||||
if gtk4_x11.found()
|
||||
cargo_options += [ '--features', 'x11' ]
|
||||
endif
|
||||
|
||||
if get_option('disable-glycin-sandbox')
|
||||
cargo_options += [ '--features', 'disable-glycin-sandbox' ]
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue