OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |