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 'target_defaults': { | 6 'target_defaults': { |
7 'defines' : [ | 7 'defines' : [ |
8 'PNG_PREFIX', | 8 'PNG_PREFIX', |
9 'PNGPREFIX_H', | 9 'PNGPREFIX_H', |
10 'PNG_USE_READ_MACROS', | 10 'PNG_USE_READ_MACROS', |
11 ], | 11 ], |
12 'include_dirs': [ | 12 'include_dirs': [ |
13 '<(DEPTH)', | 13 '<(DEPTH)', |
14 '<(DEPTH)/v8', | 14 '<(DEPTH)/v8', |
15 '<(DEPTH)/v8/include', | 15 '<(DEPTH)/v8/include', |
16 ], | 16 ], |
17 }, | 17 }, |
18 'targets': [ | 18 'targets': [ |
19 { | 19 { |
20 'target_name': 'pdfium_test', | 20 'target_name': 'pdfium_test', |
21 'type': 'executable', | 21 'type': 'executable', |
22 'dependencies': [ | 22 'dependencies': [ |
23 'fx_lpng', | 23 'fx_lpng', |
24 '../pdfium.gyp:pdfium', | 24 '../pdfium.gyp:pdfium', |
| 25 # Regardless of whether the library ships against system freetype, |
| 26 # always link this binary against the bundled one for consistency |
| 27 # of results across platforms. |
| 28 '../third_party/third_party.gyp:fx_freetype', |
25 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | 29 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
26 ], | 30 ], |
27 'sources': [ | 31 'sources': [ |
28 'pdfium_test.cc', | 32 'pdfium_test.cc', |
29 'image_diff_png.cc', | 33 'image_diff_png.cc', |
30 ], | 34 ], |
| 35 'link_settings': { |
| 36 'libraries!': [ |
| 37 '-lfreetype', |
| 38 ], |
| 39 }, |
31 }, | 40 }, |
32 { | 41 { |
33 'target_name': 'pdfium_diff', | 42 'target_name': 'pdfium_diff', |
34 'type': 'executable', | 43 'type': 'executable', |
35 'variables': { 'enable_wexit_time_destructors': 1, }, | 44 'variables': { 'enable_wexit_time_destructors': 1, }, |
36 'dependencies': [ | 45 'dependencies': [ |
37 'fx_lpng', | 46 'fx_lpng', |
38 '../pdfium.gyp:pdfium', | 47 '../pdfium.gyp:pdfium', |
39 '../third_party/third_party.gyp:pdfium_base', | 48 '../third_party/third_party.gyp:pdfium_base', |
40 ], | 49 ], |
(...skipping 29 matching lines...) Expand all Loading... |
70 'fx_lpng/src/fx_pngset.c', | 79 'fx_lpng/src/fx_pngset.c', |
71 'fx_lpng/src/fx_pngtrans.c', | 80 'fx_lpng/src/fx_pngtrans.c', |
72 'fx_lpng/src/fx_pngwio.c', | 81 'fx_lpng/src/fx_pngwio.c', |
73 'fx_lpng/src/fx_pngwrite.c', | 82 'fx_lpng/src/fx_pngwrite.c', |
74 'fx_lpng/src/fx_pngwtran.c', | 83 'fx_lpng/src/fx_pngwtran.c', |
75 'fx_lpng/src/fx_pngwutil.c', | 84 'fx_lpng/src/fx_pngwutil.c', |
76 ], | 85 ], |
77 }, | 86 }, |
78 ], | 87 ], |
79 } | 88 } |
OLD | NEW |