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

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

Issue 1961473003: [Mac/GN] Set up the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 53
54 if (use_aura) { 54 if (use_aura) {
55 deps += [ 55 deps += [
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
63 if (is_mac) {
64 libs = [
65 "AppKit.framework",
66 "CoreGraphics.framework",
67 ]
68 }
62 } 69 }
63 70
64 test("snapshot_unittests") { 71 test("snapshot_unittests") {
65 sources = [ 72 sources = [
66 "snapshot_aura_unittest.cc", 73 "snapshot_aura_unittest.cc",
67 "snapshot_mac_unittest.mm", 74 "snapshot_mac_unittest.mm",
68 "test/run_all_unittests.cc", 75 "test/run_all_unittests.cc",
69 ] 76 ]
70 77
71 deps = [ 78 deps = [
(...skipping 13 matching lines...) Expand all
85 deps += [ 92 deps += [
86 "//ui/aura:test_support", 93 "//ui/aura:test_support",
87 "//ui/compositor", 94 "//ui/compositor",
88 "//ui/compositor:test_support", 95 "//ui/compositor:test_support",
89 "//ui/wm", 96 "//ui/wm",
90 ] 97 ]
91 } else { 98 } else {
92 sources -= [ "snapshot_aura_unittest.cc" ] 99 sources -= [ "snapshot_aura_unittest.cc" ]
93 } 100 }
94 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698