Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(915)

Unified Diff: ui/events/ozone/BUILD.gn

Issue 751623003: ozone: Add initial build support for xkbcommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix niits Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/linux/system.gyp ('k') | ui/events/ozone/events_ozone.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/BUILD.gn
diff --git a/ui/events/ozone/BUILD.gn b/ui/events/ozone/BUILD.gn
index e623e636ba3d7cbb9a7ae8730190a6f991c3d21b..fd98f6d8732498d9edf48b3c39f821d7be90dc7e 100644
--- a/ui/events/ozone/BUILD.gn
+++ b/ui/events/ozone/BUILD.gn
@@ -3,8 +3,18 @@
# found in the LICENSE file.
import("//build/config/features.gni")
+import("//build/config/linux/pkg_config.gni")
import("//build/config/ui.gni")
+# Optional system libraries.
+use_xkbcommon = use_ozone
+
+if (use_xkbcommon) {
+ pkg_config("xkbcommon") {
+ packages = [ "xkbcommon" ]
+ }
+}
+
component("events_ozone") {
sources = [
"chromeos/cursor_controller.cc",
@@ -38,6 +48,12 @@ component("events_ozone") {
if (use_ozone_evdev && use_udev) {
deps += [ "//device/udev_linux" ]
}
+
+ if (use_xkbcommon) {
+ configs += [ ":xkbcommon" ]
+
+ defines += [ "USE_XKBCOMMON" ]
+ }
}
config("evdev") {
« no previous file with comments | « build/linux/system.gyp ('k') | ui/events/ozone/events_ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698