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 20 matching lines...) Expand all Loading... |
31 "native_theme_dark_aura.h", | 31 "native_theme_dark_aura.h", |
32 "overlay_scrollbar_constants_aura.h", | 32 "overlay_scrollbar_constants_aura.h", |
33 ] | 33 ] |
34 } | 34 } |
35 | 35 |
36 defines = [ "NATIVE_THEME_IMPLEMENTATION" ] | 36 defines = [ "NATIVE_THEME_IMPLEMENTATION" ] |
37 | 37 |
38 deps = [ | 38 deps = [ |
39 "//base", | 39 "//base", |
40 "//base/third_party/dynamic_annotations", | 40 "//base/third_party/dynamic_annotations", |
| 41 "//cc/paint", |
41 "//skia", | 42 "//skia", |
42 "//ui/base", | 43 "//ui/base", |
43 "//ui/display", | 44 "//ui/display", |
44 "//ui/gfx", | 45 "//ui/gfx", |
45 "//ui/gfx/geometry", | 46 "//ui/gfx/geometry", |
46 "//ui/resources", | 47 "//ui/resources", |
47 ] | 48 ] |
48 | 49 |
49 if (is_mac) { | 50 if (is_mac) { |
50 libs = [ | 51 libs = [ |
51 "CoreGraphics.framework", | 52 "CoreGraphics.framework", |
52 "AppKit.framework", | 53 "AppKit.framework", |
53 ] | 54 ] |
54 } | 55 } |
55 } | 56 } |
56 | 57 |
57 if (is_win) { | 58 if (is_win) { |
58 component("native_theme_browser") { | 59 component("native_theme_browser") { |
59 defines = [ "NATIVE_THEME_IMPLEMENTATION" ] | 60 defines = [ "NATIVE_THEME_IMPLEMENTATION" ] |
60 | 61 |
61 # These files cannot work in the renderer on Windows. | 62 # These files cannot work in the renderer on Windows. |
62 sources = [ | 63 sources = [ |
63 "native_theme_win.cc", | 64 "native_theme_win.cc", |
64 "native_theme_win.h", | 65 "native_theme_win.h", |
65 ] | 66 ] |
66 | 67 |
67 deps = [ | 68 deps = [ |
68 ":native_theme", | 69 ":native_theme", |
69 "//base", | 70 "//base", |
| 71 "//cc/paint", |
70 "//ui/base", | 72 "//ui/base", |
71 "//ui/display", | 73 "//ui/display", |
72 "//ui/gfx", | 74 "//ui/gfx", |
73 ] | 75 ] |
74 } | 76 } |
75 } else { | 77 } else { |
76 source_set("native_theme_browser") { | 78 source_set("native_theme_browser") { |
77 } | 79 } |
78 } | 80 } |
79 | 81 |
80 test("native_theme_unittests") { | 82 test("native_theme_unittests") { |
81 sources = [] | 83 sources = [] |
82 | 84 |
83 if (use_aura) { | 85 if (use_aura) { |
84 sources += [ "native_theme_aura_unittest.cc" ] | 86 sources += [ "native_theme_aura_unittest.cc" ] |
85 } | 87 } |
86 | 88 |
87 if (is_mac) { | 89 if (is_mac) { |
88 sources += [ "native_theme_mac_unittest.cc" ] | 90 sources += [ "native_theme_mac_unittest.cc" ] |
89 } | 91 } |
90 | 92 |
91 deps = [ | 93 deps = [ |
92 ":native_theme", | 94 ":native_theme", |
93 "//base/test:run_all_unittests", | 95 "//base/test:run_all_unittests", |
94 "//base/test:test_support", | 96 "//base/test:test_support", |
95 "//skia:skia", | 97 "//skia", |
96 "//testing/gtest", | 98 "//testing/gtest", |
97 "//ui/base", | 99 "//ui/base", |
98 "//ui/gfx/geometry:geometry", | 100 "//ui/gfx/geometry:geometry", |
99 ] | 101 ] |
100 } | 102 } |
OLD | NEW |