| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
| 6 import("//build/config/linux/pkg_config.gni") |
| 6 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 7 | 8 |
| 9 # Optional system libraries. |
| 10 use_xkbcommon = use_ozone |
| 11 |
| 12 if (use_xkbcommon) { |
| 13 pkg_config("xkbcommon") { |
| 14 packages = [ "xkbcommon" ] |
| 15 } |
| 16 } |
| 17 |
| 8 component("events_ozone") { | 18 component("events_ozone") { |
| 9 sources = [ | 19 sources = [ |
| 10 "chromeos/cursor_controller.cc", | 20 "chromeos/cursor_controller.cc", |
| 11 "chromeos/cursor_controller.h", | 21 "chromeos/cursor_controller.h", |
| 12 "device/device_event.cc", | 22 "device/device_event.cc", |
| 13 "device/device_event.h", | 23 "device/device_event.h", |
| 14 "device/device_event_observer.h", | 24 "device/device_event_observer.h", |
| 15 "device/device_manager.cc", | 25 "device/device_manager.cc", |
| 16 "device/device_manager.h", | 26 "device/device_manager.h", |
| 17 "device/device_manager_manual.cc", | 27 "device/device_manager_manual.cc", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 31 if (!use_udev) { | 41 if (!use_udev) { |
| 32 sources -= [ | 42 sources -= [ |
| 33 "device/udev/device_manager_udev.cc", | 43 "device/udev/device_manager_udev.cc", |
| 34 "device/udev/device_manager_udev.h", | 44 "device/udev/device_manager_udev.h", |
| 35 ] | 45 ] |
| 36 } | 46 } |
| 37 | 47 |
| 38 if (use_ozone_evdev && use_udev) { | 48 if (use_ozone_evdev && use_udev) { |
| 39 deps += [ "//device/udev_linux" ] | 49 deps += [ "//device/udev_linux" ] |
| 40 } | 50 } |
| 51 |
| 52 if (use_xkbcommon) { |
| 53 configs += [ ":xkbcommon" ] |
| 54 |
| 55 defines += [ "USE_XKBCOMMON" ] |
| 56 } |
| 41 } | 57 } |
| 42 | 58 |
| 43 config("evdev") { | 59 config("evdev") { |
| 44 defines = [ "USE_EVDEV" ] | 60 defines = [ "USE_EVDEV" ] |
| 45 } | 61 } |
| 46 | 62 |
| 47 config("evdev_gestures") { | 63 config("evdev_gestures") { |
| 48 defines = [ "USE_EVDEV_GESTURES" ] | 64 defines = [ "USE_EVDEV_GESTURES" ] |
| 49 } | 65 } |
| 50 | 66 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 ] | 118 ] |
| 103 | 119 |
| 104 public_configs += [ ":evdev_gestures" ] | 120 public_configs += [ ":evdev_gestures" ] |
| 105 | 121 |
| 106 configs += [ | 122 configs += [ |
| 107 "//build/config/linux:libevdev-cros", | 123 "//build/config/linux:libevdev-cros", |
| 108 "//build/config/linux:libgestures", | 124 "//build/config/linux:libgestures", |
| 109 ] | 125 ] |
| 110 } | 126 } |
| 111 } | 127 } |
| OLD | NEW |