build: add meson subproject with libdazzle.wrap

When building on older systems such as RHEL 7, it can be convenient
to have access to libdazzle directly.

This also has to work around a problem that RHEL 7 does not support
the version of git that Meson requires for [wrap-git] by using a
specific release.
This commit is contained in:
Christian Hergert
2020-03-02 11:35:14 -08:00
parent c61756b9b7
commit d6fef722a0
2 changed files with 7 additions and 2 deletions

View File

@ -57,7 +57,7 @@ gio_unix_dep = dependency('gio-unix-2.0', version: glib_req_version)
if get_option('enable_gtk')
gtk_dep = dependency('gtk+-3.0', version: gtk_req_version)
dazzle_dep = dependency('libdazzle-1.0', version: dazzle_req_version)
dazzle_dep = dependency('libdazzle-1.0', version: dazzle_req_version, fallback: ['libdazzle', 'libdazzle_dep'])
endif
polkit_dep = dependency('polkit-gobject-1', version: '>= 0.114', required: false)
@ -108,7 +108,7 @@ if has_use_clockid and has_clockid
config_h.set10('HAVE_PERF_CLOCKID', true)
endif
add_global_arguments([
add_project_arguments([
'-I' + meson.build_root(), # config.h
], language: 'c')