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

Side by Side Diff: third_party/BUILD.gn

Issue 1954773002: Resolve macro redefinition warnings when built in Chromium (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: fix GN build as well Created 4 years, 7 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 | « no previous file | third_party/third_party.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 PDFium Authors. All rights reserved. 1 # Copyright 2014 PDFium 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("../pdfium.gni") 5 import("../pdfium.gni")
6 6
7 group("third_party") { 7 group("third_party") {
8 deps = [ 8 deps = [
9 ":bigint", 9 ":bigint",
10 ":fx_freetype", 10 ":fx_freetype",
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 "libpng16/pngstruct.h", 321 "libpng16/pngstruct.h",
322 "libpng16/pngtrans.c", 322 "libpng16/pngtrans.c",
323 "libpng16/pngwio.c", 323 "libpng16/pngwio.c",
324 "libpng16/pngwrite.c", 324 "libpng16/pngwrite.c",
325 "libpng16/pngwtran.c", 325 "libpng16/pngwtran.c",
326 "libpng16/pngwutil.c", 326 "libpng16/pngwutil.c",
327 ] 327 ]
328 } 328 }
329 329
330 if (pdf_enable_xfa) { 330 if (pdf_enable_xfa) {
331 config("fx_tiff_warnings") {
332 visibility = [ ":*" ]
333 if (is_win) {
334 cflags = [
335 "/wd4005", # Macro redefinition for 'WIN32_LEAN_AND_MEAN'.
336 ]
337 }
338 }
331 source_set("fx_tiff") { 339 source_set("fx_tiff") {
332 configs -= [ "//build/config/compiler:chromium_code" ] 340 configs -= [ "//build/config/compiler:chromium_code" ]
333 configs += [ 341 configs += [
334 "//build/config/compiler:no_chromium_code", 342 "//build/config/compiler:no_chromium_code",
335 "../:pdfium_config", 343 "../:pdfium_config",
344
345 ":fx_tiff_warnings",
336 ] 346 ]
337 deps = [ 347 deps = [
338 "//third_party:jpeg", 348 "//third_party:jpeg",
339 ] 349 ]
340 sources = [ 350 sources = [
341 "libtiff/tif_aux.c", 351 "libtiff/tif_aux.c",
342 "libtiff/tif_close.c", 352 "libtiff/tif_close.c",
343 "libtiff/tif_codec.c", 353 "libtiff/tif_codec.c",
344 "libtiff/tif_color.c", 354 "libtiff/tif_color.c",
345 "libtiff/tif_compress.c", 355 "libtiff/tif_compress.c",
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 sources = [ 434 sources = [
425 "base/logging.h", 435 "base/logging.h",
426 "base/macros.h", 436 "base/macros.h",
427 "base/numerics/safe_conversions.h", 437 "base/numerics/safe_conversions.h",
428 "base/numerics/safe_conversions_impl.h", 438 "base/numerics/safe_conversions_impl.h",
429 "base/numerics/safe_math.h", 439 "base/numerics/safe_math.h",
430 "base/numerics/safe_math_impl.h", 440 "base/numerics/safe_math_impl.h",
431 "base/stl_util.h", 441 "base/stl_util.h",
432 ] 442 ]
433 } 443 }
OLDNEW
« no previous file with comments | « no previous file | third_party/third_party.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698