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 12 matching lines...) Expand all Loading... |
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/gfx", | 29 "//ui/gfx", |
30 "//ui/gfx/geometry", | 30 "//ui/gfx/geometry", |
31 ] | 31 ] |
32 | 32 |
33 if (is_android) { | 33 if (is_android && !use_aura) { |
34 deps += [ "//ui/android" ] | 34 deps += [ "//ui/android" ] |
35 } | 35 } |
36 | 36 |
37 if (use_aura || is_android) { | 37 if (use_aura || is_android) { |
38 deps += [ | 38 deps += [ |
39 "//cc", | 39 "//cc", |
40 "//gpu/command_buffer/common", | 40 "//gpu/command_buffer/common", |
41 ] | 41 ] |
42 } else { | 42 } else { |
43 sources -= [ | 43 sources -= [ |
44 "snapshot_async.cc", | 44 "snapshot_async.cc", |
45 "snapshot_async.h", | 45 "snapshot_async.h", |
46 ] | 46 ] |
47 } | 47 } |
48 | 48 |
| 49 if (is_android && use_aura) { |
| 50 sources -= [ "snapshot_android.cc" ] |
| 51 } |
| 52 |
49 if (use_aura) { | 53 if (use_aura) { |
50 deps += [ | 54 deps += [ |
51 "//ui/aura", | 55 "//ui/aura", |
52 "//ui/compositor", | 56 "//ui/compositor", |
53 ] | 57 ] |
54 } else { | 58 } else { |
55 sources -= [ "snapshot_aura.cc" ] | 59 sources -= [ "snapshot_aura.cc" ] |
56 } | 60 } |
57 } | 61 } |
58 | 62 |
(...skipping 22 matching lines...) Expand all Loading... |
81 deps += [ | 85 deps += [ |
82 "//ui/aura:test_support", | 86 "//ui/aura:test_support", |
83 "//ui/compositor", | 87 "//ui/compositor", |
84 "//ui/compositor:test_support", | 88 "//ui/compositor:test_support", |
85 "//ui/wm", | 89 "//ui/wm", |
86 ] | 90 ] |
87 } else { | 91 } else { |
88 sources -= [ "snapshot_aura_unittest.cc" ] | 92 sources -= [ "snapshot_aura_unittest.cc" ] |
89 } | 93 } |
90 } | 94 } |
OLD | NEW |