1# Copyright 2014 PDFium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'variables': { 7 'pdf_enable_v8%': 1, 8 'pdf_enable_xfa%': 0, # Set to 1 in standalone builds by standalone.gypi. 9 }, 10 'target_defaults': { 11 'defines' : [ 12 'PNG_PREFIX', 13 'PNGPREFIX_H', 14 'PNG_USE_READ_MACROS', 15 ], 16 'include_dirs': [ 17 # This is implicit in GN. 18 '<(DEPTH)', 19 '..', 20 ], 21 'conditions': [ 22 ['pdf_enable_v8==1', { 23 'defines': [ 24 'PDF_ENABLE_V8', 25 ], 26 'include_dirs': [ 27 '<(DEPTH)/v8', 28 '<(DEPTH)/v8/include', 29 ], 30 }], 31 ['pdf_enable_xfa==1', { 32 'defines': [ 33 'PDF_ENABLE_XFA', 34 ], 35 }], 36 ], 37 }, 38 'targets': [ 39 { 40 'target_name': 'pdfium_test', 41 'type': 'executable', 42 'dependencies': [ 43 '../pdfium.gyp:pdfium', 44 '../pdfium.gyp:test_support', 45 # Regardless of whether the library ships against system freetype, 46 # always link this binary against the bundled one for consistency 47 # of results across platforms. 48 '../third_party/third_party.gyp:fx_freetype', 49 ], 50 'sources': [ 51 'pdfium_test.cc', 52 'image_diff_png.cc', 53 ], 54 'link_settings': { 55 'libraries!': [ 56 '-lfreetype', 57 ], 58 }, 59 'conditions': [ 60 ['pdf_enable_xfa==0', { 61 'dependencies': [ 62 '../third_party/third_party.gyp:fx_lpng', 63 ], 64 }], 65 ['pdf_enable_v8==1', { 66 'dependencies': [ 67 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', 68 ], 69 }], 70 ], 71 }, 72 { 73 'target_name': 'pdfium_diff', 74 'type': 'executable', 75 'variables': { 'enable_wexit_time_destructors': 1, }, 76 'dependencies': [ 77 '../pdfium.gyp:pdfium', 78 '../third_party/third_party.gyp:pdfium_base', 79 ], 80 'sources': [ 81 'image_diff.cc', 82 'image_diff_png.h', 83 'image_diff_png.cc', 84 ], 85 'conditions': [ 86 ['pdf_enable_xfa==0', { 87 'dependencies': [ 88 '../third_party/third_party.gyp:fx_lpng', 89 ], 90 }], 91 ], 92 }, 93 ], 94} 95