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 | 6 |
7 component("snapshot") { | 7 component("snapshot") { |
8 sources = [ | 8 sources = [ |
9 "snapshot.h", | 9 "snapshot.h", |
10 "snapshot_android.cc", | 10 "snapshot_android.cc", |
11 "snapshot_async.cc", | 11 "snapshot_async.cc", |
12 "snapshot_async.h", | 12 "snapshot_async.h", |
13 "snapshot_aura.cc", | 13 "snapshot_aura.cc", |
14 "snapshot_export.h", | 14 "snapshot_export.h", |
15 "snapshot_ios.mm", | 15 "snapshot_ios.mm", |
16 "snapshot_mac.mm", | 16 "snapshot_mac.mm", |
17 "snapshot_win.cc", | |
18 "snapshot_win.h", | |
19 ] | 17 ] |
20 | 18 |
21 defines = [ "SNAPSHOT_IMPLEMENTATION" ] | 19 defines = [ "SNAPSHOT_IMPLEMENTATION" ] |
22 | 20 |
23 deps = [ | 21 deps = [ |
24 "//base", | 22 "//base", |
25 "//skia", | 23 "//skia", |
26 "//ui/base", | 24 "//ui/base", |
27 "//ui/gfx", | 25 "//ui/gfx", |
28 "//ui/gfx/geometry", | 26 "//ui/gfx/geometry", |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 deps += [ | 74 deps += [ |
77 "//ui/aura:test_support", | 75 "//ui/aura:test_support", |
78 "//ui/compositor", | 76 "//ui/compositor", |
79 "//ui/compositor:test_support", | 77 "//ui/compositor:test_support", |
80 "//ui/wm", | 78 "//ui/wm", |
81 ] | 79 ] |
82 } else { | 80 } else { |
83 sources -= [ "snapshot_aura_unittest.cc" ] | 81 sources -= [ "snapshot_aura_unittest.cc" ] |
84 } | 82 } |
85 } | 83 } |
86 | |
87 if (is_win) { | |
88 source_set("test_support") { | |
89 sources = [ | |
90 "test/snapshot_desktop.h", | |
91 "test/snapshot_desktop_win.cc", | |
92 ] | |
93 deps = [ | |
94 ":snapshot", | |
95 ] | |
96 } | |
97 } | |
OLD | NEW |