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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 "//ui/gfx", | 236 "//ui/gfx", |
237 "//ui/gfx/geometry", | 237 "//ui/gfx/geometry", |
238 "//ui/gl", | 238 "//ui/gl", |
239 ] | 239 ] |
240 | 240 |
241 if (use_x11) { | 241 if (use_x11) { |
242 deps += [ "//ui/gfx/x" ] | 242 deps += [ "//ui/gfx/x" ] |
243 } | 243 } |
244 } | 244 } |
245 | 245 |
246 if (!is_win || link_chrome_on_windows) { | 246 executable("bench") { |
247 executable("bench") { | 247 output_name = "aura_bench" |
248 output_name = "aura_bench" | 248 testonly = true |
249 testonly = true | |
250 | 249 |
251 sources = [ | 250 sources = [ |
252 "bench/bench_main.cc", | 251 "bench/bench_main.cc", |
253 ] | 252 ] |
254 | 253 |
255 deps = [ | 254 deps = [ |
256 ":test_support", | 255 ":test_support", |
257 "//base", | 256 "//base", |
258 "//base:i18n", | 257 "//base:i18n", |
259 "//cc", | 258 "//cc", |
260 "//gpu/command_buffer/client:gles2_interface", | 259 "//gpu/command_buffer/client:gles2_interface", |
261 "//skia", | 260 "//skia", |
262 "//third_party/icu", | 261 "//third_party/icu", |
263 "//ui/base", | 262 "//ui/base", |
264 "//ui/compositor", | 263 "//ui/compositor", |
265 "//ui/compositor:test_support", | 264 "//ui/compositor:test_support", |
266 "//ui/events", | 265 "//ui/events", |
267 "//ui/gfx", | 266 "//ui/gfx", |
268 "//ui/gfx/geometry", | 267 "//ui/gfx/geometry", |
269 "//ui/gl", | 268 "//ui/gl", |
270 ] | 269 ] |
271 | 270 |
272 if (use_x11) { | 271 if (use_x11) { |
273 deps += [ "//ui/gfx/x" ] | 272 deps += [ "//ui/gfx/x" ] |
274 } | |
275 } | |
276 | |
277 test("aura_unittests") { | |
278 sources = [ | |
279 "gestures/gesture_recognizer_unittest.cc", | |
280 "test/run_all_unittests.cc", | |
281 "window_event_dispatcher_unittest.cc", | |
282 "window_targeter_unittest.cc", | |
283 "window_unittest.cc", | |
284 ] | |
285 | |
286 deps = [ | |
287 ":test_support", | |
288 "//base/allocator", | |
289 "//base/test:test_support", | |
290 "//skia", | |
291 "//testing/gtest", | |
292 "//ui/base:test_support", | |
293 "//ui/compositor:test_support", | |
294 "//ui/events:test_support", | |
295 "//ui/events:gesture_detection", | |
296 "//ui/gfx", | |
297 "//ui/gfx/geometry", | |
298 "//ui/gl", | |
299 ] | |
300 | |
301 if (is_linux) { | |
302 deps += [ "//third_party/mesa" ] | |
303 } | |
304 } | 273 } |
305 } | 274 } |
| 275 |
| 276 test("aura_unittests") { |
| 277 sources = [ |
| 278 "gestures/gesture_recognizer_unittest.cc", |
| 279 "test/run_all_unittests.cc", |
| 280 "window_event_dispatcher_unittest.cc", |
| 281 "window_targeter_unittest.cc", |
| 282 "window_unittest.cc", |
| 283 ] |
| 284 |
| 285 deps = [ |
| 286 ":test_support", |
| 287 "//base/allocator", |
| 288 "//base/test:test_support", |
| 289 "//skia", |
| 290 "//testing/gtest", |
| 291 "//ui/base:test_support", |
| 292 "//ui/compositor:test_support", |
| 293 "//ui/events:test_support", |
| 294 "//ui/events:gesture_detection", |
| 295 "//ui/gfx", |
| 296 "//ui/gfx/geometry", |
| 297 "//ui/gl", |
| 298 ] |
| 299 |
| 300 if (is_linux) { |
| 301 deps += [ "//third_party/mesa" ] |
| 302 } |
| 303 } |
OLD | NEW |