From 09ca162bb06543d914758db7e6387c250cef8a1b Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Mon, 7 Mar 2016 14:52:12 -0500 Subject: Reland "Add option to GYP to use chromium clang plugins." This reverts commit 5ad8474335798295a9c502999324635845d28ff7. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1772713002 . --- pdfium.gyp | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'pdfium.gyp') diff --git a/pdfium.gyp b/pdfium.gyp index 88bcc028c4..c0462a4189 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -6,6 +6,12 @@ 'variables': { # TODO(thakis): Enable this, pdfium:29 #'chromium_code': 1, + + 'variables': { + 'clang_use_pdfium_plugins%': 0, + }, + 'clang_use_pdfium_plugins%': '<(clang_use_pdfium_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_pdfium_plugins==1', { + 'variables': { + 'conditions': [ + ['OS!="win"', { + 'variables': { + 'conditions': [ + ['OS=="mac" or OS=="ios"', { + 'clang_lib_path%': '