OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import("//build_overrides/v8.gni") | 5 import("//build_overrides/v8.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 import("pdfium.gni") | 7 import("pdfium.gni") |
8 | 8 |
9 config("pdfium_config") { | 9 config("pdfium_config") { |
10 cflags = [] | 10 cflags = [] |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 "/wd4245", | 58 "/wd4245", |
59 "/wd4310", | 59 "/wd4310", |
60 "/wd4389", | 60 "/wd4389", |
61 "/wd4701", | 61 "/wd4701", |
62 "/wd4702", | 62 "/wd4702", |
63 "/wd4706", | 63 "/wd4706", |
64 "/wd4800", | 64 "/wd4800", |
65 ] | 65 ] |
66 } | 66 } |
67 | 67 |
68 if (is_clang) { | 68 if (is_clang || is_posix) { |
69 # TODO(thestig): Fix all instances, remove this, pdfium:29 | 69 # TODO(thestig): Fix all instances, remove this, pdfium:29 |
70 cflags += [ "-Wno-sign-compare" ] | 70 cflags += [ "-Wno-sign-compare" ] |
71 } | 71 } |
| 72 |
| 73 if (is_posix && !is_clang) { # When GCC. |
| 74 cflags += [ "-Wno-error=strict-overflow" ] |
| 75 } |
72 } | 76 } |
73 | 77 |
74 static_library("pdfium") { | 78 static_library("pdfium") { |
75 sources = [ | 79 sources = [ |
76 "fpdfsdk/include/fsdk_actionhandler.h", | 80 "fpdfsdk/include/fsdk_actionhandler.h", |
77 "fpdfsdk/include/fsdk_annothandler.h", | 81 "fpdfsdk/include/fsdk_annothandler.h", |
78 "fpdfsdk/include/fsdk_baseannot.h", | 82 "fpdfsdk/include/fsdk_baseannot.h", |
79 "fpdfsdk/include/fsdk_baseform.h", | 83 "fpdfsdk/include/fsdk_baseform.h", |
80 "fpdfsdk/src/fpdf_dataavail.cpp", | 84 "fpdfsdk/src/fpdf_dataavail.cpp", |
81 "fpdfsdk/src/fpdf_ext.cpp", | 85 "fpdfsdk/src/fpdf_ext.cpp", |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1523 "//v8:v8_libplatform", | 1527 "//v8:v8_libplatform", |
1524 ] | 1528 ] |
1525 include_dirs += [ | 1529 include_dirs += [ |
1526 "//v8", | 1530 "//v8", |
1527 "//v8/include", | 1531 "//v8/include", |
1528 ] | 1532 ] |
1529 configs += [ "//v8:external_startup_data" ] | 1533 configs += [ "//v8:external_startup_data" ] |
1530 } | 1534 } |
1531 configs += [ ":pdfium_config" ] | 1535 configs += [ ":pdfium_config" ] |
1532 } | 1536 } |
OLD | NEW |