mirror of https://gitlab.freedesktop.org/mesa/mesa
meson.build: Disable zlib as per -Dzlib option
Disable use of zlib as per -Dzlib option. Default value is true. To disable zlib usage, specify -Dzlib=false Reviewed-by: Charmaine Lee <charmainel@vmware.com> Reviewed-by: Zack Rusin <zackr@vmware.com Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7806>
This commit is contained in:
parent
12fa2d2ac2
commit
4c285e7080
|
@ -1371,9 +1371,12 @@ else
|
||||||
dep_clock = cc.find_library('rt')
|
dep_clock = cc.find_library('rt')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TODO: some of these may be conditional
|
dep_zlib = dependency('zlib', version : '>= 1.2.3',
|
||||||
dep_zlib = dependency('zlib', version : '>= 1.2.3', fallback : ['zlib', 'zlib_dep'])
|
fallback : ['zlib', 'zlib_dep'],
|
||||||
pre_args += '-DHAVE_ZLIB'
|
required : get_option('zlib'))
|
||||||
|
if dep_zlib.found()
|
||||||
|
pre_args += '-DHAVE_ZLIB'
|
||||||
|
endif
|
||||||
|
|
||||||
_zstd = get_option('zstd')
|
_zstd = get_option('zstd')
|
||||||
if _zstd == 'true'
|
if _zstd == 'true'
|
||||||
|
|
|
@ -441,6 +441,12 @@ option(
|
||||||
value : 'auto',
|
value : 'auto',
|
||||||
description : 'Use ZSTD instead of ZLIB in some cases.'
|
description : 'Use ZSTD instead of ZLIB in some cases.'
|
||||||
)
|
)
|
||||||
|
option(
|
||||||
|
'zlib',
|
||||||
|
type : 'feature',
|
||||||
|
value : 'enabled',
|
||||||
|
description : 'Use ZLIB to build driver. Default: enabled'
|
||||||
|
)
|
||||||
option(
|
option(
|
||||||
'sse2',
|
'sse2',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
|
|
Loading…
Reference in New Issue