diff options
| author | Joshua Ashton <joshua@froggi.es> | 2022-11-25 06:37:19 +0000 |
|---|---|---|
| committer | Marge Bot <marge-bot@fdo.invalid> | 2025-08-05 08:50:05 +0000 |
| commit | 2c870bbe20ccaed9d8c85bb3144075025d3c9a01 (patch) | |
| tree | aae4b4a6f69a5f702d5e9d2bcbcab4a473bad17c | |
| parent | 1ed78dd7ec4add7c62e26e6200910d0d3b3e300f (diff) | |
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>
| -rw-r--r-- | meson.build | 11 | ||||
| -rw-r--r-- | meson.options | 6 | ||||
| -rw-r--r-- | subprojects/libdisplay-info.wrap | 5 |
3 files changed, 22 insertions, 0 deletions
diff --git a/meson.build b/meson.build index c454547b07a..811c4910897 100644 --- a/meson.build +++ b/meson.build @@ -1558,6 +1558,17 @@ if dep_zlib.found() pre_args += '-DHAVE_ZLIB' 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')) if dep_zstd.found() pre_args += '-DHAVE_ZSTD' diff --git a/meson.options b/meson.options index 51a644ad310..8a0c9d6b9dc 100644 --- a/meson.options +++ b/meson.options @@ -610,6 +610,12 @@ option( ) option( + 'display-info', + type : 'feature', + description : 'Use libdisplay-info to build driver.' +) + +option( 'sse2', type : 'boolean', value : true, diff --git a/subprojects/libdisplay-info.wrap b/subprojects/libdisplay-info.wrap new file mode 100644 index 00000000000..cf3cf1e6529 --- /dev/null +++ b/subprojects/libdisplay-info.wrap @@ -0,0 +1,5 @@ +[wrap-git] +directory = libdisplay-info + +url = https://gitlab.freedesktop.org/emersion/libdisplay-info +revision = 92b031749c0fe84ef5cdf895067b84a829920e25 |