diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-01-09 14:49:47 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-01-09 14:49:47 -0800 |
commit | 541726611d9e66f7bc790e6477c0507db0a07d9e (patch) | |
tree | f66ef6d17a6987c8a9b6168269a67624605a9b11 /third_party | |
parent | 04681f3e11c6c44e921b76fc23f5a99f6efd2655 (diff) | |
download | pdfium-541726611d9e66f7bc790e6477c0507db0a07d9e.tar.xz |
Fix GN build under chromium checkout.
Original patch at https://codereview.chromium.org/817813004
This suppresses the fatal compilation warnings introduced by
https://pdfium.googlesource.com/pdfium/+/e4fc5ced45c8fcfbe2487ec64eab036bc7d57602
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/804253005
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/BUILD.gn | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/third_party/BUILD.gn b/third_party/BUILD.gn index 2c889afb0e..e6340c6401 100644 --- a/third_party/BUILD.gn +++ b/third_party/BUILD.gn @@ -11,6 +11,11 @@ group("third_party") { } static_library("bigint") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ + "//third_party/pdfium:pdfium_config", + "//build/config/compiler:no_chromium_code", + ] sources = [ "bigint/BigInteger.hh", "bigint/BigIntegerLibrary.hh", @@ -26,11 +31,10 @@ static_library("bigint") { } static_library("freetype") { - defines = [ - "FT2_BUILD_LIBRARY", - ] - include_dirs = [ - "freetype/include", + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ + "//third_party/pdfium:pdfium_config", + "//build/config/compiler:no_chromium_code", ] sources = [ "freetype/include/freetype.h", @@ -65,6 +69,11 @@ static_library("freetype") { } component("safemath") { + configs -= [ "//build/config/compiler:chromium_code" ] + configs += [ + "//third_party/pdfium:pdfium_config", + "//build/config/compiler:no_chromium_code", + ] sources = [ "logging.h", "macros.h", |