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

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

Issue 974543002: Remove link_chrome_on_windows GN flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/snapshot/BUILD.gn ('k') | ui/views/examples/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 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") ],
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 deps += [ "//ui/aura:test_support" ] 155 deps += [ "//ui/aura:test_support" ]
156 } 156 }
157 if (use_x11) { 157 if (use_x11) {
158 deps += [ "//ui/gfx/x" ] 158 deps += [ "//ui/gfx/x" ]
159 } 159 }
160 if (use_ozone || !use_x11) { 160 if (use_ozone || !use_x11) {
161 sources -= [ "test/x11_property_change_waiter.cc" ] 161 sources -= [ "test/x11_property_change_waiter.cc" ]
162 } 162 }
163 } 163 }
164 164
165 if (!is_win || link_chrome_on_windows) { 165 test("views_unittests") {
166 test("views_unittests") { 166 sources = gypi_values.views_unittests_sources
167 sources = gypi_values.views_unittests_sources
168 167
169 deps = [ 168 deps = [
170 ":test_support", 169 ":test_support",
171 "//base", 170 "//base",
172 "//base:i18n", 171 "//base:i18n",
173 "//base/allocator", 172 "//base/allocator",
174 "//base/test:test_support", 173 "//base/test:test_support",
175 "//skia", 174 "//skia",
176 "//testing/gtest", 175 "//testing/gtest",
177 "//third_party/icu", 176 "//third_party/icu",
178 "//ui/accessibility", 177 "//ui/accessibility",
179 "//ui/aura", 178 "//ui/aura",
180 "//ui/base", 179 "//ui/base",
181 "//ui/base/ime", 180 "//ui/base/ime",
182 "//ui/base:test_support", 181 "//ui/base:test_support",
183 "//ui/compositor:test_support", 182 "//ui/compositor:test_support",
184 "//ui/events:test_support", 183 "//ui/events:test_support",
185 "//ui/events:events_base", 184 "//ui/events:events_base",
186 "//ui/events/platform", 185 "//ui/events/platform",
187 "//ui/gfx", 186 "//ui/gfx",
188 "//ui/gfx/geometry", 187 "//ui/gfx/geometry",
189 "//ui/gl", 188 "//ui/gl",
190 "//ui/resources", 189 "//ui/resources",
191 "//ui/strings", 190 "//ui/strings",
192 "//ui/wm", 191 "//ui/wm",
193 "//url", 192 "//url",
193 ]
194
195 if (is_win) {
196 deps += [
197 "//third_party/iaccessible2",
198 "//third_party/wtl",
199 ]
200 libs = [
201 "imm32.lib",
202 "oleacc.lib",
203 "comctl32.lib",
194 ] 204 ]
195 205
196 if (is_win) { 206 # TOOD(GYP)
197 deps += [ 207 #'msvs_settings': {
198 "//third_party/iaccessible2", 208 # 'VCManifestTool': {
199 "//third_party/wtl", 209 # 'AdditionalManifestFiles': [
200 ] 210 # '$(ProjectDir)\\test\\views_unittest.manifest',
201 libs = [ 211 # ],
202 "imm32.lib", 212 # },
203 "oleacc.lib", 213 #},
204 "comctl32.lib", 214 }
205 ]
206 215
207 # TOOD(GYP) 216 if (use_x11) {
208 #'msvs_settings': { 217 configs += [
209 # 'VCManifestTool': { 218 "//build/config/linux:x11",
210 # 'AdditionalManifestFiles': [ 219 "//build/config/linux:xext",
211 # '$(ProjectDir)\\test\\views_unittest.manifest', 220 ]
212 # ], 221 deps += [
213 # }, 222 "//ui/events/devices",
214 #}, 223 "//ui/events/platform/x11",
215 } 224 "//ui/gfx/x",
225 ]
226 }
216 227
217 if (use_x11) { 228 if (use_aura) {
218 configs += [ 229 sources += gypi_values.views_unittests_aura_sources
219 "//build/config/linux:x11", 230 deps += [ "//ui/aura:test_support" ]
220 "//build/config/linux:xext", 231 if (!is_chromeos) {
221 ] 232 sources += gypi_values.views_unittests_desktop_aura_sources
222 deps += [ 233 if (use_x11) {
223 "//ui/events/devices", 234 sources += gypi_values.views_unittests_desktop_aurax11_sources
224 "//ui/events/platform/x11",
225 "//ui/gfx/x",
226 ]
227 }
228
229 if (use_aura) {
230 sources += gypi_values.views_unittests_aura_sources
231 deps += [ "//ui/aura:test_support" ]
232 if (!is_chromeos) {
233 sources += gypi_values.views_unittests_desktop_aura_sources
234 if (use_x11) {
235 sources += gypi_values.views_unittests_desktop_aurax11_sources
236 }
237 } 235 }
238 } 236 }
239 if (!is_chromeos) { 237 }
240 sources += gypi_values.views_unittests_desktop_sources 238 if (!is_chromeos) {
241 } 239 sources += gypi_values.views_unittests_desktop_sources
242 if (use_x11) { 240 }
243 deps += [ 241 if (use_x11) {
244 "//ui/events/platform/x11", 242 deps += [
245 "//ui/gfx/x", 243 "//ui/events/platform/x11",
246 ] 244 "//ui/gfx/x",
247 } 245 ]
246 }
248 247
249 if (is_mac) { 248 if (is_mac) {
250 # views_unittests not yet compiling on Mac. http://crbug.com/378134 249 # views_unittests not yet compiling on Mac. http://crbug.com/378134
251 sources -= [ 250 sources -= [
252 "bubble/bubble_window_targeter_unittest.cc", 251 "bubble/bubble_window_targeter_unittest.cc",
253 "controls/button/custom_button_unittest.cc", 252 "controls/button/custom_button_unittest.cc",
254 "controls/button/menu_button_unittest.cc", 253 "controls/button/menu_button_unittest.cc",
255 "controls/menu/menu_controller_unittest.cc", 254 "controls/menu/menu_controller_unittest.cc",
256 "controls/native/native_view_host_unittest.cc", 255 "controls/native/native_view_host_unittest.cc",
257 "focus/focus_manager_unittest.cc", 256 "focus/focus_manager_unittest.cc",
258 "ime/input_method_bridge_unittest.cc", 257 "ime/input_method_bridge_unittest.cc",
259 "widget/widget_unittest.cc", 258 "widget/widget_unittest.cc",
260 "widget/window_reorderer_unittest.cc", 259 "widget/window_reorderer_unittest.cc",
261 ] 260 ]
262 }
263 } 261 }
264 } 262 }
265 263
266 if (is_mac) { 264 if (is_mac) {
267 test("macviews_interactive_ui_tests") { 265 test("macviews_interactive_ui_tests") {
268 sources = [ 266 sources = [
269 "cocoa/bridged_native_widget_interactive_uitest.mm", 267 "cocoa/bridged_native_widget_interactive_uitest.mm",
270 "run_all_unittests.cc", 268 "run_all_unittests.cc",
271 "widget/native_widget_mac_interactive_uitest.mm", 269 "widget/native_widget_mac_interactive_uitest.mm",
272 ] 270 ]
273 deps = [ 271 deps = [
274 ":test_support", 272 ":test_support",
275 ":views", 273 ":views",
276 "//base", 274 "//base",
277 "//base/test:test_support", 275 "//base/test:test_support",
278 "//skia", 276 "//skia",
279 "//testing/gtest", 277 "//testing/gtest",
280 "//ui/aura", 278 "//ui/aura",
281 "//ui/compositor", 279 "//ui/compositor",
282 "//ui/resources", 280 "//ui/resources",
283 "//ui/resources:ui_test_pak", 281 "//ui/resources:ui_test_pak",
284 "//ui/strings", 282 "//ui/strings",
285 "//ui/wm", 283 "//ui/wm",
286 ] 284 ]
287 } 285 }
288 } 286 }
OLDNEW
« no previous file with comments | « ui/snapshot/BUILD.gn ('k') | ui/views/examples/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698