tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 5 | import("//build/config/ui.gni") |
qsr | fb5251d1 | 2015-01-21 15:57:22 | [diff] [blame] | 6 | import("//testing/test.gni") |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 7 | |
| 8 | component("aura") { |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 9 | public = [ |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 10 | "client/aura_constants.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 11 | "client/capture_client.h", |
sky | 946eb20 | 2016-10-21 18:25:33 | [diff] [blame] | 12 | "client/capture_client_observer.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 13 | "client/capture_delegate.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 14 | "client/cursor_client.h", |
satorux | d3ce5e2 | 2015-02-18 01:01:42 | [diff] [blame] | 15 | "client/cursor_client_observer.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 16 | "client/default_capture_client.h", |
sky | 92d41b2 | 2016-10-27 20:10:16 | [diff] [blame] | 17 | "client/drag_drop_client.h", |
Daichi Hirono | e66b415 | 2017-08-01 06:20:33 | [diff] [blame] | 18 | "client/drag_drop_client_observer.h", |
sky | d509d73 | 2016-10-28 22:15:46 | [diff] [blame] | 19 | "client/drag_drop_delegate.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 20 | "client/event_client.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 21 | "client/focus_change_observer.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 22 | "client/focus_client.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 23 | "client/screen_position_client.h", |
sky | f8fcebc | 2016-10-27 18:34:13 | [diff] [blame] | 24 | "client/transient_window_client.h", |
| 25 | "client/transient_window_client_observer.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 26 | "client/visibility_client.h", |
sky | 28f20d6 | 2016-10-20 23:21:59 | [diff] [blame] | 27 | "client/window_parenting_client.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 28 | "client/window_stacking_client.h", |
Thiago Farina | 627fba95 | 2017-05-24 21:15:26 | [diff] [blame] | 29 | "client/window_types.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 30 | "env.h", |
sadrul | 9d8d13f5 | 2016-06-20 22:33:05 | [diff] [blame] | 31 | "env_input_state_controller.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 32 | "env_observer.h", |
sadrul | 8a7826a | 2017-05-15 17:04:39 | [diff] [blame] | 33 | "event_injector.h", |
Valery Arkhangorodsky | 6bfe620 | 2017-09-01 06:08:11 | [diff] [blame] | 34 | "hit_test_data_provider_aura.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 35 | "input_state_lookup.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 36 | "input_state_lookup_win.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 37 | "layout_manager.h", |
danakj | c7afae5 | 2017-06-20 21:12:41 | [diff] [blame] | 38 | "local/layer_tree_frame_sink_local.h", |
penghuang | 4c5a2a2c | 2017-05-10 04:41:55 | [diff] [blame] | 39 | "local/window_port_local.h", |
sky | e865fb9 | 2016-10-31 20:37:34 | [diff] [blame] | 40 | "mus/capture_synchronizer.h", |
| 41 | "mus/capture_synchronizer_delegate.h", |
sadrul | 2397b79 | 2017-01-05 21:17:55 | [diff] [blame] | 42 | "mus/client_surface_embedder.h", |
sky | d509d73 | 2016-10-28 22:15:46 | [diff] [blame] | 43 | "mus/drag_drop_controller_host.h", |
sky | d509d73 | 2016-10-28 22:15:46 | [diff] [blame] | 44 | "mus/drag_drop_controller_mus.h", |
perkj | df1ac6b | 2016-11-08 15:37:25 | [diff] [blame] | 45 | "mus/focus_synchronizer.h", |
| 46 | "mus/focus_synchronizer_delegate.h", |
riajiang | 86a7cee | 2017-03-31 00:56:25 | [diff] [blame] | 47 | "mus/focus_synchronizer_observer.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 48 | "mus/in_flight_change.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 49 | "mus/input_method_mus.h", |
mfomitchev | 49fb258 | 2016-11-08 23:13:12 | [diff] [blame] | 50 | "mus/mus_context_factory.h", |
sky | c19010b | 2017-02-01 19:17:27 | [diff] [blame] | 51 | "mus/mus_mouse_location_updater.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 52 | "mus/mus_types.h", |
sky | 8f993309 | 2016-10-27 23:23:53 | [diff] [blame] | 53 | "mus/os_exchange_data_provider_mus.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 54 | "mus/property_converter.h", |
sky | 91b6ee4 | 2016-11-22 02:53:53 | [diff] [blame] | 55 | "mus/property_utils.h", |
Elliot Glaysher | aa763fa | 2017-09-15 19:02:14 | [diff] [blame] | 56 | "mus/system_input_injector_mus.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 57 | "mus/text_input_client_impl.h", |
derat | 94887a2 | 2017-01-20 18:17:25 | [diff] [blame] | 58 | "mus/user_activity_forwarder.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 59 | "mus/window_manager_delegate.h", |
| 60 | "mus/window_mus.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 61 | "mus/window_port_mus.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 62 | "mus/window_tree_client.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 63 | "mus/window_tree_client_delegate.h", |
| 64 | "mus/window_tree_client_observer.h", |
erg | a77d1f27 | 2017-01-20 23:42:29 | [diff] [blame] | 65 | "mus/window_tree_client_test_observer.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 66 | "mus/window_tree_host_mus.h", |
sky | 253a1515 | 2016-10-28 02:36:23 | [diff] [blame] | 67 | "mus/window_tree_host_mus_delegate.h", |
sky | a5a9fddc | 2017-04-19 18:59:29 | [diff] [blame] | 68 | "mus/window_tree_host_mus_init_params.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 69 | "scoped_window_targeter.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 70 | "window.h", |
satorux | d3ce5e2 | 2015-02-18 01:01:42 | [diff] [blame] | 71 | "window_delegate.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 72 | "window_event_dispatcher.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 73 | "window_observer.h", |
sky | 631094cd | 2016-10-26 18:21:01 | [diff] [blame] | 74 | "window_port.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 75 | "window_targeter.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 76 | "window_tracker.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 77 | "window_tree_host.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 78 | "window_tree_host_observer.h", |
sievers | 1b4ef1a6 | 2015-10-16 20:44:36 | [diff] [blame] | 79 | "window_tree_host_platform.h", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 80 | ] |
| 81 | sources = [ |
Thiago Farina | f1e4c0c | 2017-06-12 18:44:52 | [diff] [blame] | 82 | "aura_export.h", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 83 | "client/aura_constants.cc", |
| 84 | "client/capture_client.cc", |
| 85 | "client/cursor_client.cc", |
| 86 | "client/cursor_client_observer.cc", |
| 87 | "client/default_capture_client.cc", |
| 88 | "client/drag_drop_client.cc", |
| 89 | "client/drag_drop_delegate.cc", |
| 90 | "client/event_client.cc", |
| 91 | "client/focus_change_observer.cc", |
| 92 | "client/focus_client.cc", |
| 93 | "client/screen_position_client.cc", |
| 94 | "client/transient_window_client.cc", |
| 95 | "client/visibility_client.cc", |
| 96 | "client/window_parenting_client.cc", |
| 97 | "client/window_stacking_client.cc", |
| 98 | "env.cc", |
| 99 | "env_input_state_controller.cc", |
| 100 | "event_injector.cc", |
Valery Arkhangorodsky | 6bfe620 | 2017-09-01 06:08:11 | [diff] [blame] | 101 | "hit_test_data_provider_aura.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 102 | "input_state_lookup.cc", |
| 103 | "input_state_lookup_win.cc", |
| 104 | "layout_manager.cc", |
danakj | c7afae5 | 2017-06-20 21:12:41 | [diff] [blame] | 105 | "local/layer_tree_frame_sink_local.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 106 | "local/window_port_local.cc", |
| 107 | "mus/capture_synchronizer.cc", |
| 108 | "mus/client_surface_embedder.cc", |
| 109 | "mus/drag_drop_controller_mus.cc", |
| 110 | "mus/focus_synchronizer.cc", |
| 111 | "mus/in_flight_change.cc", |
| 112 | "mus/input_method_mus.cc", |
| 113 | "mus/mus_context_factory.cc", |
| 114 | "mus/mus_mouse_location_updater.cc", |
| 115 | "mus/os_exchange_data_provider_mus.cc", |
| 116 | "mus/property_converter.cc", |
| 117 | "mus/property_utils.cc", |
Elliot Glaysher | aa763fa | 2017-09-15 19:02:14 | [diff] [blame] | 118 | "mus/system_input_injector_mus.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 119 | "mus/text_input_client_impl.cc", |
| 120 | "mus/user_activity_forwarder.cc", |
| 121 | "mus/window_manager_delegate.cc", |
| 122 | "mus/window_port_mus.cc", |
| 123 | "mus/window_tree_client.cc", |
| 124 | "mus/window_tree_client_delegate.cc", |
| 125 | "mus/window_tree_host_mus.cc", |
| 126 | "mus/window_tree_host_mus_init_params.cc", |
| 127 | "scoped_window_targeter.cc", |
| 128 | "window.cc", |
| 129 | "window_event_dispatcher.cc", |
| 130 | "window_observer.cc", |
| 131 | "window_port.cc", |
| 132 | "window_port_for_shutdown.cc", |
| 133 | "window_port_for_shutdown.h", |
| 134 | "window_targeter.cc", |
| 135 | "window_tree_host.cc", |
| 136 | "window_tree_host_platform.cc", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 137 | ] |
| 138 | |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 139 | defines = [ "AURA_IMPLEMENTATION" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 140 | |
| 141 | deps = [ |
| 142 | "//base", |
| 143 | "//base:i18n", |
| 144 | "//base/third_party/dynamic_annotations", |
mfomitchev | 3364e66ec | 2016-11-02 23:23:36 | [diff] [blame] | 145 | "//cc", |
penghuang | 23063f0 | 2017-03-15 15:04:07 | [diff] [blame] | 146 | "//components/discardable_memory/client", |
| 147 | "//components/discardable_memory/public/interfaces", |
samans | 1bcf030 | 2017-05-26 15:04:14 | [diff] [blame] | 148 | "//components/viz/client", |
kylechar | a090016 | 2017-07-14 17:35:25 | [diff] [blame] | 149 | "//components/viz/host", |
danakj | c391f33 | 2017-07-12 20:45:52 | [diff] [blame] | 150 | "//components/viz/service", |
mfomitchev | 3364e66ec | 2016-11-02 23:23:36 | [diff] [blame] | 151 | "//gpu/ipc/client", |
| 152 | "//mojo/public/cpp/system", |
sky | 8f993309 | 2016-10-27 23:23:53 | [diff] [blame] | 153 | "//net", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 154 | "//services/service_manager/public/cpp", |
mfomitchev | 49fb258 | 2016-11-08 23:13:12 | [diff] [blame] | 155 | "//services/ui/public/cpp", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 156 | "//services/ui/public/interfaces", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 157 | "//skia", |
| 158 | "//ui/base", |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 159 | "//ui/base/ime", |
oshima | 5245e49 | 2016-04-26 16:47:55 | [diff] [blame] | 160 | "//ui/display", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 161 | "//ui/events", |
brettw | 44a5cf8 | 2015-04-08 19:48:22 | [diff] [blame] | 162 | "//ui/events:events_base", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 163 | "//ui/events/platform", |
| 164 | "//ui/gfx", |
| 165 | "//ui/gfx/geometry", |
mfomitchev | 49fb258 | 2016-11-08 23:13:12 | [diff] [blame] | 166 | "//ui/gl", |
brettw | b7f2c30 | 2015-12-08 01:29:21 | [diff] [blame] | 167 | "//ui/platform_window", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 168 | "//ui/platform_window/mojo", |
| 169 | "//ui/platform_window/stub", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 170 | ] |
| 171 | |
kylechar | e901571 | 2016-12-21 18:42:01 | [diff] [blame] | 172 | public_deps = [ |
| 173 | "//ui/compositor", |
| 174 | ] |
| 175 | |
sky | b6f207c | 2016-12-14 02:45:29 | [diff] [blame] | 176 | data_deps = [ |
| 177 | "//services/ui", |
| 178 | ] |
| 179 | |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 180 | if (use_x11) { |
| 181 | configs += [ |
| 182 | "//build/config/linux:x11", |
| 183 | "//build/config/linux:xrandr", |
| 184 | ] |
jamesr | 4359db7 | 2015-01-21 12:40:00 | [diff] [blame] | 185 | deps += [ |
| 186 | "//ui/events:events_base", |
| 187 | "//ui/events/devices", |
kylechar | ad71487 | 2016-04-20 16:09:52 | [diff] [blame] | 188 | "//ui/events/devices/x11", |
jamesr | 4359db7 | 2015-01-21 12:40:00 | [diff] [blame] | 189 | "//ui/events/platform/x11", |
| 190 | "//ui/gfx/x", |
| 191 | ] |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 192 | sources += [ "window_tree_host_x11.cc" ] |
| 193 | public += [ "window_tree_host_x11.h" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 194 | } |
| 195 | |
| 196 | if (is_win) { |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 197 | sources -= [ "input_state_lookup.cc" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 198 | |
brettw@chromium.org | b2f44d1 | 2014-06-10 17:48:03 | [diff] [blame] | 199 | deps += [ |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 200 | "//ipc", |
brettw | a22cb3b | 2015-04-30 20:23:12 | [diff] [blame] | 201 | "//ui/platform_window/win", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 202 | ] |
| 203 | } |
| 204 | |
sievers | 1b4ef1a6 | 2015-10-16 20:44:36 | [diff] [blame] | 205 | if (use_ozone) { |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 206 | deps += [ "//ui/ozone" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 207 | } |
sievers | 1b4ef1a6 | 2015-10-16 20:44:36 | [diff] [blame] | 208 | |
| 209 | if (is_android) { |
| 210 | deps += [ |
| 211 | "//ui/platform_window/android", |
| 212 | "//ui/platform_window/android:platform_window_java", |
| 213 | ] |
| 214 | } |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 215 | } |
| 216 | |
brettw | 3871f52 | 2016-07-14 22:08:34 | [diff] [blame] | 217 | static_library("test_support") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 218 | testonly = true |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 219 | sources = [ |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 220 | "test/aura_mus_test_base.cc", |
| 221 | "test/aura_mus_test_base.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 222 | "test/aura_test_base.cc", |
| 223 | "test/aura_test_base.h", |
| 224 | "test/aura_test_helper.cc", |
| 225 | "test/aura_test_helper.h", |
| 226 | "test/aura_test_utils.cc", |
| 227 | "test/aura_test_utils.h", |
| 228 | "test/env_test_helper.h", |
tapted@chromium.org | 73c9fd0 | 2014-07-28 01:48:52 | [diff] [blame] | 229 | "test/event_generator_delegate_aura.cc", |
| 230 | "test/event_generator_delegate_aura.h", |
erg | a77d1f27 | 2017-01-20 23:42:29 | [diff] [blame] | 231 | "test/mus/change_completion_waiter.cc", |
| 232 | "test/mus/change_completion_waiter.h", |
sky | d43cd7f2 | 2017-03-07 19:59:48 | [diff] [blame] | 233 | "test/mus/input_method_mus_test_api.h", |
sky | 6861271 | 2017-04-27 04:45:04 | [diff] [blame] | 234 | "test/mus/test_window_manager_client.cc", |
| 235 | "test/mus/test_window_manager_client.h", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 236 | "test/mus/test_window_tree.cc", |
| 237 | "test/mus/test_window_tree.h", |
| 238 | "test/mus/test_window_tree_client_setup.cc", |
| 239 | "test/mus/test_window_tree_client_setup.h", |
| 240 | "test/mus/window_tree_client_private.cc", |
| 241 | "test/mus/window_tree_client_private.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 242 | "test/test_cursor_client.cc", |
| 243 | "test/test_cursor_client.h", |
| 244 | "test/test_focus_client.cc", |
| 245 | "test/test_focus_client.h", |
| 246 | "test/test_screen.cc", |
| 247 | "test/test_screen.h", |
satorux | d3ce5e2 | 2015-02-18 01:01:42 | [diff] [blame] | 248 | "test/test_window_delegate.cc", |
| 249 | "test/test_window_delegate.h", |
sky | 28f20d6 | 2016-10-20 23:21:59 | [diff] [blame] | 250 | "test/test_window_parenting_client.cc", |
| 251 | "test/test_window_parenting_client.h", |
riajiang | 762dcf0 | 2017-03-03 06:23:55 | [diff] [blame] | 252 | "test/test_window_targeter.cc", |
| 253 | "test/test_window_targeter.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 254 | "test/test_windows.cc", |
| 255 | "test/test_windows.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 256 | "test/ui_controls_factory_aura.h", |
mfomitchev@chromium.org | 6b614747 | 2014-06-27 17:37:07 | [diff] [blame] | 257 | "test/window_event_dispatcher_test_api.cc", |
| 258 | "test/window_event_dispatcher_test_api.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 259 | "test/window_test_api.cc", |
| 260 | "test/window_test_api.h", |
| 261 | ] |
| 262 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 263 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 264 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 265 | |
Brett Wilson | 0380637c | 2014-09-19 21:24:40 | [diff] [blame] | 266 | public_deps = [ |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 267 | ":aura", |
Brett Wilson | 0380637c | 2014-09-19 21:24:40 | [diff] [blame] | 268 | ] |
| 269 | deps = [ |
fdoray | 1c906dc | 2017-05-02 20:15:43 | [diff] [blame] | 270 | "//base/test:test_support", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 271 | "//services/ui/public/interfaces", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 272 | "//skia", |
| 273 | "//testing/gtest", |
tfarina@chromium.org | e54a1f52 | 2014-07-22 23:26:48 | [diff] [blame] | 274 | "//ui/base:test_support", |
tfarina | eb2372f | 2015-03-10 16:07:59 | [diff] [blame] | 275 | "//ui/base/ime", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 276 | "//ui/compositor:test_support", |
oshima | 5245e49 | 2016-04-26 16:47:55 | [diff] [blame] | 277 | "//ui/display", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 278 | "//ui/events", |
| 279 | "//ui/events:events_base", |
tfarina@chromium.org | e54a1f52 | 2014-07-22 23:26:48 | [diff] [blame] | 280 | "//ui/events:test_support", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 281 | "//ui/gfx", |
| 282 | "//ui/gfx/geometry", |
brettw | a78fded | 2014-09-07 00:27:41 | [diff] [blame] | 283 | "//ui/wm", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 284 | ] |
| 285 | |
| 286 | if (is_win) { |
tfarina | ca865e8 | 2014-12-19 00:50:44 | [diff] [blame] | 287 | sources += [ "test/ui_controls_factory_aurawin.cc" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 288 | } |
| 289 | |
vchigrin | f06c5c8 | 2014-12-17 01:23:39 | [diff] [blame] | 290 | if (use_x11) { |
tfarina | ca865e8 | 2014-12-19 00:50:44 | [diff] [blame] | 291 | sources += [ |
| 292 | "test/ui_controls_factory_aurax11.cc", |
| 293 | "test/x11_event_sender.cc", |
| 294 | "test/x11_event_sender.h", |
| 295 | ] |
| 296 | |
vchigrin | f06c5c8 | 2014-12-17 01:23:39 | [diff] [blame] | 297 | deps += [ "//ui/gfx/x" ] |
| 298 | } |
spang | 6f171ac | 2015-02-04 18:46:22 | [diff] [blame] | 299 | |
| 300 | if (use_ozone) { |
| 301 | sources += [ "test/ui_controls_factory_ozone.cc" ] |
| 302 | } |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 303 | } |
| 304 | |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 305 | executable("demo") { |
| 306 | output_name = "aura_demo" |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 307 | testonly = true |
| 308 | |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 309 | sources = [ |
| 310 | "demo/demo_main.cc", |
| 311 | ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 312 | |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 313 | deps = [ |
| 314 | ":aura", |
| 315 | ":test_support", |
| 316 | "//base", |
| 317 | "//base:i18n", |
thomasanderson | 84fa8b0 | 2017-05-18 23:38:47 | [diff] [blame] | 318 | "//build/config:exe_and_shlib_deps", |
brucedawson | f9f7d629 | 2016-04-27 19:11:07 | [diff] [blame] | 319 | "//build/win:default_exe_manifest", |
kylechar | cb5882d | 2017-06-05 13:41:34 | [diff] [blame] | 320 | "//components/viz/host", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 321 | "//skia", |
| 322 | "//third_party/icu", |
| 323 | "//ui/base", |
| 324 | "//ui/compositor", |
| 325 | "//ui/compositor:test_support", |
robliao | 18e220e8 | 2016-04-19 16:47:12 | [diff] [blame] | 326 | "//ui/display", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 327 | "//ui/events", |
| 328 | "//ui/gfx", |
| 329 | "//ui/gfx/geometry", |
kylechar | 5b9dec1 | 2016-05-16 15:40:57 | [diff] [blame] | 330 | "//ui/gl/init", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 331 | ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 332 | |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 333 | if (use_x11) { |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 334 | deps += [ "//ui/gfx/x" ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 335 | } |
| 336 | } |
| 337 | |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 338 | test("aura_unittests") { |
| 339 | sources = [ |
| 340 | "gestures/gesture_recognizer_unittest.cc", |
Valery Arkhangorodsky | 6bfe620 | 2017-09-01 06:08:11 | [diff] [blame] | 341 | "hit_test_data_provider_aura_unittest.cc", |
Daichi Hirono | e66b415 | 2017-08-01 06:20:33 | [diff] [blame] | 342 | "mus/drag_drop_controller_mus_unittest.cc", |
Scott Violet | 1a445c21 | 2017-09-18 18:51:37 | [diff] [blame^] | 343 | "mus/focus_synchronizer_unittest.cc", |
sky | 7a0d90d | 2017-02-13 19:22:26 | [diff] [blame] | 344 | "mus/input_method_mus_unittest.cc", |
sky | 8f993309 | 2016-10-27 23:23:53 | [diff] [blame] | 345 | "mus/os_exchange_data_provider_mus_unittest.cc", |
msw | 4f5e732 | 2016-11-17 07:00:36 | [diff] [blame] | 346 | "mus/property_converter_unittest.cc", |
derat | 94887a2 | 2017-01-20 18:17:25 | [diff] [blame] | 347 | "mus/user_activity_forwarder_unittest.cc", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 348 | "mus/window_tree_client_unittest.cc", |
erg | 63a80c3 | 2016-11-22 21:52:54 | [diff] [blame] | 349 | "mus/window_tree_host_mus_unittest.cc", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 350 | "test/run_all_unittests.cc", |
| 351 | "window_event_dispatcher_unittest.cc", |
| 352 | "window_targeter_unittest.cc", |
jbauman | e94bb78 | 2016-08-22 19:46:51 | [diff] [blame] | 353 | "window_tree_host_unittest.cc", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 354 | "window_unittest.cc", |
| 355 | ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 356 | |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 357 | deps = [ |
| 358 | ":test_support", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 359 | "//base/test:test_support", |
Valery Arkhangorodsky | 513ac8fd | 2017-08-02 23:09:23 | [diff] [blame] | 360 | "//components/viz/client", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 361 | "//mojo/common", |
derat | 94887a2 | 2017-01-20 18:17:25 | [diff] [blame] | 362 | "//mojo/edk/system", |
sky | 8f993309 | 2016-10-27 23:23:53 | [diff] [blame] | 363 | "//net", |
derat | 94887a2 | 2017-01-20 18:17:25 | [diff] [blame] | 364 | "//services/ui/common:task_runner_test_base", |
msw | 28625cc | 2016-11-12 02:12:33 | [diff] [blame] | 365 | "//services/ui/public/cpp", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 366 | "//skia", |
| 367 | "//testing/gtest", |
| 368 | "//ui/base:test_support", |
| 369 | "//ui/compositor:test_support", |
oshima | 5245e49 | 2016-04-26 16:47:55 | [diff] [blame] | 370 | "//ui/display:test_support", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 371 | "//ui/events:gesture_detection", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 372 | "//ui/events:test_support", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 373 | "//ui/gfx", |
| 374 | "//ui/gfx/geometry", |
brettw | b7f2c30 | 2015-12-08 01:29:21 | [diff] [blame] | 375 | "//ui/gl:test_support", |
Scott Violet | 1a445c21 | 2017-09-18 18:51:37 | [diff] [blame^] | 376 | "//ui/wm", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 377 | ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 378 | |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 379 | if (is_linux) { |
| 380 | deps += [ "//third_party/mesa" ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 381 | } |
dpranke | a21b31b0 | 2015-07-24 21:42:00 | [diff] [blame] | 382 | |
sievers | 1b4ef1a6 | 2015-10-16 20:44:36 | [diff] [blame] | 383 | data_deps = [ |
| 384 | "//third_party/mesa:osmesa", |
| 385 | ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 386 | } |