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': { | 6 'variables': { |
7 'pdf_enable_v8%': 1, | 7 'pdf_enable_v8%': 1, |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'type': 'executable', | |
11 'dependencies': [ | |
12 '../pdfium.gyp:pdfium', | |
13 ], | |
14 'include_dirs': [ | |
15 '<(DEPTH)', | |
16 ], | |
17 'defines' : [ | 10 'defines' : [ |
18 'PNG_PREFIX', | 11 'PNG_PREFIX', |
19 'PNGPREFIX_H', | 12 'PNGPREFIX_H', |
20 'PNG_USE_READ_MACROS', | 13 'PNG_USE_READ_MACROS', |
21 ], | 14 ], |
| 15 'include_dirs': [ |
| 16 # This is implicit in GN. |
| 17 '<(DEPTH)', |
| 18 ], |
22 'conditions': [ | 19 'conditions': [ |
23 ['pdf_enable_v8==1', { | 20 ['pdf_enable_v8==1', { |
24 'defines': [ | 21 'defines': [ |
25 'PDF_ENABLE_V8', | 22 'PDF_ENABLE_V8', |
26 ], | 23 ], |
27 'include_dirs': [ | 24 'include_dirs': [ |
28 '<(DEPTH)/v8', | 25 '<(DEPTH)/v8', |
29 '<(DEPTH)/v8/include', | 26 '<(DEPTH)/v8/include', |
30 ], | 27 ], |
31 }], | 28 }], |
32 ], | 29 ], |
33 }, | 30 }, |
34 'targets': [ | 31 'targets': [ |
35 { | 32 { |
36 'target_name': 'pdfium_test', | 33 'target_name': 'pdfium_test', |
37 'type': 'executable', | 34 'type': 'executable', |
38 'dependencies': [ | 35 'dependencies': [ |
39 '../pdfium.gyp:pdfium', | 36 '../pdfium.gyp:pdfium', |
40 '../pdfium.gyp:test_support', | 37 '../pdfium.gyp:test_support', |
| 38 # Regardless of whether the library ships against system freetype, |
| 39 # always link this binary against the bundled one for consistency |
| 40 # of results across platforms. |
| 41 '../third_party/third_party.gyp:fx_freetype', |
41 ], | 42 ], |
42 'sources': [ | 43 'sources': [ |
43 'pdfium_test.cc', | 44 'pdfium_test.cc', |
44 'image_diff_png.cc', | 45 'image_diff_png.cc', |
45 ], | 46 ], |
| 47 'link_settings': { |
| 48 'libraries!': [ |
| 49 '-lfreetype', |
| 50 ], |
| 51 }, |
46 'conditions': [ | 52 'conditions': [ |
47 ['pdf_enable_v8==1', { | 53 ['pdf_enable_v8==1', { |
48 'dependencies': [ | 54 'dependencies': [ |
49 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', | 55 '<(DEPTH)/v8/tools/gyp/v8.gyp:v8_libplatform', |
50 ], | 56 ], |
51 }], | 57 }], |
52 ], | 58 ], |
53 }, | 59 }, |
54 { | 60 { |
55 'target_name': 'pdfium_diff', | 61 'target_name': 'pdfium_diff', |
56 'type': 'executable', | 62 'type': 'executable', |
57 'variables': { 'enable_wexit_time_destructors': 1, }, | 63 'variables': { 'enable_wexit_time_destructors': 1, }, |
58 'dependencies': [ | 64 'dependencies': [ |
59 '../pdfium.gyp:fxcodec', | 65 '../pdfium.gyp:pdfium', |
60 '../third_party/third_party.gyp:pdfium_base', | 66 '../third_party/third_party.gyp:pdfium_base', |
61 ], | 67 ], |
62 'include_dirs': [ | |
63 '../../', | |
64 ], | |
65 'sources': [ | 68 'sources': [ |
66 'image_diff.cc', | 69 'image_diff.cc', |
67 'image_diff_png.h', | 70 'image_diff_png.h', |
68 'image_diff_png.cc', | 71 'image_diff_png.cc', |
69 ], | 72 ], |
70 }, | 73 }, |
71 ], | 74 ], |
72 } | 75 } |
OLD | NEW |