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