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

Side by Side Diff: BUILD.gn

Issue 319033002: Disable pointer-to-int conversion warning. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 6 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 | pdfium.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 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 pdf_use_skia = false 5 pdf_use_skia = false
6 6
7 config("pdfium_config") { 7 config("pdfium_config") {
8 cflags = [] 8 cflags = []
9 defines = [ 9 defines = [
10 "FOXIT_CHROME_BUILD", 10 "FOXIT_CHROME_BUILD",
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 "core/src/fxcodec/libjpeg/jpegint.h", 467 "core/src/fxcodec/libjpeg/jpegint.h",
468 "core/src/fxcodec/libjpeg/jpeglib.h", 468 "core/src/fxcodec/libjpeg/jpeglib.h",
469 "core/src/fxcodec/libjpeg/jversion.h", 469 "core/src/fxcodec/libjpeg/jversion.h",
470 "core/src/fxcodec/libjpeg/makefile", 470 "core/src/fxcodec/libjpeg/makefile",
471 "core/src/fxcodec/libjpeg/transupp.h", 471 "core/src/fxcodec/libjpeg/transupp.h",
472 ] 472 ]
473 configs -= [ "//build/config/compiler:chromium_code" ] 473 configs -= [ "//build/config/compiler:chromium_code" ]
474 if (is_posix) { 474 if (is_posix) {
475 configs -= [ "//build/config/gcc:no_exceptions" ] 475 configs -= [ "//build/config/gcc:no_exceptions" ]
476 } 476 }
477
478 if (is_posix) {
479 # core/src/fxcodec/fx_libopenjpeg/src/fx_mct.c does an pointer-to-int
480 # conversion to check that an address is 16-bit aligned (benign).
481 cflags_c = [ "-Wno-pointer-to-int-cast" ]
482 }
477 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] 483 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ]
478 } 484 }
479 485
480 static_library("fxcrt") { 486 static_library("fxcrt") {
481 sources = [ 487 sources = [
482 "core/include/fxcrt/fx_arb.h", 488 "core/include/fxcrt/fx_arb.h",
483 "core/include/fxcrt/fx_basic.h", 489 "core/include/fxcrt/fx_basic.h",
484 "core/include/fxcrt/fx_coordinates.h", 490 "core/include/fxcrt/fx_coordinates.h",
485 "core/include/fxcrt/fx_ext.h", 491 "core/include/fxcrt/fx_ext.h",
486 "core/include/fxcrt/fx_memory.h", 492 "core/include/fxcrt/fx_memory.h",
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp", 845 "fpdfsdk/src/formfiller/FFL_RadioButton.cpp",
840 "fpdfsdk/src/formfiller/FFL_TextField.cpp", 846 "fpdfsdk/src/formfiller/FFL_TextField.cpp",
841 "fpdfsdk/src/formfiller/FFL_Utils.cpp", 847 "fpdfsdk/src/formfiller/FFL_Utils.cpp",
842 ] 848 ]
843 configs -= [ "//build/config/compiler:chromium_code" ] 849 configs -= [ "//build/config/compiler:chromium_code" ]
844 if (is_posix) { 850 if (is_posix) {
845 configs -= [ "//build/config/gcc:no_exceptions" ] 851 configs -= [ "//build/config/gcc:no_exceptions" ]
846 } 852 }
847 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ] 853 configs += [ ":pdfium_config", "//build/config/compiler:no_chromium_code" ]
848 } 854 }
OLDNEW
« no previous file with comments | « no previous file | pdfium.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698