Index: ui/aura/BUILD.gn |
diff --git a/ui/aura/BUILD.gn b/ui/aura/BUILD.gn |
index 0ebe448e17594b81a477cc5884b865705b0022d2..78f12d035b25084dc95ea09a70b4ff8f3d864c7a 100644 |
--- a/ui/aura/BUILD.gn |
+++ b/ui/aura/BUILD.gn |
@@ -237,61 +237,63 @@ executable("demo") { |
} |
} |
-executable("bench") { |
- output_name = "aura_bench" |
- testonly = true |
+if (!is_win || link_chrome_on_windows) { |
+ executable("bench") { |
+ output_name = "aura_bench" |
+ testonly = true |
- sources = [ |
- "bench/bench_main.cc", |
- ] |
+ sources = [ |
+ "bench/bench_main.cc", |
+ ] |
- deps = [ |
- ":test_support", |
- "//base", |
- "//base:i18n", |
- "//cc", |
- "//gpu/command_buffer/client:gles2_interface", |
- "//skia", |
- "//third_party/icu", |
- "//ui/base", |
- "//ui/compositor", |
- "//ui/compositor:test_support", |
- "//ui/events", |
- "//ui/gfx", |
- "//ui/gfx/geometry", |
- "//ui/gl", |
- ] |
+ deps = [ |
+ ":test_support", |
+ "//base", |
+ "//base:i18n", |
+ "//cc", |
+ "//gpu/command_buffer/client:gles2_interface", |
+ "//skia", |
+ "//third_party/icu", |
+ "//ui/base", |
+ "//ui/compositor", |
+ "//ui/compositor:test_support", |
+ "//ui/events", |
+ "//ui/gfx", |
+ "//ui/gfx/geometry", |
+ "//ui/gl", |
+ ] |
- if (use_x11) { |
- deps += [ "//ui/gfx/x" ] |
+ if (use_x11) { |
+ deps += [ "//ui/gfx/x" ] |
+ } |
} |
-} |
-test("aura_unittests") { |
- sources = [ |
- "gestures/gesture_recognizer_unittest.cc", |
- "test/run_all_unittests.cc", |
- "window_event_dispatcher_unittest.cc", |
- "window_targeter_unittest.cc", |
- "window_unittest.cc", |
- ] |
+ test("aura_unittests") { |
+ sources = [ |
+ "gestures/gesture_recognizer_unittest.cc", |
+ "test/run_all_unittests.cc", |
+ "window_event_dispatcher_unittest.cc", |
+ "window_targeter_unittest.cc", |
+ "window_unittest.cc", |
+ ] |
- deps = [ |
- ":test_support", |
- "//base/allocator", |
- "//base/test:test_support", |
- "//skia", |
- "//testing/gtest", |
- "//ui/base:test_support", |
- "//ui/compositor:test_support", |
- "//ui/events:test_support", |
- "//ui/events:gesture_detection", |
- "//ui/gfx", |
- "//ui/gfx/geometry", |
- "//ui/gl", |
- ] |
+ deps = [ |
+ ":test_support", |
+ "//base/allocator", |
+ "//base/test:test_support", |
+ "//skia", |
+ "//testing/gtest", |
+ "//ui/base:test_support", |
+ "//ui/compositor:test_support", |
+ "//ui/events:test_support", |
+ "//ui/events:gesture_detection", |
+ "//ui/gfx", |
+ "//ui/gfx/geometry", |
+ "//ui/gl", |
+ ] |
- if (is_linux) { |
- deps += [ "//third_party/mesa" ] |
+ if (is_linux) { |
+ deps += [ "//third_party/mesa" ] |
+ } |
} |
} |