mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-31 12:53:07 +02:00
Merge branch 'zlib-forcefallback' into 'master'
meson: Use subproject zlib if "wrap_mode=forcefallback" was specified See merge request GNOME/glib!1959
This commit is contained in:
commit
48322e878b
12
meson.build
12
meson.build
@ -2004,9 +2004,15 @@ endif
|
|||||||
libm = cc.find_library('m', required : false)
|
libm = cc.find_library('m', required : false)
|
||||||
libffi_dep = dependency('libffi', version : '>= 3.0.0', fallback : ['libffi', 'ffi_dep'])
|
libffi_dep = dependency('libffi', version : '>= 3.0.0', fallback : ['libffi', 'ffi_dep'])
|
||||||
|
|
||||||
# Don't use the bundled ZLib sources until we are sure that we can't find it on
|
if get_option('wrap_mode') == 'forcefallback'
|
||||||
# the system
|
# Respects "wrap_mode=forcefallback" option
|
||||||
libz_dep = dependency('zlib', required : false)
|
libz_dep = subproject('zlib').get_variable('zlib_dep')
|
||||||
|
else
|
||||||
|
# Don't use the bundled ZLib sources until we are sure that we can't find it on
|
||||||
|
# the system
|
||||||
|
libz_dep = dependency('zlib', required : false)
|
||||||
|
endif
|
||||||
|
|
||||||
if not libz_dep.found()
|
if not libz_dep.found()
|
||||||
if cc.get_id() != 'msvc' and cc.get_id() != 'clang-cl'
|
if cc.get_id() != 'msvc' and cc.get_id() != 'clang-cl'
|
||||||
libz_dep = cc.find_library('z', required : false)
|
libz_dep = cc.find_library('z', required : false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user