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 | |
Dirk Pranke | 9c0fc3b | 2020-08-06 16:01:30 | [diff] [blame^] | 9 | 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", |
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", |
Scott Violet | ec3b3b68 | 2018-08-30 20:06:30 | [diff] [blame] | 38 | "null_window_targeter.h", |
Ella Ge | dd3c80b | 2019-09-25 01:17:57 | [diff] [blame] | 39 | "scoped_enable_unadjusted_mouse_events.h", |
Joe Downing | a8e74ac | 2018-02-26 17:10:24 | [diff] [blame] | 40 | "scoped_keyboard_hook.h", |
Joe Downing | 8cbbc19 | 2018-05-14 17:37:07 | [diff] [blame] | 41 | "scoped_simple_keyboard_hook.h", |
Xiaoqian Dai | 563f020 | 2019-10-04 22:01:10 | [diff] [blame] | 42 | "scoped_window_event_targeting_blocker.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 43 | "scoped_window_targeter.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 44 | "window.h", |
satorux | d3ce5e2 | 2015-02-18 01:01:42 | [diff] [blame] | 45 | "window_delegate.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 46 | "window_event_dispatcher.h", |
Scott Violet | 39c503de | 2018-05-11 04:50:46 | [diff] [blame] | 47 | "window_event_dispatcher_observer.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 48 | "window_observer.h", |
Xiyuan Xia | 40cd41d | 2018-12-18 16:22:43 | [diff] [blame] | 49 | "window_occlusion_change_builder.h", |
Francois Doray | fe694a6 | 2017-11-16 14:47:07 | [diff] [blame] | 50 | "window_occlusion_tracker.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 51 | "window_targeter.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 52 | "window_tracker.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 53 | "window_tree_host.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 54 | "window_tree_host_observer.h", |
sievers | 1b4ef1a6 | 2015-10-16 20:44:36 | [diff] [blame] | 55 | "window_tree_host_platform.h", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 56 | ] |
| 57 | sources = [ |
Thiago Farina | f1e4c0c | 2017-06-12 18:44:52 | [diff] [blame] | 58 | "aura_export.h", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 59 | "client/aura_constants.cc", |
| 60 | "client/capture_client.cc", |
| 61 | "client/cursor_client.cc", |
| 62 | "client/cursor_client_observer.cc", |
| 63 | "client/default_capture_client.cc", |
| 64 | "client/drag_drop_client.cc", |
| 65 | "client/drag_drop_delegate.cc", |
| 66 | "client/event_client.cc", |
| 67 | "client/focus_change_observer.cc", |
| 68 | "client/focus_client.cc", |
| 69 | "client/screen_position_client.cc", |
| 70 | "client/transient_window_client.cc", |
| 71 | "client/visibility_client.cc", |
| 72 | "client/window_parenting_client.cc", |
| 73 | "client/window_stacking_client.cc", |
| 74 | "env.cc", |
| 75 | "env_input_state_controller.cc", |
| 76 | "event_injector.cc", |
| 77 | "input_state_lookup.cc", |
| 78 | "input_state_lookup_win.cc", |
| 79 | "layout_manager.cc", |
David Bienvenu | 554a259 | 2020-02-13 20:20:54 | [diff] [blame] | 80 | "native_window_occlusion_tracker.cc", |
| 81 | "native_window_occlusion_tracker.h", |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 82 | "native_window_occlusion_tracker_win.cc", |
| 83 | "native_window_occlusion_tracker_win.h", |
Scott Violet | ec3b3b68 | 2018-08-30 20:06:30 | [diff] [blame] | 84 | "null_window_targeter.cc", |
Joe Downing | a8e74ac | 2018-02-26 17:10:24 | [diff] [blame] | 85 | "scoped_keyboard_hook.cc", |
Joe Downing | 8cbbc19 | 2018-05-14 17:37:07 | [diff] [blame] | 86 | "scoped_simple_keyboard_hook.cc", |
Xiaoqian Dai | 563f020 | 2019-10-04 22:01:10 | [diff] [blame] | 87 | "scoped_window_event_targeting_blocker.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 88 | "scoped_window_targeter.cc", |
| 89 | "window.cc", |
Ahmed Fakhry | 4222145 | 2018-05-30 01:18:39 | [diff] [blame] | 90 | "window_delegate.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 91 | "window_event_dispatcher.cc", |
| 92 | "window_observer.cc", |
Xiyuan Xia | 40cd41d | 2018-12-18 16:22:43 | [diff] [blame] | 93 | "window_occlusion_change_builder.cc", |
Francois Doray | fe694a6 | 2017-11-16 14:47:07 | [diff] [blame] | 94 | "window_occlusion_tracker.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 95 | "window_targeter.cc", |
Scott Violet | efbcd06 | 2019-04-26 16:52:20 | [diff] [blame] | 96 | "window_tracker.cc", |
sky | 2a454ebd | 2017-05-19 19:26:06 | [diff] [blame] | 97 | "window_tree_host.cc", |
| 98 | "window_tree_host_platform.cc", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 99 | ] |
| 100 | |
Scott Violet | 09203ae | 2019-02-12 20:35:35 | [diff] [blame] | 101 | friend = [ ":*" ] |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 102 | |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 103 | defines = [ "AURA_IMPLEMENTATION" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 104 | |
| 105 | deps = [ |
| 106 | "//base", |
| 107 | "//base:i18n", |
| 108 | "//base/third_party/dynamic_annotations", |
mfomitchev | 3364e66ec | 2016-11-02 23:23:36 | [diff] [blame] | 109 | "//cc", |
danakj | 7b631be | 2018-05-25 19:14:20 | [diff] [blame] | 110 | "//cc/mojo_embedder", |
penghuang | 23063f0 | 2017-03-15 15:04:07 | [diff] [blame] | 111 | "//components/discardable_memory/client", |
Miyoung Shin | 8b0b0f2 | 2019-07-17 04:35:08 | [diff] [blame] | 112 | "//components/discardable_memory/public/mojom", |
samans | 1bcf030 | 2017-05-26 15:04:14 | [diff] [blame] | 113 | "//components/viz/client", |
Chris Blume | 54fcb1d1 | 2018-03-02 18:51:53 | [diff] [blame] | 114 | "//components/viz/common", |
kylechar | a090016 | 2017-07-14 17:35:25 | [diff] [blame] | 115 | "//components/viz/host", |
mfomitchev | 3364e66ec | 2016-11-02 23:23:36 | [diff] [blame] | 116 | "//gpu/ipc/client", |
| 117 | "//mojo/public/cpp/system", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 118 | "//services/service_manager/public/cpp", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 119 | "//skia", |
| 120 | "//ui/base", |
Maksim Sisov | a33072d2 | 2019-01-24 15:44:25 | [diff] [blame] | 121 | "//ui/base/clipboard", |
Henrique Ferreiro | e09c0efd | 2020-05-07 14:29:46 | [diff] [blame] | 122 | "//ui/base/cursor/mojom:cursor_type", |
Michael Spang | 539c6f3 | 2019-04-03 19:08:52 | [diff] [blame] | 123 | "//ui/base/ime/init", |
oshima | 5245e49 | 2016-04-26 16:47:55 | [diff] [blame] | 124 | "//ui/display", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 125 | "//ui/events", |
Joe Downing | 5adea926 | 2018-06-12 01:40:09 | [diff] [blame] | 126 | "//ui/events:dom_keyboard_layout", |
brettw | 44a5cf8 | 2015-04-08 19:48:22 | [diff] [blame] | 127 | "//ui/events:events_base", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 128 | "//ui/events/platform", |
| 129 | "//ui/gfx", |
Henrique Ferreiro | 2e84712 | 2020-06-25 11:03:53 | [diff] [blame] | 130 | "//ui/gfx:gfx_switches", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 131 | "//ui/gfx/geometry", |
mfomitchev | 49fb258 | 2016-11-08 23:13:12 | [diff] [blame] | 132 | "//ui/gl", |
brettw | b7f2c30 | 2015-12-08 01:29:21 | [diff] [blame] | 133 | "//ui/platform_window", |
sky | 25714fe | 2016-10-27 15:21:25 | [diff] [blame] | 134 | "//ui/platform_window/stub", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 135 | ] |
| 136 | |
kylechar | e901571 | 2016-12-21 18:42:01 | [diff] [blame] | 137 | public_deps = [ |
Henrique Ferreiro | b111d60 | 2020-05-21 15:47:51 | [diff] [blame] | 138 | "//ui/base/cursor:cursor_base", |
Henrique Ferreiro | 1748fd1 | 2020-08-04 12:51:46 | [diff] [blame] | 139 | "//ui/base/dragdrop/mojom:mojom_headers", |
Shu Chen | 855e1dc | 2019-03-22 00:27:03 | [diff] [blame] | 140 | "//ui/base/ime", |
kylechar | e901571 | 2016-12-21 18:42:01 | [diff] [blame] | 141 | "//ui/compositor", |
| 142 | ] |
| 143 | |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 144 | if (use_x11) { |
Henrique Ferreiro | 2e84712 | 2020-06-25 11:03:53 | [diff] [blame] | 145 | public_deps += [ "//ui/base/x" ] |
jamesr | 4359db7 | 2015-01-21 12:40:00 | [diff] [blame] | 146 | deps += [ |
jamesr | 4359db7 | 2015-01-21 12:40:00 | [diff] [blame] | 147 | "//ui/events/platform/x11", |
Tom Anderson | b8f1d95 | 2017-12-20 05:49:20 | [diff] [blame] | 148 | "//ui/platform_window/x11", |
jamesr | 4359db7 | 2015-01-21 12:40:00 | [diff] [blame] | 149 | ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 150 | } |
| 151 | |
| 152 | if (is_win) { |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 153 | sources -= [ "input_state_lookup.cc" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 154 | |
brettw@chromium.org | b2f44d1 | 2014-06-10 17:48:03 | [diff] [blame] | 155 | deps += [ |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 156 | "//ipc", |
Henrique Ferreiro | 41a8f46 | 2020-05-21 15:59:15 | [diff] [blame] | 157 | "//ui/base/cursor", |
brettw | a22cb3b | 2015-04-30 20:23:12 | [diff] [blame] | 158 | "//ui/platform_window/win", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 159 | ] |
| 160 | } |
| 161 | |
David Bienvenu | 18a62fe6 | 2019-02-25 19:24:20 | [diff] [blame] | 162 | if (is_win) { |
David Bienvenu | 1f6b18a | 2019-04-18 23:48:34 | [diff] [blame] | 163 | libs = [ |
| 164 | "wtsapi32.lib", |
| 165 | "dwmapi.lib", |
| 166 | ] |
David Bienvenu | 18a62fe6 | 2019-02-25 19:24:20 | [diff] [blame] | 167 | } |
| 168 | |
sievers | 1b4ef1a6 | 2015-10-16 20:44:36 | [diff] [blame] | 169 | if (use_ozone) { |
Scott Violet | fd9a3b68 | 2018-07-24 00:32:45 | [diff] [blame] | 170 | deps += [ "//ui/ozone" ] |
Sergey Ulanov | 9885115 | 2018-08-14 01:49:16 | [diff] [blame] | 171 | public += [ "screen_ozone.h" ] |
| 172 | sources += [ "screen_ozone.cc" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 173 | } |
Sadrul Habib Chowdhury | d9738a3 | 2019-09-26 09:51:34 | [diff] [blame] | 174 | |
| 175 | configs += [ "//build/config/compiler:noshadowing" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 176 | } |
| 177 | |
Dirk Pranke | 9c0fc3b | 2020-08-06 16:01:30 | [diff] [blame^] | 178 | static_library("test_support") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 179 | testonly = true |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 180 | sources = [ |
| 181 | "test/aura_test_base.cc", |
| 182 | "test/aura_test_base.h", |
| 183 | "test/aura_test_helper.cc", |
| 184 | "test/aura_test_helper.h", |
| 185 | "test/aura_test_utils.cc", |
| 186 | "test/aura_test_utils.h", |
Peter Kasting | 854590d | 2018-11-17 04:10:48 | [diff] [blame] | 187 | "test/default_event_generator_delegate.cc", |
| 188 | "test/default_event_generator_delegate.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 189 | "test/env_test_helper.h", |
tapted@chromium.org | 73c9fd0 | 2014-07-28 01:48:52 | [diff] [blame] | 190 | "test/event_generator_delegate_aura.cc", |
| 191 | "test/event_generator_delegate_aura.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 192 | "test/test_cursor_client.cc", |
| 193 | "test/test_cursor_client.h", |
| 194 | "test/test_focus_client.cc", |
| 195 | "test/test_focus_client.h", |
| 196 | "test/test_screen.cc", |
| 197 | "test/test_screen.h", |
satorux | d3ce5e2 | 2015-02-18 01:01:42 | [diff] [blame] | 198 | "test/test_window_delegate.cc", |
| 199 | "test/test_window_delegate.h", |
sky | 28f20d6 | 2016-10-20 23:21:59 | [diff] [blame] | 200 | "test/test_window_parenting_client.cc", |
| 201 | "test/test_window_parenting_client.h", |
riajiang | 762dcf0 | 2017-03-03 06:23:55 | [diff] [blame] | 202 | "test/test_window_targeter.cc", |
| 203 | "test/test_window_targeter.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 204 | "test/test_windows.cc", |
| 205 | "test/test_windows.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 206 | "test/ui_controls_factory_aura.h", |
mfomitchev@chromium.org | 6b614747 | 2014-06-27 17:37:07 | [diff] [blame] | 207 | "test/window_event_dispatcher_test_api.cc", |
| 208 | "test/window_event_dispatcher_test_api.h", |
Francois Doray | 4f44caa | 2018-03-23 15:48:05 | [diff] [blame] | 209 | "test/window_occlusion_tracker_test_api.cc", |
| 210 | "test/window_occlusion_tracker_test_api.h", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 211 | "test/window_test_api.cc", |
| 212 | "test/window_test_api.h", |
| 213 | ] |
| 214 | |
brettw | d1c719a | 2015-02-19 23:17:04 | [diff] [blame] | 215 | # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 216 | configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 217 | |
Brett Wilson | 0380637c | 2014-09-19 21:24:40 | [diff] [blame] | 218 | public_deps = [ |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 219 | ":aura", |
Scott Violet | 8f417bb | 2017-11-28 23:06:53 | [diff] [blame] | 220 | |
Scott Violet | b72577d | 2019-01-09 22:18:18 | [diff] [blame] | 221 | # Must be public as headers include buildflags.h. |
| 222 | "//ui/base:buildflags", |
Brett Wilson | 0380637c | 2014-09-19 21:24:40 | [diff] [blame] | 223 | ] |
| 224 | deps = [ |
Nick Diego Yamane | 12a86d6 | 2020-02-04 21:50:58 | [diff] [blame] | 225 | "//base", |
fdoray | 1c906dc | 2017-05-02 20:15:43 | [diff] [blame] | 226 | "//base/test:test_support", |
Scott Violet | 348ecf7 | 2017-11-28 18:28:19 | [diff] [blame] | 227 | "//cc:test_support", |
| 228 | "//components/viz/test:test_support", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 229 | "//skia", |
| 230 | "//testing/gtest", |
tfarina@chromium.org | e54a1f52 | 2014-07-22 23:26:48 | [diff] [blame] | 231 | "//ui/base:test_support", |
Henrique Ferreiro | b111d60 | 2020-05-21 15:47:51 | [diff] [blame] | 232 | "//ui/base/cursor:cursor_base", |
Henrique Ferreiro | e09c0efd | 2020-05-07 14:29:46 | [diff] [blame] | 233 | "//ui/base/cursor/mojom:cursor_type", |
Michael Spang | 539c6f3 | 2019-04-03 19:08:52 | [diff] [blame] | 234 | "//ui/base/ime/init", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 235 | "//ui/compositor:test_support", |
oshima | 5245e49 | 2016-04-26 16:47:55 | [diff] [blame] | 236 | "//ui/display", |
Sadrul Habib Chowdhury | b34782ec | 2017-12-08 17:05:43 | [diff] [blame] | 237 | "//ui/display/manager", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 238 | "//ui/events", |
| 239 | "//ui/events:events_base", |
tfarina@chromium.org | e54a1f52 | 2014-07-22 23:26:48 | [diff] [blame] | 240 | "//ui/events:test_support", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 241 | "//ui/gfx", |
| 242 | "//ui/gfx/geometry", |
Sergey Ulanov | 528cf76e | 2018-06-20 22:49:08 | [diff] [blame] | 243 | "//ui/platform_window", |
brettw | a78fded | 2014-09-07 00:27:41 | [diff] [blame] | 244 | "//ui/wm", |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 245 | ] |
| 246 | |
| 247 | if (is_win) { |
tfarina | ca865e8 | 2014-12-19 00:50:44 | [diff] [blame] | 248 | sources += [ "test/ui_controls_factory_aurawin.cc" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 249 | } |
| 250 | |
vchigrin | f06c5c8 | 2014-12-17 01:23:39 | [diff] [blame] | 251 | if (use_x11) { |
tfarina | ca865e8 | 2014-12-19 00:50:44 | [diff] [blame] | 252 | sources += [ |
| 253 | "test/ui_controls_factory_aurax11.cc", |
| 254 | "test/x11_event_sender.cc", |
| 255 | "test/x11_event_sender.h", |
| 256 | ] |
| 257 | |
Nick Diego Yamane | 12a86d6 | 2020-02-04 21:50:58 | [diff] [blame] | 258 | deps += [ |
| 259 | "//ui/events/platform/x11", |
| 260 | "//ui/gfx/x", |
| 261 | ] |
vchigrin | f06c5c8 | 2014-12-17 01:23:39 | [diff] [blame] | 262 | } |
spang | 6f171ac | 2015-02-04 18:46:22 | [diff] [blame] | 263 | |
| 264 | if (use_ozone) { |
Wez | a08ca75c | 2019-08-02 18:14:06 | [diff] [blame] | 265 | if (is_fuchsia) { |
| 266 | deps += [ "//ui/ozone" ] |
| 267 | } |
spang | 6f171ac | 2015-02-04 18:46:22 | [diff] [blame] | 268 | sources += [ "test/ui_controls_factory_ozone.cc" ] |
| 269 | } |
Maksim Sisov | f6382c2 | 2019-09-03 13:36:38 | [diff] [blame] | 270 | |
Sean McAllister | 358e8f2c | 2020-07-30 15:24:15 | [diff] [blame] | 271 | if (is_linux || is_chromeos) { |
Maksim Sisov | f6382c2 | 2019-09-03 13:36:38 | [diff] [blame] | 272 | deps += [ "//ui/platform_window/common" ] |
| 273 | } |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 274 | } |
| 275 | |
Robert Liao | ee8a667 | 2019-08-15 21:02:03 | [diff] [blame] | 276 | executable("aura_demo") { |
Brett Wilson | 8f80ad0b | 2014-09-08 19:50:24 | [diff] [blame] | 277 | testonly = true |
| 278 | |
Nico Weber | 7111d063e | 2020-01-14 15:59:23 | [diff] [blame] | 279 | sources = [ "demo/demo_main.cc" ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 280 | |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 281 | deps = [ |
| 282 | ":aura", |
| 283 | ":test_support", |
| 284 | "//base", |
| 285 | "//base:i18n", |
brucedawson | f9f7d629 | 2016-04-27 19:11:07 | [diff] [blame] | 286 | "//build/win:default_exe_manifest", |
kylechar | cb5882d | 2017-06-05 13:41:34 | [diff] [blame] | 287 | "//components/viz/host", |
danakj | 7167a9ea | 2018-05-31 15:25:10 | [diff] [blame] | 288 | "//components/viz/service", |
Robert Liao | 217198a | 2019-08-14 15:58:23 | [diff] [blame] | 289 | "//mojo/core/embedder", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 290 | "//skia", |
| 291 | "//third_party/icu", |
| 292 | "//ui/base", |
Michael Spang | 539c6f3 | 2019-04-03 19:08:52 | [diff] [blame] | 293 | "//ui/base/ime/init", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 294 | "//ui/compositor", |
| 295 | "//ui/compositor:test_support", |
robliao | 18e220e8 | 2016-04-19 16:47:12 | [diff] [blame] | 296 | "//ui/display", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 297 | "//ui/events", |
| 298 | "//ui/gfx", |
| 299 | "//ui/gfx/geometry", |
Robert Liao | f39f128 | 2019-02-28 21:15:16 | [diff] [blame] | 300 | "//ui/gl", |
kylechar | 5b9dec1 | 2016-05-16 15:40:57 | [diff] [blame] | 301 | "//ui/gl/init", |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 302 | ] |
tfarina@chromium.org | bd56a5b | 2014-06-07 04:09:29 | [diff] [blame] | 303 | |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 304 | if (use_x11) { |
scottmg | bba95ce | 2014-12-03 07:28:23 | [diff] [blame] | 305 | deps += [ "//ui/gfx/x" ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 306 | } |
| 307 | } |
| 308 | |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 309 | test("aura_unittests") { |
Yuke Liao | f540c74 | 2020-07-29 16:28:34 | [diff] [blame] | 310 | if ((is_linux && !is_chromeos) || chromeos_is_browser_only) { |
| 311 | use_xvfb = true |
| 312 | } |
| 313 | |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 314 | sources = [ |
Tommy C. Li | 092c628a | 2018-03-29 20:32:15 | [diff] [blame] | 315 | "../compositor_extra/shadow_unittest.cc", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 316 | "gestures/gesture_recognizer_unittest.cc", |
Scott Violet | f1f2c18 | 2018-03-19 16:41:04 | [diff] [blame] | 317 | "test/aura_test_suite.h", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 318 | "test/run_all_unittests.cc", |
| 319 | "window_event_dispatcher_unittest.cc", |
Xiyuan Xia | 40cd41d | 2018-12-18 16:22:43 | [diff] [blame] | 320 | "window_occlusion_change_builder_unittest.cc", |
Francois Doray | fe694a6 | 2017-11-16 14:47:07 | [diff] [blame] | 321 | "window_occlusion_tracker_unittest.cc", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 322 | "window_targeter_unittest.cc", |
Scott Violet | e4e97232 | 2019-05-02 19:27:11 | [diff] [blame] | 323 | "window_tree_host_platform_unittest.cc", |
jbauman | e94bb78 | 2016-08-22 19:46:51 | [diff] [blame] | 324 | "window_tree_host_unittest.cc", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 325 | "window_unittest.cc", |
| 326 | ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 327 | |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 328 | if (is_win) { |
| 329 | sources += [ "native_window_occlusion_tracker_unittest.cc" ] |
David Bienvenu | 1f6b18a | 2019-04-18 23:48:34 | [diff] [blame] | 330 | libs = [ "dwmapi.lib" ] |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 331 | } |
| 332 | |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 333 | deps = [ |
| 334 | ":test_support", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 335 | "//base/test:test_support", |
danakj | 7b631be | 2018-05-25 19:14:20 | [diff] [blame] | 336 | "//cc/mojo_embedder", |
Valery Arkhangorodsky | 513ac8fd | 2017-08-02 23:09:23 | [diff] [blame] | 337 | "//components/viz/client", |
Ken Rockot | 03e5ddc | 2018-07-04 19:35:08 | [diff] [blame] | 338 | "//mojo/core/embedder", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 339 | "//skia", |
| 340 | "//testing/gtest", |
Varun Mohan | d472ad7 | 2018-04-21 01:26:29 | [diff] [blame] | 341 | "//ui/aura_extra", |
Scott Violet | ed6a027 | 2018-12-03 17:55:13 | [diff] [blame] | 342 | "//ui/aura_extra:tests", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 343 | "//ui/base:test_support", |
Maksim Sisov | a33072d2 | 2019-01-24 15:44:25 | [diff] [blame] | 344 | "//ui/base/clipboard:clipboard_types", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 345 | "//ui/compositor:test_support", |
Tommy C. Li | 092c628a | 2018-03-29 20:32:15 | [diff] [blame] | 346 | "//ui/compositor_extra", |
oshima | 5245e49 | 2016-04-26 16:47:55 | [diff] [blame] | 347 | "//ui/display:test_support", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 348 | "//ui/events:gesture_detection", |
agrieve | d7a71c88 | 2015-11-20 19:53:28 | [diff] [blame] | 349 | "//ui/events:test_support", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 350 | "//ui/gfx", |
| 351 | "//ui/gfx/geometry", |
brettw | b7f2c30 | 2015-12-08 01:29:21 | [diff] [blame] | 352 | "//ui/gl:test_support", |
Sergey Ulanov | 528cf76e | 2018-06-20 22:49:08 | [diff] [blame] | 353 | "//ui/platform_window", |
Sadrul Habib Chowdhury | 026e47e | 2017-10-05 04:27:07 | [diff] [blame] | 354 | "//ui/platform_window/stub", |
Scott Violet | 1a445c21 | 2017-09-18 18:51:37 | [diff] [blame] | 355 | "//ui/wm", |
brettw | 4897a61 | 2015-03-02 23:13:15 | [diff] [blame] | 356 | ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 357 | |
James Hollyer | 67e2338 | 2020-06-24 00:26:56 | [diff] [blame] | 358 | if (use_ozone) { |
| 359 | deps += [ "//ui/ozone" ] |
| 360 | } |
| 361 | |
Nico Weber | 7111d063e | 2020-01-14 15:59:23 | [diff] [blame] | 362 | data_deps = [ "//third_party/mesa_headers" ] |
tfarina@chromium.org | c7a5f27 | 2014-08-15 00:19:00 | [diff] [blame] | 363 | } |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 364 | |
| 365 | # This target is added as a dependency of browser interactive_ui_tests. It must |
| 366 | # be source_set, otherwise the linker will drop the tests as dead code. |
| 367 | source_set("aura_interactive_ui_tests") { |
| 368 | testonly = true |
| 369 | if (is_win) { |
Nico Weber | 7111d063e | 2020-01-14 15:59:23 | [diff] [blame] | 370 | sources = [ "native_window_occlusion_tracker_win_interactive_test.cc" ] |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 371 | |
| 372 | deps = [ |
| 373 | ":aura", |
| 374 | ":test_support", |
| 375 | "//base/test:test_support", |
kylechar | 818583c | 2019-07-09 13:07:02 | [diff] [blame] | 376 | "//mojo/core/embedder", |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 377 | "//testing/gtest", |
Michael Spang | 539c6f3 | 2019-04-03 19:08:52 | [diff] [blame] | 378 | "//ui/base/ime/init", |
David Bienvenu | d0ddda3 | 2018-11-01 16:59:16 | [diff] [blame] | 379 | "//ui/display:display", |
| 380 | "//ui/gfx", |
| 381 | "//ui/gfx/geometry", |
| 382 | "//ui/gl:test_support", |
| 383 | "//ui/gl/init", |
| 384 | "//ui/views:views", |
| 385 | ] |
| 386 | } |
| 387 | } |