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", |
11 "screenshot_grabber.h", | 11 "screenshot_grabber.h", |
12 "screenshot_grabber_observer.h", | 12 "screenshot_grabber_observer.h", |
13 "snapshot.h", | 13 "snapshot.h", |
14 "snapshot_android.cc", | 14 "snapshot_android.cc", |
15 "snapshot_async.cc", | 15 "snapshot_async.cc", |
16 "snapshot_async.h", | 16 "snapshot_async.h", |
17 "snapshot_aura.cc", | 17 "snapshot_aura.cc", |
18 "snapshot_export.h", | 18 "snapshot_export.h", |
19 "snapshot_ios.mm", | 19 "snapshot_ios.mm", |
20 "snapshot_mac.mm", | 20 "snapshot_mac.mm", |
21 ] | 21 ] |
22 | 22 |
23 defines = [ "SNAPSHOT_IMPLEMENTATION" ] | 23 defines = [ "SNAPSHOT_IMPLEMENTATION" ] |
24 | 24 |
25 deps = [ | 25 deps = [ |
26 "//base", | 26 "//base", |
27 "//skia", | 27 "//skia", |
28 "//ui/base", | 28 "//ui/base", |
| 29 "//ui/display", |
29 "//ui/gfx", | 30 "//ui/gfx", |
30 "//ui/gfx/geometry", | 31 "//ui/gfx/geometry", |
31 ] | 32 ] |
32 | 33 |
33 if (is_android && !use_aura) { | 34 if (is_android && !use_aura) { |
34 deps += [ "//ui/android" ] | 35 deps += [ "//ui/android" ] |
35 } | 36 } |
36 | 37 |
37 if (use_aura || is_android) { | 38 if (use_aura || is_android) { |
38 deps += [ | 39 deps += [ |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 deps += [ | 85 deps += [ |
85 "//ui/aura:test_support", | 86 "//ui/aura:test_support", |
86 "//ui/compositor", | 87 "//ui/compositor", |
87 "//ui/compositor:test_support", | 88 "//ui/compositor:test_support", |
88 "//ui/wm", | 89 "//ui/wm", |
89 ] | 90 ] |
90 } else { | 91 } else { |
91 sources -= [ "snapshot_aura_unittest.cc" ] | 92 sources -= [ "snapshot_aura_unittest.cc" ] |
92 } | 93 } |
93 } | 94 } |
OLD | NEW |