diff options
| -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 |