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

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

Issue 1011323003: MacViews: Fix GN build (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: too ambitious Created 5 years, 9 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
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/ui.gni") 6 import("//build/config/ui.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 gypi_values = exec_script("//build/gypi_to_gn.py", 9 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("views.gyp") ], 10 [ rebase_path("views.gyp") ],
11 "scope", 11 "scope",
12 [ "views.gyp" ]) 12 [ "views.gyp" ])
13 13
14 component("views") { 14 component("views") {
15 sources = gypi_values.views_sources 15 sources = gypi_values.views_sources
16 16
17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 17 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] 18 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
19 19
20 defines = [ "VIEWS_IMPLEMENTATION" ] 20 defines = [ "VIEWS_IMPLEMENTATION" ]
21 21
22 deps = [ 22 deps = [
23 "//base:i18n", 23 "//base:i18n",
24 "//base/third_party/dynamic_annotations", 24 "//base/third_party/dynamic_annotations",
25 "//skia", 25 "//skia",
26 "//third_party/icu", 26 "//third_party/icu",
27 "//ui/accessibility", 27 "//ui/accessibility",
28 "//ui/aura",
29 "//ui/native_theme", 28 "//ui/native_theme",
30 "//ui/resources", 29 "//ui/resources",
31 "//ui/strings", 30 "//ui/strings",
32 "//ui/wm",
33 "//url", 31 "//url",
34 ] 32 ]
35 33
36 public_deps = [ 34 public_deps = [
37 "//base", 35 "//base",
38 "//ui/accessibility:ax_gen", 36 "//ui/accessibility:ax_gen",
39 "//ui/base", 37 "//ui/base",
40 "//ui/base/ime", 38 "//ui/base/ime",
41 "//ui/compositor", 39 "//ui/compositor",
42 "//ui/events", 40 "//ui/events",
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ] 89 ]
92 deps += [ 90 deps += [
93 "//ui/events/devices", 91 "//ui/events/devices",
94 "//ui/events/platform/x11", 92 "//ui/events/platform/x11",
95 "//ui/gfx/x", 93 "//ui/gfx/x",
96 ] 94 ]
97 } 95 }
98 96
99 if (use_aura) { 97 if (use_aura) {
100 sources += gypi_values.views_aura_sources 98 sources += gypi_values.views_aura_sources
99 deps += [
100 "//ui/aura",
101 "//ui/wm",
102 ]
101 if (!is_chromeos) { 103 if (!is_chromeos) {
102 sources += gypi_values.views_desktop_aura_sources 104 sources += gypi_values.views_desktop_aura_sources
103 if (use_x11) { 105 if (use_x11) {
104 sources += gypi_values.views_desktop_aura_x11_sources 106 sources += gypi_values.views_desktop_aura_x11_sources
105 configs += [ "//build/config/linux:atk" ] 107 configs += [ "//build/config/linux:atk" ]
106 } else if (is_win) { 108 } else if (is_win) {
107 sources += gypi_values.views_desktop_aura_win_sources 109 sources += gypi_values.views_desktop_aura_win_sources
108 } else if (use_ozone) { 110 } else if (use_ozone) {
109 sources += gypi_values.views_desktop_aura_ozone_sources 111 sources += gypi_values.views_desktop_aura_ozone_sources
110 } 112 }
(...skipping 13 matching lines...) Expand all
124 sources = gypi_values.views_test_support_sources 126 sources = gypi_values.views_test_support_sources
125 127
126 public_deps = [ 128 public_deps = [
127 ":views", 129 ":views",
128 ] 130 ]
129 deps = [ 131 deps = [
130 "//base", 132 "//base",
131 "//ipc:test_support", 133 "//ipc:test_support",
132 "//skia", 134 "//skia",
133 "//testing/gtest", 135 "//testing/gtest",
134 "//ui/aura",
135 "//ui/base", 136 "//ui/base",
136 "//ui/base/ime", 137 "//ui/base/ime",
137 "//ui/compositor", 138 "//ui/compositor",
138 "//ui/compositor:test_support", 139 "//ui/compositor:test_support",
139 "//ui/events", 140 "//ui/events",
140 "//ui/events:events_base", 141 "//ui/events:events_base",
141 "//ui/events:test_support", 142 "//ui/events:test_support",
142 "//ui/events/platform", 143 "//ui/events/platform",
143 "//ui/gfx", 144 "//ui/gfx",
144 "//ui/gfx/geometry", 145 "//ui/gfx/geometry",
145 "//ui/wm",
146 ] 146 ]
147 147
148 if (is_chromeos || !use_x11) {
149 sources -= [
150 "test/ui_controls_factory_desktop_aurax11.cc",
151 "test/ui_controls_factory_desktop_aurax11.h",
152 ]
153 }
154 if (use_aura) { 148 if (use_aura) {
155 sources += gypi_values.views_test_support_aura_sources 149 sources += gypi_values.views_test_support_aura_sources
156 deps += [ "//ui/aura:test_support" ] 150 deps += [
151 "//ui/aura",
152 "//ui/aura:test_support",
153 "//ui/wm",
154 ]
155 if (use_x11 && !is_chromeos) {
156 sources += gypi_values.views_test_support_desktop_aura_x11_sources
157 }
157 } 158 }
158 if (use_x11) { 159 if (use_x11) {
159 deps += [ "//ui/gfx/x" ] 160 deps += [ "//ui/gfx/x" ]
160 } 161 }
161 if (use_ozone || !use_x11) { 162 if (use_ozone || !use_x11) {
162 sources -= [ "test/x11_property_change_waiter.cc" ] 163 sources -= [ "test/x11_property_change_waiter.cc" ]
163 } 164 }
164 } 165 }
165 166
166 test("views_unittests") { 167 test("views_unittests") {
167 sources = gypi_values.views_unittests_sources 168 sources = gypi_values.views_unittests_sources
168 169
169 deps = [ 170 deps = [
170 ":test_support", 171 ":test_support",
171 "//base", 172 "//base",
172 "//base:i18n", 173 "//base:i18n",
173 "//base/allocator", 174 "//base/allocator",
174 "//base/test:test_support", 175 "//base/test:test_support",
175 "//skia", 176 "//skia",
176 "//testing/gtest", 177 "//testing/gtest",
177 "//third_party/icu", 178 "//third_party/icu",
178 "//ui/accessibility", 179 "//ui/accessibility",
179 "//ui/aura",
180 "//ui/base", 180 "//ui/base",
181 "//ui/base/ime", 181 "//ui/base/ime",
182 "//ui/base:test_support", 182 "//ui/base:test_support",
183 "//ui/compositor:test_support", 183 "//ui/compositor:test_support",
184 "//ui/events:test_support", 184 "//ui/events:test_support",
185 "//ui/events:events_base", 185 "//ui/events:events_base",
186 "//ui/events/platform", 186 "//ui/events/platform",
187 "//ui/gfx", 187 "//ui/gfx",
188 "//ui/gfx/geometry", 188 "//ui/gfx/geometry",
189 "//ui/gl", 189 "//ui/gl",
190 "//ui/resources", 190 "//ui/resources",
191 "//ui/strings", 191 "//ui/strings",
192 "//ui/wm",
193 "//url", 192 "//url",
194 ] 193 ]
195 194
196 if (is_win) { 195 if (is_win) {
197 deps += [ 196 deps += [
198 "//third_party/iaccessible2", 197 "//third_party/iaccessible2",
199 "//third_party/wtl", 198 "//third_party/wtl",
200 ] 199 ]
201 libs = [ 200 libs = [
202 "imm32.lib", 201 "imm32.lib",
(...skipping 18 matching lines...) Expand all
221 ] 220 ]
222 deps += [ 221 deps += [
223 "//ui/events/devices", 222 "//ui/events/devices",
224 "//ui/events/platform/x11", 223 "//ui/events/platform/x11",
225 "//ui/gfx/x", 224 "//ui/gfx/x",
226 ] 225 ]
227 } 226 }
228 227
229 if (use_aura) { 228 if (use_aura) {
230 sources += gypi_values.views_unittests_aura_sources 229 sources += gypi_values.views_unittests_aura_sources
231 deps += [ "//ui/aura:test_support" ] 230 deps += [
231 "//ui/aura",
232 "//ui/aura:test_support",
233 "//ui/wm",
234 ]
232 if (!is_chromeos) { 235 if (!is_chromeos) {
233 sources += gypi_values.views_unittests_desktop_aura_sources 236 sources += gypi_values.views_unittests_desktop_aura_sources
234 if (use_x11) { 237 if (use_x11) {
235 sources += gypi_values.views_unittests_desktop_aurax11_sources 238 sources += gypi_values.views_unittests_desktop_aurax11_sources
236 } 239 }
237 } 240 }
238 } 241 }
239 if (!is_chromeos) { 242 if (!is_chromeos) {
240 sources += gypi_values.views_unittests_desktop_sources 243 sources += gypi_values.views_unittests_desktop_sources
241 } 244 }
(...skipping 27 matching lines...) Expand all
269 "run_all_unittests.cc", 272 "run_all_unittests.cc",
270 "widget/native_widget_mac_interactive_uitest.mm", 273 "widget/native_widget_mac_interactive_uitest.mm",
271 ] 274 ]
272 deps = [ 275 deps = [
273 ":test_support", 276 ":test_support",
274 ":views", 277 ":views",
275 "//base", 278 "//base",
276 "//base/test:test_support", 279 "//base/test:test_support",
277 "//skia", 280 "//skia",
278 "//testing/gtest", 281 "//testing/gtest",
279 "//ui/aura",
280 "//ui/compositor", 282 "//ui/compositor",
281 "//ui/resources", 283 "//ui/resources",
282 "//ui/resources:ui_test_pak", 284 "//ui/resources:ui_test_pak",
283 "//ui/strings", 285 "//ui/strings",
284 "//ui/wm",
285 ] 286 ]
286 } 287 }
287 } 288 }
OLDNEW
« no previous file with comments | « ui/gfx/BUILD.gn ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698