| 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). |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 "x11/hotplug_event_handler_x11.h", | 42 "x11/hotplug_event_handler_x11.h", |
| 43 "x11/keyboard_code_conversion_x11.cc", | 43 "x11/keyboard_code_conversion_x11.cc", |
| 44 "x11/keyboard_code_conversion_x11.h", | 44 "x11/keyboard_code_conversion_x11.h", |
| 45 "x11/keysym_to_unicode.cc", | 45 "x11/keysym_to_unicode.cc", |
| 46 "x11/keysym_to_unicode.h", | 46 "x11/keysym_to_unicode.h", |
| 47 "x11/platform_event_utils_x11.cc", | 47 "x11/platform_event_utils_x11.cc", |
| 48 "x11/touch_factory_x11.cc", | 48 "x11/touch_factory_x11.cc", |
| 49 "x11/touch_factory_x11.h", | 49 "x11/touch_factory_x11.h", |
| 50 "x11/x11_event_source.cc", | 50 "x11/x11_event_source.cc", |
| 51 "x11/x11_event_source.h", | 51 "x11/x11_event_source.h", |
| 52 "x11/x11_event_source_glib.cc", | |
| 53 "x11/x11_event_source_libevent.cc", | 52 "x11/x11_event_source_libevent.cc", |
| 54 ] | 53 ] |
| 55 | 54 |
| 56 if (is_linux) { | |
| 57 sources -= [ "x11/x11_event_source_libevent.cc" ] | |
| 58 | |
| 59 configs += [ "//build/config/linux:glib" ] | |
| 60 } else { | |
| 61 sources -= [ "x11/x11_event_source_glib.cc" ] | |
| 62 } | |
| 63 | |
| 64 deps += [ "//ui/gfx/x" ] | 55 deps += [ "//ui/gfx/x" ] |
| 65 } else { | 56 } else { |
| 66 sources += [ | 57 sources += [ |
| 67 "platform_event_source_stub.cc", | 58 "platform_event_source_stub.cc", |
| 68 "platform_event_stub.cc", | 59 "platform_event_stub.cc", |
| 69 ] | 60 ] |
| 70 } | 61 } |
| 71 } | 62 } |
| OLD | NEW |