build: Pull in libhandy as a submodule until 1.2.1 is packaged
This commit is contained in:
parent
a5d6ec03e5
commit
11882a1055
6 changed files with 67 additions and 2 deletions
22
meson.build
22
meson.build
|
|
@ -89,7 +89,7 @@ icu_uc = dependency('icu-uc', version: '>=60')
|
|||
iso_codes = dependency('iso-codes')
|
||||
javascriptcoregtk = dependency('javascriptcoregtk-4.0', version: '>=' + target_webkit)
|
||||
json_glib = dependency('json-glib-1.0', version: '>= 1.0')
|
||||
libhandy = dependency('libhandy-1', version: '>= 1.2.1')
|
||||
libhandy = dependency('libhandy-1', version: '>= 1.2.1', required: false)
|
||||
libmath = cc.find_library('m')
|
||||
libpeas = dependency('libpeas-1.0', version: '>= 1.24.0')
|
||||
libpeas_gtk = dependency('libpeas-gtk-1.0', version: '>= 1.24.0')
|
||||
|
|
@ -138,6 +138,26 @@ libstemmer = declare_dependency(
|
|||
],
|
||||
)
|
||||
|
||||
# Required until libhandy 1.2.1 is GA
|
||||
libhandy_vapi = ''
|
||||
if not libhandy.found()
|
||||
libhandy_project = subproject(
|
||||
'libhandy',
|
||||
default_options: [
|
||||
'examples=false',
|
||||
'package_subdir=geary',
|
||||
'tests=false',
|
||||
]
|
||||
)
|
||||
libhandy = declare_dependency(
|
||||
dependencies: [
|
||||
libhandy_project.get_variable('libhandy_dep'),
|
||||
libhandy_project.get_variable('libhandy_vapi')
|
||||
]
|
||||
)
|
||||
libhandy_vapi = meson.build_root() / 'subprojects' / 'libhandy' / 'src'
|
||||
endif
|
||||
|
||||
# Optional dependencies
|
||||
appstream_util = find_program('appstream-util', required: false)
|
||||
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue