build: Add libhandy-0.0 dependency
This is needed to access widgets to make the shell adaptive. This also adds libhandy as a submodule and will make use of that version if it isn't available otherwise.
This commit is contained in:
parent
459fb91a84
commit
af58f4c6ed
3 changed files with 20 additions and 0 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -1,3 +1,6 @@
|
|||
[submodule "subprojects/gvc"]
|
||||
path = subprojects/gvc
|
||||
url = https://gitlab.gnome.org/GNOME/libgnome-volume-control.git
|
||||
[submodule "subprojects/libhandy"]
|
||||
path = subprojects/libhandy
|
||||
url = https://source.puri.sm/Librem5/libhandy.git
|
||||
|
|
16
meson.build
16
meson.build
|
@ -96,6 +96,21 @@ libgvc = subproject(
|
|||
)
|
||||
libgvc_dep = libgvc.get_variable('libgvc_dep')
|
||||
|
||||
libhandy_dep = dependency('libhandy-0.0', version: '>= 0.0.4', required: false)
|
||||
if not libhandy_dep.found()
|
||||
libhandy = subproject(
|
||||
'libhandy',
|
||||
default_options: [
|
||||
'examples=false',
|
||||
'glade_catalog=false',
|
||||
'introspection=false',
|
||||
'tests=false',
|
||||
'vapi=false',
|
||||
]
|
||||
)
|
||||
libhandy_dep = libhandy.get_variable('libhandy_dep')
|
||||
endif
|
||||
|
||||
goa_req_version = '>= 3.25.3'
|
||||
pulse_req_version = '>= 2.0'
|
||||
|
||||
|
@ -122,6 +137,7 @@ common_deps = [
|
|||
gio_dep,
|
||||
glib_dep,
|
||||
gsettings_desktop_dep,
|
||||
libhandy_dep,
|
||||
dependency('gio-unix-2.0'),
|
||||
dependency('gthread-2.0'),
|
||||
dependency('gtk+-3.0', version: '>= 3.22.20')
|
||||
|
|
1
subprojects/libhandy
Submodule
1
subprojects/libhandy
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 5004b4204a11f021c8e75c7dce034e19c29b987c
|
Loading…
Add table
Add a link
Reference in a new issue