From 3612cb879cad9dde124e86d254886beb6a069691 Mon Sep 17 00:00:00 2001 From: Michal Klocek Date: Mon, 2 Aug 2021 11:39:17 +0200 Subject: Fix missing xkbcommon include on openSUSE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We include xkb_key_code_converter.h when compiling ozone_platform_qt.cpp Fixes: QTBUG-95473 Change-Id: I45f8dbdd3bcd7934d376256ec08560a8327a8e70 Reviewed-by: Christophe Giboudeaux Reviewed-by: Michael BrĂ¼ning (cherry picked from commit 0d79f35e48fddc3c3c294c0da2555130cbcd084a) Reviewed-by: Qt Cherry-pick Bot --- src/core/ozone/BUILD.gn | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/core/ozone/BUILD.gn b/src/core/ozone/BUILD.gn index 016d0a71d..48d68902f 100644 --- a/src/core/ozone/BUILD.gn +++ b/src/core/ozone/BUILD.gn @@ -2,6 +2,13 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import("//ui/base/ui_features.gni") +import("//build/config/linux/pkg_config.gni") + +if (use_xkbcommon) { + pkg_config("xkbcommon") { + packages = [ "xkbcommon" ] + } +} source_set("qt") { sources = [ @@ -21,6 +28,7 @@ source_set("qt") { defines = [ "OZONE_IMPLEMENTATION" ] if (use_xkbcommon) { + configs += [ ":xkbcommon" ] libs = [ "xkbfile" ] } } -- cgit v1.2.3