| 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 'defines' : [ | 10 'defines' : [ |
| 8 'PNG_PREFIX', | 11 'PNG_PREFIX', |
| 9 'PNGPREFIX_H', | 12 'PNGPREFIX_H', |
| 10 'PNG_USE_READ_MACROS', | 13 'PNG_USE_READ_MACROS', |
| 11 ], | 14 ], |
| 12 'include_dirs': [ | 15 'include_dirs': [ |
| 13 '<(DEPTH)', | 16 '<(DEPTH)', |
| 14 '<(DEPTH)/v8', | 17 ], |
| 15 '<(DEPTH)/v8/include', | 18 'conditions': [ |
| 19 ['pdf_enable_v8==1', { |
| 20 'defines': [ |
| 21 'PDF_ENABLE_V8', |
| 22 ], |
| 23 'include_dirs': [ |
| 24 '<(DEPTH)/v8', |
| 25 '<(DEPTH)/v8/include', |
| 26 ], |
| 27 }], |
| 16 ], | 28 ], |
| 17 }, | 29 }, |
| 18 'targets': [ | 30 'targets': [ |
| 19 { | 31 { |
| 20 'target_name': 'pdfium_test', | 32 'target_name': 'pdfium_test', |
| 21 'type': 'executable', | 33 'type': 'executable', |
| 22 'dependencies': [ | 34 'dependencies': [ |
| 23 'fx_lpng', | 35 'fx_lpng', |
| 24 '../pdfium.gyp:pdfium', | 36 '../pdfium.gyp:pdfium', |
| 25 # Regardless of whether the library ships against system freetype, | 37 # Regardless of whether the library ships against system freetype, |
| 26 # always link this binary against the bundled one for consistency | 38 # always link this binary against the bundled one for consistency |
| 27 # of results across platforms. | 39 # of results across platforms. |
| 28 '../third_party/third_party.gyp:fx_freetype', | 40 '../third_party/third_party.gyp:fx_freetype', |
| 29 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | |
| 30 ], | 41 ], |
| 31 'sources': [ | 42 'sources': [ |
| 32 'pdfium_test.cc', | 43 'pdfium_test.cc', |
| 33 'image_diff_png.cc', | 44 'image_diff_png.cc', |
| 34 ], | 45 ], |
| 35 'link_settings': { | 46 'link_settings': { |
| 36 'libraries!': [ | 47 'libraries!': [ |
| 37 '-lfreetype', | 48 '-lfreetype', |
| 38 ], | 49 ], |
| 39 }, | 50 }, |
| 51 'conditions': [ |
| 52 ['pdf_enable_v8==1', { |
| 53 'dependencies': [ |
| 54 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
| 55 ], |
| 56 }], |
| 57 ], |
| 40 }, | 58 }, |
| 41 { | 59 { |
| 42 'target_name': 'pdfium_diff', | 60 'target_name': 'pdfium_diff', |
| 43 'type': 'executable', | 61 'type': 'executable', |
| 44 'variables': { 'enable_wexit_time_destructors': 1, }, | 62 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 45 'dependencies': [ | 63 'dependencies': [ |
| 46 'fx_lpng', | 64 'fx_lpng', |
| 47 '../pdfium.gyp:pdfium', | 65 '../pdfium.gyp:pdfium', |
| 48 '../third_party/third_party.gyp:pdfium_base', | 66 '../third_party/third_party.gyp:pdfium_base', |
| 49 ], | 67 ], |
| (...skipping 29 matching lines...) Expand all Loading... |
| 79 'fx_lpng/src/fx_pngset.c', | 97 'fx_lpng/src/fx_pngset.c', |
| 80 'fx_lpng/src/fx_pngtrans.c', | 98 'fx_lpng/src/fx_pngtrans.c', |
| 81 'fx_lpng/src/fx_pngwio.c', | 99 'fx_lpng/src/fx_pngwio.c', |
| 82 'fx_lpng/src/fx_pngwrite.c', | 100 'fx_lpng/src/fx_pngwrite.c', |
| 83 'fx_lpng/src/fx_pngwtran.c', | 101 'fx_lpng/src/fx_pngwtran.c', |
| 84 'fx_lpng/src/fx_pngwutil.c', | 102 'fx_lpng/src/fx_pngwutil.c', |
| 85 ], | 103 ], |
| 86 }, | 104 }, |
| 87 ], | 105 ], |
| 88 } | 106 } |
| OLD | NEW |