| 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 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 component("aura") { | 8 component("aura") { |
| 9 sources = [ | 9 sources = [ |
| 10 "../wm/public/activation_change_observer.cc", | 10 "../wm/public/activation_change_observer.cc", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 "env.h", | 60 "env.h", |
| 61 "env_input_state_controller.cc", | 61 "env_input_state_controller.cc", |
| 62 "env_input_state_controller.h", | 62 "env_input_state_controller.h", |
| 63 "env_observer.h", | 63 "env_observer.h", |
| 64 "input_state_lookup.cc", | 64 "input_state_lookup.cc", |
| 65 "input_state_lookup.h", | 65 "input_state_lookup.h", |
| 66 "input_state_lookup_win.cc", | 66 "input_state_lookup_win.cc", |
| 67 "input_state_lookup_win.h", | 67 "input_state_lookup_win.h", |
| 68 "layout_manager.cc", | 68 "layout_manager.cc", |
| 69 "layout_manager.h", | 69 "layout_manager.h", |
| 70 "mus/in_flight_change.cc", |
| 71 "mus/in_flight_change.h", |
| 72 "mus/input_method_mus.cc", |
| 73 "mus/input_method_mus.h", |
| 74 "mus/mus_types.h", |
| 70 "mus/mus_util.cc", | 75 "mus/mus_util.cc", |
| 71 "mus/mus_util.h", | 76 "mus/mus_util.h", |
| 77 "mus/property_converter.h", |
| 78 "mus/surface_id_handler.h", |
| 79 "mus/text_input_client_impl.cc", |
| 80 "mus/text_input_client_impl.h", |
| 81 "mus/window_manager_delegate.cc", |
| 82 "mus/window_manager_delegate.h", |
| 83 "mus/window_mus.h", |
| 84 "mus/window_port_mus.cc", |
| 85 "mus/window_port_mus.h", |
| 86 "mus/window_tree_client.cc", |
| 87 "mus/window_tree_client.h", |
| 88 "mus/window_tree_client_delegate.cc", |
| 89 "mus/window_tree_client_delegate.h", |
| 90 "mus/window_tree_client_observer.h", |
| 91 "mus/window_tree_host_mus.cc", |
| 92 "mus/window_tree_host_mus.h", |
| 72 "scoped_window_targeter.cc", | 93 "scoped_window_targeter.cc", |
| 73 "scoped_window_targeter.h", | 94 "scoped_window_targeter.h", |
| 74 "window.cc", | 95 "window.cc", |
| 75 "window.h", | 96 "window.h", |
| 97 "window_delegate.cc", |
| 76 "window_delegate.h", | 98 "window_delegate.h", |
| 77 "window_event_dispatcher.cc", | 99 "window_event_dispatcher.cc", |
| 78 "window_event_dispatcher.h", | 100 "window_event_dispatcher.h", |
| 79 "window_observer.cc", | 101 "window_observer.cc", |
| 80 "window_observer.h", | 102 "window_observer.h", |
| 81 "window_port.cc", | 103 "window_port.cc", |
| 82 "window_port.h", | 104 "window_port.h", |
| 83 "window_port_aura.cc", | 105 "window_port_aura.cc", |
| 84 "window_port_aura.h", | 106 "window_port_aura.h", |
| 85 "window_targeter.cc", | 107 "window_targeter.cc", |
| 86 "window_targeter.h", | 108 "window_targeter.h", |
| 87 "window_tracker.h", | 109 "window_tracker.h", |
| 88 "window_tree_host.cc", | 110 "window_tree_host.cc", |
| 89 "window_tree_host.h", | 111 "window_tree_host.h", |
| 90 "window_tree_host_mac.h", | 112 "window_tree_host_mac.h", |
| 91 "window_tree_host_mac.mm", | 113 "window_tree_host_mac.mm", |
| 92 "window_tree_host_observer.h", | 114 "window_tree_host_observer.h", |
| 93 "window_tree_host_platform.cc", | 115 "window_tree_host_platform.cc", |
| 94 "window_tree_host_platform.h", | 116 "window_tree_host_platform.h", |
| 95 "window_tree_host_x11.cc", | 117 "window_tree_host_x11.cc", |
| 96 "window_tree_host_x11.h", | 118 "window_tree_host_x11.h", |
| 97 ] | 119 ] |
| 98 | 120 |
| 99 defines = [ "AURA_IMPLEMENTATION" ] | 121 defines = [ "AURA_IMPLEMENTATION" ] |
| 100 | 122 |
| 101 deps = [ | 123 deps = [ |
| 102 "//base", | 124 "//base", |
| 103 "//base:i18n", | 125 "//base:i18n", |
| 104 "//base/third_party/dynamic_annotations", | 126 "//base/third_party/dynamic_annotations", |
| 127 "//services/service_manager/public/cpp", |
| 128 "//services/ui/public/interfaces", |
| 105 "//skia", | 129 "//skia", |
| 106 "//ui/base", | 130 "//ui/base", |
| 107 "//ui/base/ime", | 131 "//ui/base/ime", |
| 108 "//ui/compositor", | 132 "//ui/compositor", |
| 109 "//ui/display", | 133 "//ui/display", |
| 110 "//ui/events", | 134 "//ui/events", |
| 111 "//ui/events:events_base", | 135 "//ui/events:events_base", |
| 112 "//ui/events/platform", | 136 "//ui/events/platform", |
| 113 "//ui/gfx", | 137 "//ui/gfx", |
| 114 "//ui/gfx/geometry", | 138 "//ui/gfx/geometry", |
| 115 "//ui/platform_window", | 139 "//ui/platform_window", |
| 140 "//ui/platform_window/mojo", |
| 141 "//ui/platform_window/stub", |
| 116 ] | 142 ] |
| 117 | 143 |
| 118 if (use_x11) { | 144 if (use_x11) { |
| 119 configs += [ | 145 configs += [ |
| 120 "//build/config/linux:x11", | 146 "//build/config/linux:x11", |
| 121 "//build/config/linux:xrandr", | 147 "//build/config/linux:xrandr", |
| 122 ] | 148 ] |
| 123 deps += [ | 149 deps += [ |
| 124 "//ui/events:events_base", | 150 "//ui/events:events_base", |
| 125 "//ui/events/devices", | 151 "//ui/events/devices", |
| (...skipping 25 matching lines...) Expand all Loading... |
| 151 deps += [ | 177 deps += [ |
| 152 "//ui/platform_window/android", | 178 "//ui/platform_window/android", |
| 153 "//ui/platform_window/android:platform_window_java", | 179 "//ui/platform_window/android:platform_window_java", |
| 154 ] | 180 ] |
| 155 } | 181 } |
| 156 } | 182 } |
| 157 | 183 |
| 158 static_library("test_support") { | 184 static_library("test_support") { |
| 159 testonly = true | 185 testonly = true |
| 160 sources = [ | 186 sources = [ |
| 187 "test/aura_mus_test_base.cc", |
| 188 "test/aura_mus_test_base.h", |
| 161 "test/aura_test_base.cc", | 189 "test/aura_test_base.cc", |
| 162 "test/aura_test_base.h", | 190 "test/aura_test_base.h", |
| 163 "test/aura_test_helper.cc", | 191 "test/aura_test_helper.cc", |
| 164 "test/aura_test_helper.h", | 192 "test/aura_test_helper.h", |
| 165 "test/aura_test_utils.cc", | 193 "test/aura_test_utils.cc", |
| 166 "test/aura_test_utils.h", | 194 "test/aura_test_utils.h", |
| 167 "test/env_test_helper.h", | 195 "test/env_test_helper.h", |
| 168 "test/event_generator_delegate_aura.cc", | 196 "test/event_generator_delegate_aura.cc", |
| 169 "test/event_generator_delegate_aura.h", | 197 "test/event_generator_delegate_aura.h", |
| 170 "test/input_method_glue.cc", | 198 "test/input_method_glue.cc", |
| 171 "test/input_method_glue.h", | 199 "test/input_method_glue.h", |
| 200 "test/mus/test_window_tree.cc", |
| 201 "test/mus/test_window_tree.h", |
| 202 "test/mus/test_window_tree_client_setup.cc", |
| 203 "test/mus/test_window_tree_client_setup.h", |
| 204 "test/mus/window_tree_client_private.cc", |
| 205 "test/mus/window_tree_client_private.h", |
| 172 "test/test_cursor_client.cc", | 206 "test/test_cursor_client.cc", |
| 173 "test/test_cursor_client.h", | 207 "test/test_cursor_client.h", |
| 174 "test/test_focus_client.cc", | 208 "test/test_focus_client.cc", |
| 175 "test/test_focus_client.h", | 209 "test/test_focus_client.h", |
| 176 "test/test_screen.cc", | 210 "test/test_screen.cc", |
| 177 "test/test_screen.h", | 211 "test/test_screen.h", |
| 178 "test/test_window_delegate.cc", | 212 "test/test_window_delegate.cc", |
| 179 "test/test_window_delegate.h", | 213 "test/test_window_delegate.h", |
| 180 "test/test_window_parenting_client.cc", | 214 "test/test_window_parenting_client.cc", |
| 181 "test/test_window_parenting_client.h", | 215 "test/test_window_parenting_client.h", |
| 182 "test/test_windows.cc", | 216 "test/test_windows.cc", |
| 183 "test/test_windows.h", | 217 "test/test_windows.h", |
| 184 "test/ui_controls_factory_aura.h", | 218 "test/ui_controls_factory_aura.h", |
| 185 "test/window_event_dispatcher_test_api.cc", | 219 "test/window_event_dispatcher_test_api.cc", |
| 186 "test/window_event_dispatcher_test_api.h", | 220 "test/window_event_dispatcher_test_api.h", |
| 187 "test/window_test_api.cc", | 221 "test/window_test_api.cc", |
| 188 "test/window_test_api.h", | 222 "test/window_test_api.h", |
| 189 ] | 223 ] |
| 190 | 224 |
| 191 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 225 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 192 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 226 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 193 | 227 |
| 194 public_deps = [ | 228 public_deps = [ |
| 195 ":aura", | 229 ":aura", |
| 196 ] | 230 ] |
| 197 deps = [ | 231 deps = [ |
| 232 "//services/ui/public/interfaces", |
| 198 "//skia", | 233 "//skia", |
| 199 "//testing/gtest", | 234 "//testing/gtest", |
| 200 "//ui/base:test_support", | 235 "//ui/base:test_support", |
| 201 "//ui/base/ime", | 236 "//ui/base/ime", |
| 202 "//ui/compositor:test_support", | 237 "//ui/compositor:test_support", |
| 203 "//ui/display", | 238 "//ui/display", |
| 204 "//ui/events", | 239 "//ui/events", |
| 205 "//ui/events:events_base", | 240 "//ui/events:events_base", |
| 206 "//ui/events:test_support", | 241 "//ui/events:test_support", |
| 207 "//ui/gfx", | 242 "//ui/gfx", |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 ] | 292 ] |
| 258 | 293 |
| 259 if (use_x11) { | 294 if (use_x11) { |
| 260 deps += [ "//ui/gfx/x" ] | 295 deps += [ "//ui/gfx/x" ] |
| 261 } | 296 } |
| 262 } | 297 } |
| 263 | 298 |
| 264 test("aura_unittests") { | 299 test("aura_unittests") { |
| 265 sources = [ | 300 sources = [ |
| 266 "gestures/gesture_recognizer_unittest.cc", | 301 "gestures/gesture_recognizer_unittest.cc", |
| 302 "mus/window_tree_client_unittest.cc", |
| 267 "test/run_all_unittests.cc", | 303 "test/run_all_unittests.cc", |
| 268 "window_event_dispatcher_unittest.cc", | 304 "window_event_dispatcher_unittest.cc", |
| 269 "window_targeter_unittest.cc", | 305 "window_targeter_unittest.cc", |
| 270 "window_tree_host_unittest.cc", | 306 "window_tree_host_unittest.cc", |
| 271 "window_unittest.cc", | 307 "window_unittest.cc", |
| 272 ] | 308 ] |
| 273 | 309 |
| 274 deps = [ | 310 deps = [ |
| 275 ":test_support", | 311 ":test_support", |
| 276 "//base/test:test_support", | 312 "//base/test:test_support", |
| 313 "//mojo/common", |
| 277 "//skia", | 314 "//skia", |
| 278 "//testing/gtest", | 315 "//testing/gtest", |
| 279 "//ui/base:test_support", | 316 "//ui/base:test_support", |
| 280 "//ui/compositor:test_support", | 317 "//ui/compositor:test_support", |
| 281 "//ui/display:test_support", | 318 "//ui/display:test_support", |
| 282 "//ui/events:gesture_detection", | 319 "//ui/events:gesture_detection", |
| 283 "//ui/events:test_support", | 320 "//ui/events:test_support", |
| 284 "//ui/gfx", | 321 "//ui/gfx", |
| 285 "//ui/gfx/geometry", | 322 "//ui/gfx/geometry", |
| 286 "//ui/gl:test_support", | 323 "//ui/gl:test_support", |
| 287 ] | 324 ] |
| 288 | 325 |
| 289 if (is_linux) { | 326 if (is_linux) { |
| 290 deps += [ "//third_party/mesa" ] | 327 deps += [ "//third_party/mesa" ] |
| 291 } | 328 } |
| 292 | 329 |
| 293 data_deps = [ | 330 data_deps = [ |
| 294 "//third_party/mesa:osmesa", | 331 "//third_party/mesa:osmesa", |
| 295 ] | 332 ] |
| 296 } | 333 } |
| OLD | NEW |