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

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

Issue 929793006: Update existing uses of /wd4267 to use the GN config (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@x64
Patch Set: Created 5 years, 10 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/base/ime/BUILD.gn ('k') | ui/message_center/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/ui.gni") 5 import("//build/config/ui.gni")
6 import("//testing/test.gni") 6 import("//testing/test.gni")
7 7
8 if (is_android) { 8 if (is_android) {
9 import("//build/config/android/config.gni") 9 import("//build/config/android/config.gni")
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 "win/dpi.h", 217 "win/dpi.h",
218 "win/hwnd_util.cc", 218 "win/hwnd_util.cc",
219 "win/hwnd_util.h", 219 "win/hwnd_util.h",
220 "win/scoped_set_map_mode.h", 220 "win/scoped_set_map_mode.h",
221 "win/singleton_hwnd.cc", 221 "win/singleton_hwnd.cc",
222 "win/singleton_hwnd.h", 222 "win/singleton_hwnd.h",
223 "win/window_impl.cc", 223 "win/window_impl.cc",
224 "win/window_impl.h", 224 "win/window_impl.h",
225 ] 225 ]
226 226
227 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
228 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
229
227 defines = [ "GFX_IMPLEMENTATION" ] 230 defines = [ "GFX_IMPLEMENTATION" ]
228 231
229 deps = [ 232 deps = [
230 ":gfx_export", 233 ":gfx_export",
231 "//base", 234 "//base",
232 "//base:i18n", 235 "//base:i18n",
233 "//base:base_static", 236 "//base:base_static",
234 "//base/third_party/dynamic_annotations", 237 "//base/third_party/dynamic_annotations",
235 "//skia", 238 "//skia",
236 "//third_party/harfbuzz-ng", 239 "//third_party/harfbuzz-ng",
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 "android", 303 "android",
301 "jnigraphics", 304 "jnigraphics",
302 ] 305 ]
303 } else { 306 } else {
304 sources -= [ "canvas_notimplemented.cc" ] 307 sources -= [ "canvas_notimplemented.cc" ]
305 } 308 }
306 309
307 # Windows. 310 # Windows.
308 if (is_win) { 311 if (is_win) {
309 cflags = [ 312 cflags = [
310 "/wd4267", # TODO(jschuh): C4267: http://crbug.com/167187 size_t -> int.
311 "/wd4324", # Structure was padded due to __declspec(align()), which is 313 "/wd4324", # Structure was padded due to __declspec(align()), which is
312 # uninteresting. 314 # uninteresting.
313 ] 315 ]
314 } else { 316 } else {
315 sources -= [ 317 sources -= [
316 "gdi_util.cc", 318 "gdi_util.cc",
317 "gdi_util.h", 319 "gdi_util.h",
318 "icon_util.cc", 320 "icon_util.cc",
319 "icon_util.h", 321 "icon_util.h",
320 ] 322 ]
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 "render_text_unittest.cc", 447 "render_text_unittest.cc",
446 "sequential_id_generator_unittest.cc", 448 "sequential_id_generator_unittest.cc",
447 "shadow_value_unittest.cc", 449 "shadow_value_unittest.cc",
448 "skbitmap_operations_unittest.cc", 450 "skbitmap_operations_unittest.cc",
449 "skrect_conversion_unittest.cc", 451 "skrect_conversion_unittest.cc",
450 "transform_util_unittest.cc", 452 "transform_util_unittest.cc",
451 "utf16_indexing_unittest.cc", 453 "utf16_indexing_unittest.cc",
452 ] 454 ]
453 } 455 }
454 456
457 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
458 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
459
455 deps = [ 460 deps = [
456 ":gfx", 461 ":gfx",
457 ":test_support", 462 ":test_support",
458 "//base", 463 "//base",
459 "//base/test:test_support", 464 "//base/test:test_support",
460 "//skia", 465 "//skia",
461 "//third_party/icu:icuuc", 466 "//third_party/icu:icuuc",
462 "//third_party/libpng", 467 "//third_party/libpng",
463 "//third_party/zlib", 468 "//third_party/zlib",
464 "//testing/gtest", 469 "//testing/gtest",
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 "/DELAYLOAD:d2d1.dll", 509 "/DELAYLOAD:d2d1.dll",
505 "/DELAYLOAD:d3d10_1.dll", 510 "/DELAYLOAD:d3d10_1.dll",
506 ] 511 ]
507 512
508 libs = [ 513 libs = [
509 "d2d1.lib", 514 "d2d1.lib",
510 "d3d10_1.lib", 515 "d3d10_1.lib",
511 "imm32.lib", 516 "imm32.lib",
512 "oleacc.lib", 517 "oleacc.lib",
513 ] 518 ]
514
515 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
516 cflags = [ "/wd4267" ]
517 } 519 }
518 } 520 }
519 521
520 if (is_android) { 522 if (is_android) {
521 generate_jni("gfx_jni_headers") { 523 generate_jni("gfx_jni_headers") {
522 sources = [ 524 sources = [
523 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java", 525 "../android/java/src/org/chromium/ui/gfx/BitmapHelper.java",
524 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java", 526 "../android/java/src/org/chromium/ui/gfx/DeviceDisplayInfo.java",
525 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java", 527 "../android/java/src/org/chromium/ui/gfx/ViewConfigurationHelper.java",
526 ] 528 ]
527 jni_package = "gfx" 529 jni_package = "gfx"
528 } 530 }
529 } 531 }
OLDNEW
« no previous file with comments | « ui/base/ime/BUILD.gn ('k') | ui/message_center/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698