From 44beca7313284a60c21b4973d42f993b8c248ec9 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 3 Mar 2016 17:04:49 -0500 Subject: Add option to GYP to use chromium clang plugins. This CL will enable the chromium-style checks when building. It is currently disabled by default as there are a lot of warnings. I only added this to GYP because there is no standalone GN build, so I have no way to test. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1760213002 . --- pdfium.gyp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/pdfium.gyp b/pdfium.gyp index 08d3f085f0..6c535373e3 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -6,6 +6,12 @@ 'variables': { # TODO(thakis): Enable this, pdfium:29 #'chromium_code': 1, + + 'variables': { + 'clang_use_chrome_plugins%': 0, + }, + 'clang_use_chrome_plugins%': '<(clang_use_chrome_plugins)', + 'pdf_use_skia%': 0, 'pdf_enable_v8%': 1, 'pdf_enable_xfa%': 0, # Set to 1 by standalone.gypi in a standalone build. @@ -16,6 +22,33 @@ # few methods are used from it. 'bundle_freetype%': 1, }], + ['clang_use_chrome_plugins==1', { + 'variables': { + 'conditions': [ + ['OS!="win"', { + 'variables': { + 'conditions': [ + ['OS=="mac" or OS=="ios"', { + 'clang_lib_path%': '