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("snapshot") { | 8 component("snapshot") { |
9 sources = [ | 9 sources = [ |
10 "screenshot_grabber.cc", | 10 "screenshot_grabber.cc", |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 "//ui/aura", | 56 "//ui/aura", |
57 "//ui/compositor", | 57 "//ui/compositor", |
58 ] | 58 ] |
59 } else { | 59 } else { |
60 sources -= [ "snapshot_aura.cc" ] | 60 sources -= [ "snapshot_aura.cc" ] |
61 } | 61 } |
62 | 62 |
63 if (is_mac) { | 63 if (is_mac) { |
64 libs = [ | 64 libs = [ |
65 "AppKit.framework", | 65 "AppKit.framework", |
66 "ApplicationServices.framework", # Temporary hack around https://crbug.co
m/620127. Remove after https://crbug.com/622481 is fixed. | |
67 "CoreGraphics.framework", | 66 "CoreGraphics.framework", |
68 ] | 67 ] |
69 } | 68 } |
70 } | 69 } |
71 | 70 |
72 test("snapshot_unittests") { | 71 test("snapshot_unittests") { |
73 sources = [ | 72 sources = [ |
74 "snapshot_aura_unittest.cc", | 73 "snapshot_aura_unittest.cc", |
75 "snapshot_mac_unittest.mm", | 74 "snapshot_mac_unittest.mm", |
76 "test/run_all_unittests.cc", | 75 "test/run_all_unittests.cc", |
(...skipping 16 matching lines...) Expand all Loading... |
93 deps += [ | 92 deps += [ |
94 "//ui/aura:test_support", | 93 "//ui/aura:test_support", |
95 "//ui/compositor", | 94 "//ui/compositor", |
96 "//ui/compositor:test_support", | 95 "//ui/compositor:test_support", |
97 "//ui/wm", | 96 "//ui/wm", |
98 ] | 97 ] |
99 } else { | 98 } else { |
100 sources -= [ "snapshot_aura_unittest.cc" ] | 99 sources -= [ "snapshot_aura_unittest.cc" ] |
101 } | 100 } |
102 } | 101 } |
OLD | NEW |