Index: samples/samples.gyp |
diff --git a/samples/samples.gyp b/samples/samples.gyp |
index 97497ee2d909778ff543beebd62a8ad7fecb03d1..e39af208823294ef67cf0a146e87aed0bcae2ec2 100644 |
--- a/samples/samples.gyp |
+++ b/samples/samples.gyp |
@@ -3,30 +3,49 @@ |
# found in the LICENSE file. |
{ |
+ 'variables': { |
+ 'pdf_enable_v8%': 1, |
+ }, |
'target_defaults': { |
'type': 'executable', |
'dependencies': [ |
'../pdfium.gyp:pdfium', |
- '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
], |
'include_dirs': [ |
'<(DEPTH)', |
- '<(DEPTH)/v8', |
- '<(DEPTH)/v8/include', |
], |
'defines' : [ |
'PNG_PREFIX', |
'PNGPREFIX_H', |
'PNG_USE_READ_MACROS', |
], |
+ 'conditions': [ |
+ ['pdf_enable_v8==1', { |
+ 'defines': [ |
+ 'PDF_ENABLE_V8', |
+ ], |
+ 'include_dirs': [ |
+ '<(DEPTH)/v8', |
+ '<(DEPTH)/v8/include', |
+ ], |
+ }], |
+ ], |
}, |
'targets': [ |
{ |
'target_name': 'pdfium_test', |
+ 'type': 'executable', |
'sources': [ |
'pdfium_test.cc', |
'image_diff_png.cc', |
], |
+ 'conditions': [ |
+ ['pdf_enable_v8==1', { |
+ 'dependencies': [ |
+ '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
+ ], |
+ }], |
+ ], |
}, |
{ |
'target_name': 'pdfium_diff', |