mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 00:06:24 +01:00
Check for 'z' library before fallbacking to subproject
This commit is contained in:
parent
11847b831e
commit
2ded434b40
21
meson.build
21
meson.build
@ -1752,25 +1752,24 @@ 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'])
|
||||||
if cc.get_id() != 'msvc'
|
|
||||||
libz_dep = dependency('zlib', fallback : ['zlib', 'zlib_dep'])
|
|
||||||
else
|
|
||||||
# MSVC: Don't use the bundled ZLib sources until we are sure that we can't
|
|
||||||
# find the ZLib .lib
|
|
||||||
libz_dep = dependency('zlib', required : false)
|
|
||||||
|
|
||||||
# MSVC: Search for the ZLib .lib, which corresponds to the results of
|
# Don't use the bundled ZLib sources until we are sure that we can't find it on
|
||||||
# of using ZLib's win32/makefile.msc.
|
# the system
|
||||||
|
libz_dep = dependency('zlib', required : false)
|
||||||
if not libz_dep.found()
|
if not libz_dep.found()
|
||||||
|
if cc.get_id() != 'msvc'
|
||||||
|
libz_dep = cc.find_library('z', required : false)
|
||||||
|
else
|
||||||
libz_dep = cc.find_library('zlib1', required : false)
|
libz_dep = cc.find_library('zlib1', required : false)
|
||||||
if not libz_dep.found()
|
if not libz_dep.found()
|
||||||
libz_dep = cc.find_library('zlib', required : false)
|
libz_dep = cc.find_library('zlib', required : false)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
if not libz_dep.found()
|
if not libz_dep.found()
|
||||||
libz_dep = subproject('zlib').get_variable('zlib_dep')
|
libz_dep = subproject('zlib').get_variable('zlib_dep')
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# First check in libc, fallback to libintl, and as last chance build
|
# First check in libc, fallback to libintl, and as last chance build
|
||||||
# proxy-libintl subproject.
|
# proxy-libintl subproject.
|
||||||
|
Loading…
Reference in New Issue
Block a user