dependencies: Add libhandy as a subproject
Allows for building on systems that don't ship libhandy or a version of libhandy that's new enough.
This commit is contained in:
parent
554b390cd4
commit
d11e609543
|
@ -29,7 +29,7 @@ libmalcontent_ui_public_deps = [
|
|||
dependency('glib-2.0', version: '>= 2.54.2'),
|
||||
dependency('gobject-2.0', version: '>= 2.54'),
|
||||
dependency('gtk+-3.0', version: '>= 3.24'),
|
||||
dependency('libhandy-1', version: '>= 1.1.0'),
|
||||
libhandy_dep,
|
||||
libmalcontent_dep,
|
||||
]
|
||||
libmalcontent_ui_private_deps = [
|
||||
|
|
|
@ -28,8 +28,8 @@ malcontent_control = executable('malcontent-control',
|
|||
dependency('glib-2.0', version: '>= 2.54.2'),
|
||||
dependency('gobject-2.0', version: '>= 2.54'),
|
||||
dependency('gtk+-3.0'),
|
||||
dependency('libhandy-1', version: '>=1.1.0'),
|
||||
dependency('polkit-gobject-1'),
|
||||
libhandy_dep,
|
||||
libmalcontent_dep,
|
||||
libmalcontent_ui_dep,
|
||||
],
|
||||
|
|
|
@ -134,6 +134,7 @@ else
|
|||
'Malcontent-' + libmalcontent_api_version + '.typelib']
|
||||
endif
|
||||
if get_option('ui').enabled()
|
||||
libhandy_dep = dependency('libhandy-1', version: '>=1.1.0', fallback: ['libhandy', 'libhandy_dep'])
|
||||
subdir('libmalcontent-ui')
|
||||
endif
|
||||
subdir('malcontent-client')
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
[wrap-git]
|
||||
directory = libhandy
|
||||
url = https://gitlab.gnome.org/GNOME/libhandy.git
|
||||
revision = origin/main
|
Loading…
Reference in New Issue