From 245ae9ce1bb854e5e3da400c6d8c8061d81953a9 Mon Sep 17 00:00:00 2001 From: weili Date: Tue, 10 May 2016 09:50:20 -0700 Subject: Make GYP and GN build consistent for third_party targets Remove several obsolete warnings from GYP build; Move disabled warning flags closer to the target instead of the whole package for GYP build; Use macro undefine instead of disabled warning for libtiff for GN build. Review-Url: https://codereview.chromium.org/1962863002 --- third_party/BUILD.gn | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'third_party/BUILD.gn') diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 1176e92875..b97a7858ad 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -328,22 +328,17 @@ source_set("fx_lpng") { } if (pdf_enable_xfa) { - config("fx_tiff_warnings") { - visibility = [ ":*" ] - if (is_win) { - cflags = [ - "/wd4005", # Macro redefinition for 'WIN32_LEAN_AND_MEAN'. - ] - } - } source_set("fx_tiff") { configs -= [ "//build/config/compiler:chromium_code" ] configs += [ "//build/config/compiler:no_chromium_code", "../:pdfium_config", - - ":fx_tiff_warnings", ] + if (is_win) { + # Need to undefine the macro since it is redefined in + # tif_ojpeg.c and tif_jpeg.c. + configs -= [ "//build/config/win:lean_and_mean" ] + } deps = [ "//third_party:jpeg", ] -- cgit v1.2.3