summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2021-06-04 09:55:49 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2021-10-04 10:20:31 +0200
commit56e88f6732bf51e45810b97acc199d318011beed (patch)
tree2b4dd4466fa39ba4e2072664be9b96d855016e15
parent0bfc8aca7edce0cf4ebc8406ccd257590815ea87 (diff)
downloadqtwebengine-chromium-56e88f6732bf51e45810b97acc199d318011beed.tar.gz
Try to fix finding xkbcommon.h on OpenSUSE
The header is in /usr/include/libxkbcommon/xkbcommon/ so we need the includepath from pkgconfig. Change-Id: I1140cac4687f2c29888051afc6ce56280482a073 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
-rw-r--r--chromium/ui/events/keycodes/BUILD.gn11
1 files changed, 11 insertions, 0 deletions
diff --git a/chromium/ui/events/keycodes/BUILD.gn b/chromium/ui/events/keycodes/BUILD.gn
index 86bbf620ff0..65159056e44 100644
--- a/chromium/ui/events/keycodes/BUILD.gn
+++ b/chromium/ui/events/keycodes/BUILD.gn
@@ -2,11 +2,20 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/linux/pkg_config.gni")
import("//build/config/ozone.gni")
import("//build/config/ui.gni")
import("//ui/base/ui_features.gni")
+if (use_xkbcommon) {
+ pkg_config("xkbcommon") {
+ packages = [ "xkbcommon" ]
+ }
+}
+
source_set("xkb") {
+ configs += [ ":xkbcommon" ]
+
sources = [
"keyboard_code_conversion_xkb.cc",
"keyboard_code_conversion_xkb.h",
@@ -30,6 +39,8 @@ if (use_x11 || ozone_platform_x11) {
component("x11") {
output_name = "keycodes_x11"
+ configs += [ ":xkbcommon" ]
+
sources = [
"keyboard_code_conversion_x.cc",
"keyboard_code_conversion_x.h",