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("native_theme") { | 8 component("native_theme") { |
9 sources = [ | 9 sources = [ |
10 "common_theme.cc", | 10 "common_theme.cc", |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 "//skia", | 51 "//skia", |
52 "//ui/base", | 52 "//ui/base", |
53 "//ui/display", | 53 "//ui/display", |
54 "//ui/gfx", | 54 "//ui/gfx", |
55 "//ui/gfx/geometry", | 55 "//ui/gfx/geometry", |
56 "//ui/resources", | 56 "//ui/resources", |
57 ] | 57 ] |
58 | 58 |
59 if (is_mac) { | 59 if (is_mac) { |
60 libs = [ | 60 libs = [ |
| 61 "AppKit.framework", |
| 62 "ApplicationServices.framework", # Temporary hack around https://crbug.co
m/620127. Remove after https://crbug.com/622481 is fixed. |
61 "CoreGraphics.framework", | 63 "CoreGraphics.framework", |
62 "AppKit.framework", | |
63 ] | 64 ] |
64 } | 65 } |
65 } | 66 } |
66 | 67 |
67 test("native_theme_unittests") { | 68 test("native_theme_unittests") { |
68 sources = [] | 69 sources = [] |
69 | 70 |
70 if (use_aura) { | 71 if (use_aura) { |
71 sources += [ "native_theme_aura_unittest.cc" ] | 72 sources += [ "native_theme_aura_unittest.cc" ] |
72 } | 73 } |
73 | 74 |
74 if (is_mac) { | 75 if (is_mac) { |
75 sources += [ "native_theme_mac_unittest.cc" ] | 76 sources += [ "native_theme_mac_unittest.cc" ] |
76 } | 77 } |
77 | 78 |
78 deps = [ | 79 deps = [ |
79 ":native_theme", | 80 ":native_theme", |
80 "//base/test:run_all_unittests", | 81 "//base/test:run_all_unittests", |
81 "//base/test:test_support", | 82 "//base/test:test_support", |
82 "//skia:skia", | 83 "//skia:skia", |
83 "//testing/gtest", | 84 "//testing/gtest", |
84 "//ui/gfx/geometry:geometry", | 85 "//ui/gfx/geometry:geometry", |
85 ] | 86 ] |
86 } | 87 } |
OLD | NEW |