From dd008510d432bde83ec037b9f2e72fca7263f929 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 20 Apr 2023 20:42:47 +0800 Subject: [PATCH] Remove wsi_common_src and dep_displayinfo from "none" wsi build --- src/wsi/meson.build | 5 +++-- src/wsi/none/wsi_edid_none.cpp | 10 ++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 src/wsi/none/wsi_edid_none.cpp diff --git a/src/wsi/meson.build b/src/wsi/meson.build index f0a4ba29bc91..46de99119fc7 100644 --- a/src/wsi/meson.build +++ b/src/wsi/meson.build @@ -20,6 +20,7 @@ wsi_glfw_src = [ wsi_none_src = [ 'none/wsi_monitor_none.cpp', 'none/wsi_window_none.cpp', + 'none/wsi_edid_none.cpp', ] if dxvk_wsi == 'win32' @@ -32,8 +33,8 @@ elif dxvk_wsi == 'glfw' wsi_src = wsi_common_src + wsi_glfw_src wsi_deps = [ dep_displayinfo, lib_glfw ] elif dxvk_wsi == 'none' - wsi_src = wsi_common_src + wsi_none_src - wsi_deps = [ dep_displayinfo ] + wsi_src = wsi_none_src + wsi_deps = [] else error('Unknown wsi') endif diff --git a/src/wsi/none/wsi_edid_none.cpp b/src/wsi/none/wsi_edid_none.cpp new file mode 100644 index 000000000000..db9ebb227922 --- /dev/null +++ b/src/wsi/none/wsi_edid_none.cpp @@ -0,0 +1,10 @@ +#include "wsi_edid.h" + +namespace dxvk::wsi { + + std::optional parseColorimetryInfo( + const WsiEdidData& edidData) { + return std::nullopt; + } + +}