mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
config: Check runtime dependencies at runtime
Both bluetooth and screencast support are based on build checks right now. However in both cases, the dependency is only consumed at runtime via the typelib, so let's actually check for that. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2297>
This commit is contained in:
parent
a8c5d77872
commit
5a9d365f84
3 changed files with 8 additions and 15 deletions
|
|
@ -32,8 +32,6 @@ startup_req = '>= 0.11'
|
|||
ibus_req = '>= 1.5.19'
|
||||
gnome_desktop_req = '>= 3.35.90'
|
||||
|
||||
bt_req = '>= 3.9.0'
|
||||
gst_req = '>= 0.11.92'
|
||||
nm_req = '>= 1.10.4'
|
||||
secret_req = '>= 0.18'
|
||||
|
||||
|
|
@ -93,13 +91,6 @@ x11_dep = dependency('x11')
|
|||
schemas_dep = dependency('gsettings-desktop-schemas', version: schemas_req)
|
||||
gnome_desktop_dep = dependency('gnome-desktop-3.0', version: gnome_desktop_req)
|
||||
|
||||
bt_dep = dependency('gnome-bluetooth-3.0', version: bt_req, required: false)
|
||||
gst_dep = dependency('gstreamer-1.0', version: gst_req, required: false)
|
||||
gst_base_dep = dependency('gstreamer-base-1.0', required: false)
|
||||
pipewire_dep = dependency('libpipewire-0.3', required: false)
|
||||
|
||||
enable_recorder = gst_dep.found() and gst_base_dep.found() and pipewire_dep.found()
|
||||
|
||||
nm_deps = []
|
||||
if get_option('networkmanager')
|
||||
nm_deps += dependency('libnm', version: nm_req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue