build: Add dependency on libdisplay-info
Add a dependency on https://gitlab.freedesktop.org/emersion/libdisplay-info/ to be used for parsing EDIDs for KHR_display HDR support. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35461>
This commit is contained in:
+11
@@ -1558,6 +1558,17 @@ if dep_zlib.found()
|
|||||||
pre_args += '-DHAVE_ZLIB'
|
pre_args += '-DHAVE_ZLIB'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if host_machine.system() == 'windows'
|
||||||
|
dep_display_info = null_dep
|
||||||
|
else
|
||||||
|
dep_display_info = dependency('libdisplay-info', version : '>= 0.1.1',
|
||||||
|
fallback : ['libdisplay-info', 'di_dep'],
|
||||||
|
required : get_option('display-info'))
|
||||||
|
if dep_display_info.found()
|
||||||
|
pre_args += '-DHAVE_LIBDISPLAY_INFO'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
dep_zstd = dependency('libzstd', required : get_option('zstd'))
|
dep_zstd = dependency('libzstd', required : get_option('zstd'))
|
||||||
if dep_zstd.found()
|
if dep_zstd.found()
|
||||||
pre_args += '-DHAVE_ZSTD'
|
pre_args += '-DHAVE_ZSTD'
|
||||||
|
|||||||
@@ -609,6 +609,12 @@ option(
|
|||||||
description : 'Use ZLIB to build driver. Default: enabled'
|
description : 'Use ZLIB to build driver. Default: enabled'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
option(
|
||||||
|
'display-info',
|
||||||
|
type : 'feature',
|
||||||
|
description : 'Use libdisplay-info to build driver.'
|
||||||
|
)
|
||||||
|
|
||||||
option(
|
option(
|
||||||
'sse2',
|
'sse2',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
[wrap-git]
|
||||||
|
directory = libdisplay-info
|
||||||
|
|
||||||
|
url = https://gitlab.freedesktop.org/emersion/libdisplay-info
|
||||||
|
revision = 92b031749c0fe84ef5cdf895067b84a829920e25
|
||||||
Reference in New Issue
Block a user