| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |