| OLD | NEW |
| (Empty) |
| 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 | |
| 5 import("//build/config/ui.gni") | |
| 6 | |
| 7 component("aura") { | |
| 8 sources = [ | |
| 9 "client/aura_constants.cc", | |
| 10 "client/aura_constants.h", | |
| 11 "client/capture_client.cc", | |
| 12 "client/capture_client.h", | |
| 13 "client/capture_delegate.h", | |
| 14 "client/cursor_client.cc", | |
| 15 "client/cursor_client.h", | |
| 16 "client/cursor_client_observer.h", | |
| 17 "client/cursor_client_observer.cc", | |
| 18 "client/default_capture_client.cc", | |
| 19 "client/default_capture_client.h", | |
| 20 "client/event_client.cc", | |
| 21 "client/event_client.h", | |
| 22 "client/focus_change_observer.cc", | |
| 23 "client/focus_change_observer.h", | |
| 24 "client/focus_client.cc", | |
| 25 "client/focus_client.h", | |
| 26 "client/screen_position_client.cc", | |
| 27 "client/screen_position_client.h", | |
| 28 "client/visibility_client.cc", | |
| 29 "client/visibility_client.h", | |
| 30 "client/window_stacking_client.cc", | |
| 31 "client/window_stacking_client.h", | |
| 32 "client/window_tree_client.cc", | |
| 33 "client/window_tree_client.h", | |
| 34 "env.cc", | |
| 35 "env.h", | |
| 36 "env_observer.h", | |
| 37 "input_state_lookup.cc", | |
| 38 "input_state_lookup.h", | |
| 39 "input_state_lookup_win.cc", | |
| 40 "input_state_lookup_win.h", | |
| 41 "layout_manager.cc", | |
| 42 "layout_manager.h", | |
| 43 "scoped_window_targeter.cc", | |
| 44 "scoped_window_targeter.h", | |
| 45 "window.cc", | |
| 46 "window.h", | |
| 47 "window_event_dispatcher.cc", | |
| 48 "window_event_dispatcher.h", | |
| 49 "window_delegate.h", | |
| 50 "window_layer_type.h", | |
| 51 "window_observer.cc", | |
| 52 "window_observer.h", | |
| 53 "window_targeter.cc", | |
| 54 "window_targeter.h", | |
| 55 "window_tracker.cc", | |
| 56 "window_tracker.h", | |
| 57 "window_tree_host.cc", | |
| 58 "window_tree_host.h", | |
| 59 "window_tree_host_mac.mm", | |
| 60 "window_tree_host_mac.h", | |
| 61 "window_tree_host_observer.h", | |
| 62 "window_tree_host_win.cc", | |
| 63 "window_tree_host_win.h", | |
| 64 "window_tree_host_x11.cc", | |
| 65 "window_tree_host_x11.h", | |
| 66 "../wm/public/activation_change_observer.h", | |
| 67 "../wm/public/activation_change_observer.cc", | |
| 68 "../wm/public/activation_client.cc", | |
| 69 "../wm/public/activation_client.h", | |
| 70 "../wm/public/activation_delegate.cc", | |
| 71 "../wm/public/activation_delegate.h", | |
| 72 "../wm/public/animation_host.cc", | |
| 73 "../wm/public/animation_host.h", | |
| 74 "../wm/public/dispatcher_client.cc", | |
| 75 "../wm/public/dispatcher_client.h", | |
| 76 "../wm/public/drag_drop_client.cc", | |
| 77 "../wm/public/drag_drop_client.h", | |
| 78 "../wm/public/drag_drop_delegate.cc", | |
| 79 "../wm/public/drag_drop_delegate.h", | |
| 80 "../wm/public/scoped_tooltip_disabler.cc", | |
| 81 "../wm/public/scoped_tooltip_disabler.h", | |
| 82 "../wm/public/tooltip_client.cc", | |
| 83 "../wm/public/tooltip_client.h", | |
| 84 "../wm/public/transient_window_client.cc", | |
| 85 "../wm/public/transient_window_client.h", | |
| 86 "../wm/public/window_move_client.cc", | |
| 87 "../wm/public/window_move_client.h", | |
| 88 "../wm/public/window_types.h", | |
| 89 ] | |
| 90 | |
| 91 defines = [ "AURA_IMPLEMENTATION" ] | |
| 92 | |
| 93 deps = [ | |
| 94 "//base", | |
| 95 "//base:i18n", | |
| 96 "//base/third_party/dynamic_annotations", | |
| 97 "//skia", | |
| 98 "//ui/base", | |
| 99 "//ui/compositor", | |
| 100 "//ui/events", | |
| 101 "//ui/events/platform", | |
| 102 "//ui/gfx", | |
| 103 "//ui/gfx/geometry", | |
| 104 ] | |
| 105 | |
| 106 if (use_x11) { | |
| 107 configs += [ | |
| 108 "//build/config/linux:x11", | |
| 109 "//build/config/linux:xrandr", | |
| 110 ] | |
| 111 deps += [ "//ui/events/platform/x11" ] | |
| 112 } | |
| 113 | |
| 114 if (is_win) { | |
| 115 sources -= [ | |
| 116 "input_state_lookup.cc", | |
| 117 "window_tree_host_x11.cc", | |
| 118 ] | |
| 119 deps += [ "//ui/platform_window/win" ] | |
| 120 } | |
| 121 | |
| 122 if (use_ozone) { | |
| 123 sources += [ | |
| 124 "window_tree_host_ozone.cc", | |
| 125 "window_tree_host_ozone.h", | |
| 126 ] | |
| 127 # TODO(GYP) enable when these targets exist. | |
| 128 #deps += [ | |
| 129 # "//ui/events/ozone", | |
| 130 # "//ui/ozone", | |
| 131 #] | |
| 132 } | |
| 133 } | |
| 134 | |
| 135 if (false) { | |
| 136 source_set("test_support") { | |
| 137 testonly = true | |
| 138 sources = [ | |
| 139 "test/aura_test_base.cc", | |
| 140 "test/aura_test_base.h", | |
| 141 "test/aura_test_helper.cc", | |
| 142 "test/aura_test_helper.h", | |
| 143 "test/aura_test_utils.cc", | |
| 144 "test/aura_test_utils.h", | |
| 145 "test/env_test_helper.h", | |
| 146 "test/event_generator_delegate_aura.cc", | |
| 147 "test/event_generator_delegate_aura.h", | |
| 148 "test/test_cursor_client.cc", | |
| 149 "test/test_cursor_client.h", | |
| 150 "test/test_focus_client.cc", | |
| 151 "test/test_focus_client.h", | |
| 152 "test/test_screen.cc", | |
| 153 "test/test_screen.h", | |
| 154 "test/test_window_tree_client.cc", | |
| 155 "test/test_window_tree_client.h", | |
| 156 "test/test_windows.cc", | |
| 157 "test/test_windows.h", | |
| 158 "test/test_window_delegate.cc", | |
| 159 "test/test_window_delegate.h", | |
| 160 "test/ui_controls_factory_aura.h", | |
| 161 "test/window_event_dispatcher_test_api.cc", | |
| 162 "test/window_event_dispatcher_test_api.h", | |
| 163 "test/window_test_api.cc", | |
| 164 "test/window_test_api.h", | |
| 165 ] | |
| 166 | |
| 167 public_deps = [ | |
| 168 ":aura", | |
| 169 ] | |
| 170 deps = [ | |
| 171 "//skia", | |
| 172 "//testing/gtest", | |
| 173 "//ui/base:test_support", | |
| 174 "//ui/compositor:test_support", | |
| 175 "//ui/events", | |
| 176 "//ui/events:events_base", | |
| 177 "//ui/events:test_support", | |
| 178 "//ui/gfx", | |
| 179 "//ui/gfx/geometry", | |
| 180 "//ui/wm", | |
| 181 ] | |
| 182 | |
| 183 if (is_win) { | |
| 184 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int
truncations. | |
| 185 } | |
| 186 | |
| 187 if (use_aura) { | |
| 188 if (is_win) { | |
| 189 sources += [ "test/ui_controls_factory_aurawin.cc" ] | |
| 190 } | |
| 191 | |
| 192 if (use_x11) { | |
| 193 sources += [ "test/ui_controls_factory_aurax11.cc" ] | |
| 194 } | |
| 195 } | |
| 196 } | |
| 197 | |
| 198 executable("demo") { | |
| 199 output_name = "aura_demo" | |
| 200 testonly = true | |
| 201 | |
| 202 sources = [ | |
| 203 "demo/demo_main.cc", | |
| 204 ] | |
| 205 | |
| 206 deps = [ | |
| 207 ":aura", | |
| 208 ":test_support", | |
| 209 "//base", | |
| 210 "//base:i18n", | |
| 211 "//skia", | |
| 212 "//third_party/icu", | |
| 213 "//ui/base", | |
| 214 "//ui/compositor", | |
| 215 "//ui/compositor:test_support", | |
| 216 "//ui/events", | |
| 217 "//ui/gfx", | |
| 218 "//ui/gfx/geometry", | |
| 219 "//ui/gl", | |
| 220 ] | |
| 221 | |
| 222 if (use_x11) { | |
| 223 deps += [ "//ui/gfx/x" ] | |
| 224 } | |
| 225 } | |
| 226 | |
| 227 executable("bench") { | |
| 228 output_name = "aura_bench" | |
| 229 testonly = true | |
| 230 | |
| 231 sources = [ | |
| 232 "bench/bench_main.cc", | |
| 233 ] | |
| 234 | |
| 235 deps = [ | |
| 236 ":test_support", | |
| 237 "//base", | |
| 238 "//base:i18n", | |
| 239 "//cc", | |
| 240 "//gpu/command_buffer/client:gles2_interface", | |
| 241 "//skia", | |
| 242 "//third_party/icu", | |
| 243 "//ui/base", | |
| 244 "//ui/compositor", | |
| 245 "//ui/compositor:test_support", | |
| 246 "//ui/events", | |
| 247 "//ui/gfx", | |
| 248 "//ui/gfx/geometry", | |
| 249 "//ui/gl", | |
| 250 ] | |
| 251 | |
| 252 if (use_x11) { | |
| 253 deps += [ "//ui/gfx/x" ] | |
| 254 } | |
| 255 } | |
| 256 | |
| 257 test("aura_unittests") { | |
| 258 sources = [ | |
| 259 "gestures/gesture_recognizer_unittest.cc", | |
| 260 "test/run_all_unittests.cc", | |
| 261 "window_event_dispatcher_unittest.cc", | |
| 262 "window_targeter_unittest.cc", | |
| 263 "window_unittest.cc", | |
| 264 ] | |
| 265 | |
| 266 deps = [ | |
| 267 ":test_support", | |
| 268 "//base/allocator", | |
| 269 "//base/test:test_support", | |
| 270 "//skia", | |
| 271 "//testing/gtest", | |
| 272 "//ui/base:test_support", | |
| 273 "//ui/compositor:test_support", | |
| 274 "//ui/events:test_support", | |
| 275 "//ui/events:gesture_detection", | |
| 276 "//ui/gfx", | |
| 277 "//ui/gfx/geometry", | |
| 278 "//ui/gl", | |
| 279 ] | |
| 280 | |
| 281 if (is_linux) { | |
| 282 deps += [ "//third_party/mesa" ] | |
| 283 } | |
| 284 } | |
| 285 } # if (false) | |
| OLD | NEW |