John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 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 | { |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 6 | 'variables': { |
| 7 | 'pdf_enable_v8%': 1, |
Tom Sepez | d2e023b | 2015-12-08 14:36:16 -0800 | [diff] [blame] | 8 | 'pdf_enable_xfa%': 0, # Set to 1 in standalone builds by standalone.gypi. |
Wei Li | 19fdd58 | 2016-03-14 14:50:36 -0700 | [diff] [blame] | 9 | 'pdf_use_skia%': 0, |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 10 | }, |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 11 | 'target_defaults': { |
John Abd-El-Malek | ca6c0d3 | 2015-02-17 13:26:45 -0800 | [diff] [blame] | 12 | 'defines' : [ |
| 13 | 'PNG_PREFIX', |
John Abd-El-Malek | ca6c0d3 | 2015-02-17 13:26:45 -0800 | [diff] [blame] | 14 | 'PNG_USE_READ_MACROS', |
| 15 | ], |
Lei Zhang | 461b634 | 2015-11-06 10:32:28 -0800 | [diff] [blame] | 16 | 'include_dirs': [ |
| 17 | # This is implicit in GN. |
| 18 | '<(DEPTH)', |
Lei Zhang | 8241df7 | 2015-11-06 14:38:48 -0800 | [diff] [blame] | 19 | '..', |
Lei Zhang | 461b634 | 2015-11-06 10:32:28 -0800 | [diff] [blame] | 20 | ], |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 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 | }], |
Tom Sepez | c46d000 | 2015-11-30 15:46:36 -0800 | [diff] [blame] | 31 | ['pdf_enable_xfa==1', { |
| 32 | 'defines': [ |
| 33 | 'PDF_ENABLE_XFA', |
| 34 | ], |
| 35 | }], |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 36 | ], |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 37 | }, |
| 38 | 'targets': [ |
| 39 | { |
| 40 | 'target_name': 'pdfium_test', |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 41 | 'type': 'executable', |
Tom Sepez | d831dc7 | 2015-10-19 16:04:22 -0700 | [diff] [blame] | 42 | 'dependencies': [ |
| 43 | '../pdfium.gyp:pdfium', |
| 44 | '../pdfium.gyp:test_support', |
Lei Zhang | 461b634 | 2015-11-06 10:32:28 -0800 | [diff] [blame] | 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', |
Tom Sepez | d831dc7 | 2015-10-19 16:04:22 -0700 | [diff] [blame] | 49 | ], |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 50 | 'sources': [ |
| 51 | 'pdfium_test.cc', |
Tom Sepez | af18cb3 | 2015-02-05 15:06:01 -0800 | [diff] [blame] | 52 | 'image_diff_png.cc', |
| 53 | ], |
Lei Zhang | 461b634 | 2015-11-06 10:32:28 -0800 | [diff] [blame] | 54 | 'link_settings': { |
| 55 | 'libraries!': [ |
| 56 | '-lfreetype', |
| 57 | ], |
| 58 | }, |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 59 | 'conditions': [ |
Tom Sepez | c46d000 | 2015-11-30 15:46:36 -0800 | [diff] [blame] | 60 | ['pdf_enable_xfa==0', { |
| 61 | 'dependencies': [ |
| 62 | '../third_party/third_party.gyp:fx_lpng', |
| 63 | ], |
| 64 | }], |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 65 | ['pdf_enable_v8==1', { |
| 66 | 'dependencies': [ |
machenbach | 3081cc0 | 2016-04-26 03:12:36 -0700 | [diff] [blame] | 67 | '<(DEPTH)/v8/src/v8.gyp:v8_libplatform', |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 68 | ], |
| 69 | }], |
Cary Clark | 399be5b | 2016-03-14 16:51:29 -0400 | [diff] [blame] | 70 | ['pdf_use_skia==1', { |
| 71 | 'defines': ['PDF_ENABLE_SKIA'], |
| 72 | 'dependencies': [ |
| 73 | '<(DEPTH)/skia/skia.gyp:skia', |
| 74 | ], |
| 75 | }], |
Tom Sepez | 452b4f3 | 2015-10-13 09:27:27 -0700 | [diff] [blame] | 76 | ], |
Tom Sepez | af18cb3 | 2015-02-05 15:06:01 -0800 | [diff] [blame] | 77 | }, |
| 78 | { |
| 79 | 'target_name': 'pdfium_diff', |
| 80 | 'type': 'executable', |
| 81 | 'variables': { 'enable_wexit_time_destructors': 1, }, |
| 82 | 'dependencies': [ |
Lei Zhang | 461b634 | 2015-11-06 10:32:28 -0800 | [diff] [blame] | 83 | '../pdfium.gyp:pdfium', |
Tom Sepez | dbe2a8e | 2015-02-05 15:21:19 -0800 | [diff] [blame] | 84 | '../third_party/third_party.gyp:pdfium_base', |
Tom Sepez | af18cb3 | 2015-02-05 15:06:01 -0800 | [diff] [blame] | 85 | ], |
Tom Sepez | af18cb3 | 2015-02-05 15:06:01 -0800 | [diff] [blame] | 86 | 'sources': [ |
| 87 | 'image_diff.cc', |
| 88 | 'image_diff_png.h', |
| 89 | 'image_diff_png.cc', |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 90 | ], |
Tom Sepez | c46d000 | 2015-11-30 15:46:36 -0800 | [diff] [blame] | 91 | 'conditions': [ |
| 92 | ['pdf_enable_xfa==0', { |
| 93 | 'dependencies': [ |
| 94 | '../third_party/third_party.gyp:fx_lpng', |
| 95 | ], |
| 96 | }], |
| 97 | ], |
John Abd-El-Malek | 3f3b45c | 2014-05-23 17:28:10 -0700 | [diff] [blame] | 98 | }, |
| 99 | ], |
John Abd-El-Malek | d68f9a3 | 2014-06-05 12:45:33 -0700 | [diff] [blame] | 100 | } |