| OLD | NEW |
| 1 # Copyright 2014 PDFium Authors. All rights reserved. | 1 # Copyright 2014 PDFium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 { | 5 { |
| 6 'variables': { |
| 7 'pdf_enable_v8%': 1, |
| 8 }, |
| 6 'target_defaults': { | 9 'target_defaults': { |
| 7 'type': 'executable', | 10 'type': 'executable', |
| 8 'dependencies': [ | 11 'dependencies': [ |
| 9 '../pdfium.gyp:pdfium', | 12 '../pdfium.gyp:pdfium', |
| 10 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | |
| 11 ], | 13 ], |
| 12 'include_dirs': [ | 14 'include_dirs': [ |
| 13 '<(DEPTH)', | 15 '<(DEPTH)', |
| 14 '<(DEPTH)/v8', | |
| 15 '<(DEPTH)/v8/include', | |
| 16 ], | 16 ], |
| 17 'defines' : [ | 17 'defines' : [ |
| 18 'PNG_PREFIX', | 18 'PNG_PREFIX', |
| 19 'PNGPREFIX_H', | 19 'PNGPREFIX_H', |
| 20 'PNG_USE_READ_MACROS', | 20 'PNG_USE_READ_MACROS', |
| 21 ], | 21 ], |
| 22 'conditions': [ |
| 23 ['pdf_enable_v8==1', { |
| 24 'defines': [ |
| 25 'PDF_ENABLE_V8', |
| 26 ], |
| 27 'include_dirs': [ |
| 28 '<(DEPTH)/v8', |
| 29 '<(DEPTH)/v8/include', |
| 30 ], |
| 31 }], |
| 32 ], |
| 22 }, | 33 }, |
| 23 'targets': [ | 34 'targets': [ |
| 24 { | 35 { |
| 25 'target_name': 'pdfium_test', | 36 'target_name': 'pdfium_test', |
| 37 'type': 'executable', |
| 26 'sources': [ | 38 'sources': [ |
| 27 'pdfium_test.cc', | 39 'pdfium_test.cc', |
| 28 'image_diff_png.cc', | 40 'image_diff_png.cc', |
| 29 ], | 41 ], |
| 42 'conditions': [ |
| 43 ['pdf_enable_v8==1', { |
| 44 'dependencies': [ |
| 45 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
| 46 ], |
| 47 }], |
| 48 ], |
| 30 }, | 49 }, |
| 31 { | 50 { |
| 32 'target_name': 'pdfium_diff', | 51 'target_name': 'pdfium_diff', |
| 33 'type': 'executable', | 52 'type': 'executable', |
| 34 'variables': { 'enable_wexit_time_destructors': 1, }, | 53 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 35 'dependencies': [ | 54 'dependencies': [ |
| 36 '../pdfium.gyp:fxcodec', | 55 '../pdfium.gyp:fxcodec', |
| 37 '../third_party/third_party.gyp:pdfium_base', | 56 '../third_party/third_party.gyp:pdfium_base', |
| 38 ], | 57 ], |
| 39 'include_dirs': [ | 58 'include_dirs': [ |
| 40 '../../', | 59 '../../', |
| 41 ], | 60 ], |
| 42 'sources': [ | 61 'sources': [ |
| 43 'image_diff.cc', | 62 'image_diff.cc', |
| 44 'image_diff_png.h', | 63 'image_diff_png.h', |
| 45 'image_diff_png.cc', | 64 'image_diff_png.cc', |
| 46 ], | 65 ], |
| 47 }, | 66 }, |
| 48 ], | 67 ], |
| 49 } | 68 } |
| OLD | NEW |