summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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",