| 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/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 | 6 |
| 7 component("platform") { | 7 component("platform") { |
| 8 sources = [ | 8 sources = [ |
| 9 # Allow this target to include events_export.h without depending on the | 9 # Allow this target to include events_export.h without depending on the |
| 10 # events target (which would be circular). | 10 # events target (which would be circular). |
| 11 "../events_export.h", | 11 "../events_export.h", |
| 12 "platform_event_builder.cc", | |
| 13 "platform_event_builder.h", | |
| 14 "platform_event_dispatcher.h", | 12 "platform_event_dispatcher.h", |
| 15 "platform_event_observer.h", | 13 "platform_event_observer.h", |
| 16 "platform_event_source.cc", | 14 "platform_event_source.cc", |
| 17 "platform_event_source.h", | 15 "platform_event_source.h", |
| 16 "platform_event_source_stub.cc", |
| 18 "platform_event_types.h", | 17 "platform_event_types.h", |
| 19 "scoped_event_dispatcher.cc", | 18 "scoped_event_dispatcher.cc", |
| 20 "scoped_event_dispatcher.h", | 19 "scoped_event_dispatcher.h", |
| 21 ] | 20 ] |
| 22 | 21 |
| 23 defines = [ "EVENTS_IMPLEMENTATION" ] | 22 defines = [ "EVENTS_IMPLEMENTATION" ] |
| 24 | 23 |
| 25 deps = [ | 24 deps = [ |
| 26 "//base", | 25 "//base", |
| 27 | |
| 28 # TODO(erg): Figure out what to do with this dependency later. Maybe get to | |
| 29 # the point where we can remove it before we commit this. | |
| 30 "//ui/events", | |
| 31 ] | 26 ] |
| 32 | 27 |
| 33 if (use_x11) { | 28 if (use_x11) { |
| 34 configs += [ "//build/config/linux:x11" ] | 29 sources -= [ "platform_event_source_stub.cc" ] |
| 35 | |
| 36 sources += [ | |
| 37 "x11/device_data_manager_x11.cc", | |
| 38 "x11/device_data_manager_x11.h", | |
| 39 "x11/device_list_cache_x.cc", | |
| 40 "x11/device_list_cache_x.h", | |
| 41 "x11/hotplug_event_handler_x11.cc", | |
| 42 "x11/hotplug_event_handler_x11.h", | |
| 43 "x11/keyboard_code_conversion_x11.cc", | |
| 44 "x11/keyboard_code_conversion_x11.h", | |
| 45 "x11/keysym_to_unicode.cc", | |
| 46 "x11/keysym_to_unicode.h", | |
| 47 "x11/platform_event_utils_x11.cc", | |
| 48 "x11/touch_factory_x11.cc", | |
| 49 "x11/touch_factory_x11.h", | |
| 50 "x11/x11_event_source.cc", | |
| 51 "x11/x11_event_source.h", | |
| 52 "x11/x11_event_source_libevent.cc", | |
| 53 ] | |
| 54 | |
| 55 deps += [ | |
| 56 "//ui/events:dom4_keycode_converter", | |
| 57 "//ui/gfx/x", | |
| 58 ] | |
| 59 } else { | |
| 60 sources += [ | |
| 61 "platform_event_source_stub.cc", | |
| 62 "platform_event_stub.cc", | |
| 63 ] | |
| 64 } | 30 } |
| 65 } | 31 } |
| OLD | NEW |