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

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

Issue 704363002: XXX test gn format everything (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years 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/snapshot/BUILD.gn ('k') | url/BUILD.gn » ('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 7
8 gypi_values = exec_script( 8 gypi_values = exec_script("//build/gypi_to_gn.py",
9 "//build/gypi_to_gn.py", 9 [ rebase_path("views.gyp") ],
10 [ rebase_path("views.gyp") ], 10 "scope",
11 "scope", 11 [ "views.gyp" ])
12 [ "views.gyp" ])
13 12
14 component("views") { 13 component("views") {
15 sources = gypi_values.views_sources 14 sources = gypi_values.views_sources
16 15
17 defines = [ "VIEWS_IMPLEMENTATION" ] 16 defines = [ "VIEWS_IMPLEMENTATION" ]
18 17
19 deps = [ 18 deps = [
20 "//base:i18n", 19 "//base:i18n",
21 "//base/third_party/dynamic_annotations", 20 "//base/third_party/dynamic_annotations",
22 "//skia", 21 "//skia",
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 if (is_chromeos) { 59 if (is_chromeos) {
61 sources -= [ 60 sources -= [
62 "linux_ui/status_icon_linux.h", 61 "linux_ui/status_icon_linux.h",
63 "linux_ui/status_icon_linux.cc", 62 "linux_ui/status_icon_linux.cc",
64 ] 63 ]
65 } 64 }
66 65
67 if (is_win) { 66 if (is_win) {
68 sources += gypi_values.views_win_sources 67 sources += gypi_values.views_win_sources
69 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t runcations. 68 cflags = [ "/wd4267" ] # TODO(jschuh): crbug.com/167187 fix size_t to int t runcations.
70 libs = [ "/imm32.lib", "oleacc.lib" ] 69 libs = [
70 "/imm32.lib",
71 "oleacc.lib",
72 ]
71 ldflags = [ "/DELAYLOAD:user32.dll" ] 73 ldflags = [ "/DELAYLOAD:user32.dll" ]
72 deps += [ 74 deps += [
73 "//third_party/iaccessible2", 75 "//third_party/iaccessible2",
74 "//third_party/wtl", 76 "//third_party/wtl",
75 ] 77 ]
76 } 78 }
77 79
78 if (use_ozone) { 80 if (use_ozone) {
79 deps += [ "//ui/ozone" ] 81 deps += [ "//ui/ozone" ]
80 } 82 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 ] 139 ]
138 } 140 }
139 if (use_aura) { 141 if (use_aura) {
140 sources += gypi_values.views_test_support_aura_sources 142 sources += gypi_values.views_test_support_aura_sources
141 deps += [ "//ui/aura:test_support" ] 143 deps += [ "//ui/aura:test_support" ]
142 } 144 }
143 if (use_x11) { 145 if (use_x11) {
144 deps += [ "//ui/gfx/x" ] 146 deps += [ "//ui/gfx/x" ]
145 } 147 }
146 if (use_ozone) { 148 if (use_ozone) {
147 sources -= [ 149 sources -= [ "test/x11_property_change_waiter.cc" ]
148 "test/x11_property_change_waiter.cc",
149 ]
150 } 150 }
151 } 151 }
152 152
153 test("views_unittests") { 153 test("views_unittests") {
154 sources = gypi_values.views_unittests_sources 154 sources = gypi_values.views_unittests_sources
155 155
156 deps = [ 156 deps = [
157 ":test_support", 157 ":test_support",
158 "//base", 158 "//base",
159 "//base:i18n", 159 "//base:i18n",
(...skipping 13 matching lines...) Expand all
173 "//ui/gfx", 173 "//ui/gfx",
174 "//ui/gfx/geometry", 174 "//ui/gfx/geometry",
175 "//ui/gl", 175 "//ui/gl",
176 "//ui/resources", 176 "//ui/resources",
177 "//ui/strings", 177 "//ui/strings",
178 "//ui/wm", 178 "//ui/wm",
179 "//url", 179 "//url",
180 ] 180 ]
181 181
182 if (is_chromeos) { 182 if (is_chromeos) {
183 sources -= [ 183 sources -= [ "ime/input_method_bridge_unittest.cc" ]
184 "ime/input_method_bridge_unittest.cc",
185 ]
186 } 184 }
187 185
188 if (is_win) { 186 if (is_win) {
189 deps += [ 187 deps += [
190 "//third_party/iaccessible2", 188 "//third_party/iaccessible2",
191 "//third_party/wtl", 189 "//third_party/wtl",
192 ] 190 ]
193 libs = [ 191 libs = [
194 "imm32.lib", 192 "imm32.lib",
195 "oleacc.lib", 193 "oleacc.lib",
196 "comctl32.lib", 194 "comctl32.lib",
197 ] 195 ]
196
198 # TOOD(GYP) 197 # TOOD(GYP)
199 #'msvs_settings': { 198 #'msvs_settings': {
200 # 'VCManifestTool': { 199 # 'VCManifestTool': {
201 # 'AdditionalManifestFiles': [ 200 # 'AdditionalManifestFiles': [
202 # '$(ProjectDir)\\test\\views_unittest.manifest', 201 # '$(ProjectDir)\\test\\views_unittest.manifest',
203 # ], 202 # ],
204 # }, 203 # },
205 #}, 204 #},
206 } 205 }
207 206
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 "//testing/gtest", 261 "//testing/gtest",
263 "//ui/aura", 262 "//ui/aura",
264 "//ui/compositor", 263 "//ui/compositor",
265 "//ui/resources", 264 "//ui/resources",
266 "//ui/resources:ui_test_pak", 265 "//ui/resources:ui_test_pak",
267 "//ui/strings", 266 "//ui/strings",
268 "//ui/wm", 267 "//ui/wm",
269 ] 268 ]
270 } 269 }
271 } 270 }
OLDNEW
« no previous file with comments | « ui/snapshot/BUILD.gn ('k') | url/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698