diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-12 15:47:07 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-12 15:47:07 -0700 |
commit | a8a39e25af3c19bb91434fdf367cffa0e1536934 (patch) | |
tree | d6bfa30a756014ec79dfce75d6658ecf3778594a /pdfium.gyp | |
parent | 5ef9faa8e8f5593556d78f775d86f1e52e4c341a (diff) | |
download | pdfium-a8a39e25af3c19bb91434fdf367cffa0e1536934.tar.xz |
Allow building of XFA branch without XFA
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1399833002 .
Diffstat (limited to 'pdfium.gyp')
-rw-r--r-- | pdfium.gyp | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/pdfium.gyp b/pdfium.gyp index 72d1785d66..6ef54ab80d 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -1,6 +1,7 @@ { 'variables': { 'pdf_use_skia%': 0, + 'pdf_enable_xfa%': 1, 'conditions': [ ['OS=="linux"', { 'bundle_freetype%': 0, @@ -26,6 +27,9 @@ ['pdf_use_skia==1', { 'defines': ['_SKIA_SUPPORT_'], }], + ['pdf_enable_xfa==1', { + 'defines': ['PDF_ENABLE_XFA'], + }], ['OS=="linux"', { 'conditions': [ ['target_arch=="x64"', { @@ -625,9 +629,8 @@ { 'target_name': 'fpdfxfa', 'type': 'static_library', - 'ldflags': [ '-L<(PRODUCT_DIR)',], 'dependencies': [ - 'xfa.gyp:xfa', + 'javascript' ], 'sources': [ 'fpdfsdk/src/fpdfxfa/fpdfxfa_app.cpp', @@ -639,6 +642,14 @@ 'fpdfsdk/include/fpdfxfa/fpdfxfa_page.h', 'fpdfsdk/include/fpdfxfa/fpdfxfa_util.h', ], + 'ldflags': [ '-L<(PRODUCT_DIR)',], + 'conditions': [ + [ "pdf_enable_xfa==1", { + 'dependencies': [ + 'xfa.gyp:xfa', + ], + }], + ], }, { 'target_name': 'javascript', @@ -768,8 +779,14 @@ 'testing/fx_string_testhelpers.h', 'testing/fx_string_testhelpers.cpp', 'third_party/base/nonstd_unique_ptr_unittest.cpp', - 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp', - 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp', + ], + 'conditions': [ + ['pdf_enable_xfa==1', { + 'sources': [ + 'xfa/src/fxbarcode/pdf417/BC_PDF417HighLevelEncoder_unittest.cpp', + 'xfa/src/fxfa/src/parser/xfa_utils_imp_unittest.cpp', + ], + }], ], }, { |