summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-05-16 17:52:17 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-16 17:52:17 -0700
commit5f3b41bca725090391b9053a9435c86fa7b22df1 (patch)
tree2c2adf52a6cf127de85d1f1705b6c56b52b4fec2 /third_party
parent3857904e520ecb06bad545e4e4bfcf4e60dd1f52 (diff)
downloadpdfium-5f3b41bca725090391b9053a9435c86fa7b22df1.tar.xz
Use chromium_code standard for PDFium GYP compilation
Define and use chromium_code to be used in standalone PDFium GYP build so that PDFium code can have more stringent warning level. This is also enabled on GN build by default so that GYP and GN builds can have consistent compilation results. Also enable chromium_code for PDFium compilation in Chromium since most of the warnings are cleared. The left ones are clearly marked and will be addressed soon. A few more clean-ups for the build: -- Remove the suppression of sign-compare warnings for Clang since the code is clean and the warning can be re-enabled. -- Re-enable "treat warning as errors" on Mac -- Add a flag to make GCC build works as well. BUG=pdfium:29, pdfium:475 Review-Url: https://codereview.chromium.org/1985843002
Diffstat (limited to 'third_party')
-rw-r--r--third_party/third_party.gyp9
1 files changed, 8 insertions, 1 deletions
diff --git a/third_party/third_party.gyp b/third_party/third_party.gyp
index 2e03b59656..41db3b28db 100644
--- a/third_party/third_party.gyp
+++ b/third_party/third_party.gyp
@@ -85,6 +85,13 @@
'freetype/src/base/fttype1.c',
],
}],
+ ['os_posix==1 and clang==0', {
+ 'cflags': [
+ # open_face_PS_from_sfnt_stream() and open_face_from_buffer() in
+ # ftbase.h are unused. GCC needs this flag too.
+ '-Wno-unused-function',
+ ],
+ }],
],
'variables': {
'clang_warning_flags': [
@@ -122,7 +129,7 @@
'conditions': [
['os_posix==1', {
# library contains several enum vs non-enum conditionals.
- 'cflags': [ '-Wno-extra', ],
+ 'cflags': [ '-Wno-extra' ],
}],
],
'variables': {