diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-11-30 15:46:36 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-11-30 15:46:36 -0800 |
commit | c46d0005880b24d38d9e7eab2f446e9724e93537 (patch) | |
tree | 731f81c6fcb313a9e3c2b8e0ceaf21f3ce70b6b4 /samples/samples.gyp | |
parent | 40e9ff30b7f22b37c071dc9751f489d4cc22b0ee (diff) | |
download | pdfium-c46d0005880b24d38d9e7eab2f446e9724e93537.tar.xz |
Allow building non-XFA (master) on the XFA branch.
This first pass is GYP-only, will do GN in the next CL.
R=ochang@chromium.org
Review URL: https://codereview.chromium.org/1480403002 .
Diffstat (limited to 'samples/samples.gyp')
-rw-r--r-- | samples/samples.gyp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/samples/samples.gyp b/samples/samples.gyp index ff7b05823c..31fcbf7c72 100644 --- a/samples/samples.gyp +++ b/samples/samples.gyp @@ -5,6 +5,7 @@ { 'variables': { 'pdf_enable_v8%': 1, + 'pdf_enable_xfa%': 1, }, 'target_defaults': { 'defines' : [ @@ -27,6 +28,11 @@ '<(DEPTH)/v8/include', ], }], + ['pdf_enable_xfa==1', { + 'defines': [ + 'PDF_ENABLE_XFA', + ], + }], ], }, 'targets': [ @@ -51,6 +57,11 @@ ], }, 'conditions': [ + ['pdf_enable_xfa==0', { + 'dependencies': [ + '../third_party/third_party.gyp:fx_lpng', + ], + }], ['pdf_enable_v8==1', { 'dependencies': [ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', @@ -71,6 +82,13 @@ 'image_diff_png.h', 'image_diff_png.cc', ], + 'conditions': [ + ['pdf_enable_xfa==0', { + 'dependencies': [ + '../third_party/third_party.gyp:fx_lpng', + ], + }], + ], }, ], } |