Add a sub{module,project} for handy for those who don't have it
This commit is contained in:
parent
2fe4d2076b
commit
5027e039fc
3 changed files with 29 additions and 5 deletions
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "subprojects/libhandy"]
|
||||||
|
path = subprojects/libhandy
|
||||||
|
url = https://source.puri.sm/Librem5/libhandy.git
|
||||||
30
meson.build
30
meson.build
|
|
@ -67,7 +67,7 @@ iso_codes = dependency('iso-codes')
|
||||||
javascriptcoregtk = dependency('javascriptcoregtk-4.0', version: '>=' + target_webkit)
|
javascriptcoregtk = dependency('javascriptcoregtk-4.0', version: '>=' + target_webkit)
|
||||||
json_glib = dependency('json-glib-1.0', version: '>= 1.0')
|
json_glib = dependency('json-glib-1.0', version: '>= 1.0')
|
||||||
libcanberra = dependency('libcanberra', version: '>= 0.28')
|
libcanberra = dependency('libcanberra', version: '>= 0.28')
|
||||||
libhandy = dependency('libhandy-0.0', version: '>= 0.0.9')
|
libhandy = dependency('libhandy-0.0', version: '>= 0.0.9', required: false)
|
||||||
libmath = cc.find_library('m')
|
libmath = cc.find_library('m')
|
||||||
libsecret = dependency('libsecret-1', version: '>= 0.11')
|
libsecret = dependency('libsecret-1', version: '>= 0.11')
|
||||||
libsoup = dependency('libsoup-2.4', version: '>= 2.48')
|
libsoup = dependency('libsoup-2.4', version: '>= 2.48')
|
||||||
|
|
@ -87,11 +87,31 @@ if not enchant.found()
|
||||||
enchant = dependency('enchant', version: '>=1.6')
|
enchant = dependency('enchant', version: '>=1.6')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Handy isn't necessarily packaged by distros, so fall back to a
|
||||||
|
# subproject until it is.
|
||||||
|
if not libhandy.found()
|
||||||
|
libhandy_subproj = subproject(
|
||||||
|
'libhandy',
|
||||||
|
default_options: [
|
||||||
|
'examples=false',
|
||||||
|
'glade_catalog=disabled',
|
||||||
|
'tests=false',
|
||||||
|
]
|
||||||
|
)
|
||||||
|
|
||||||
|
libhandy = declare_dependency(
|
||||||
|
dependencies: [
|
||||||
|
libhandy_subproj.get_variable('libhandy_dep'),
|
||||||
|
libhandy_subproj.get_variable('libhandy_vapi'),
|
||||||
|
]
|
||||||
|
)
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Libunwind system dependencies above ensures appropriate versions,
|
||||||
|
# but this declared depencency is what we actually build against so we
|
||||||
|
# can include the custom VAPI correctly. We need to add unwind_lib to
|
||||||
|
# the search path for these so Flatpak builds can find the C lib.
|
||||||
if libunwind_dep.found()
|
if libunwind_dep.found()
|
||||||
# Libunwind system dependencies above ensures appropriate versions,
|
|
||||||
# but this declared depencency is what we actually build against so we
|
|
||||||
# can include the custom VAPI correctly. We need to add unwind_lib to
|
|
||||||
# the search path for these so Flatpak builds can find the C lib.
|
|
||||||
unwind_lib = libunwind_dep.get_pkgconfig_variable('libdir')
|
unwind_lib = libunwind_dep.get_pkgconfig_variable('libdir')
|
||||||
libunwind = declare_dependency(
|
libunwind = declare_dependency(
|
||||||
dependencies: [
|
dependencies: [
|
||||||
|
|
|
||||||
1
subprojects/libhandy
Submodule
1
subprojects/libhandy
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b6ff87ea07c69171aa7c743d8c2740527b525271
|
||||||
Loading…
Add table
Add a link
Reference in a new issue