Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(571)

Side by Side Diff: ui/snapshot/BUILD.gn

Issue 1391893003: NOT FOR REVIEW: Aura on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698