GN: Fix util target when X11 not enabled
Include ozone util sources when both X11 and Wayland are not enabled.
Bug: angleproject:6902
Change-Id: I88664bf2da7ce9094ed3168b765d4043aa5e16e5
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3583984
Auto-Submit: Antonio Caggiano <antonio.caggiano@collabora.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/util/BUILD.gn b/util/BUILD.gn
index 0da1dc8..a1581ca 100644
--- a/util/BUILD.gn
+++ b/util/BUILD.gn
@@ -65,7 +65,7 @@
"fuchsia/ScenicWindow.cpp",
"fuchsia/ScenicWindow.h",
]
-} else if (use_ozone && !angle_use_x11) {
+} else if (use_ozone && !(angle_use_x11 || angle_use_wayland)) {
# Use X11 impl by default otherwise switch to fake Ozone impl that does not
# seem to do anything real.
# TODO(msisov): probably, we need to have a proper support for different