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 import("../pdfium.gni") | 5 import("../pdfium.gni") |
6 | 6 |
7 group("samples") { | 7 group("samples") { |
8 testonly = true | 8 testonly = true |
9 deps = [ | 9 deps = [ |
10 ":pdfium_test", | 10 ":pdfium_test", |
11 ":pdfium_diff", | 11 ":pdfium_diff", |
12 ] | 12 ] |
13 } | 13 } |
14 | 14 |
15 config("pdfium_samples_config") { | 15 config("pdfium_samples_config") { |
16 defines = [ | 16 defines = [ |
17 "PNG_PREFIX", | 17 "PNG_PREFIX", |
18 "PNGPREFIX_H", | 18 "PNGPREFIX_H", |
19 "PNG_USE_READ_MACROS", | 19 "PNG_USE_READ_MACROS", |
20 ] | 20 ] |
| 21 include_dirs = [ ".." ] |
21 if (pdf_enable_v8) { | 22 if (pdf_enable_v8) { |
22 defines += [ | 23 defines += [ "PDF_ENABLE_V8" ] |
23 "PDF_ENABLE_V8", | |
24 ] | |
25 } | 24 } |
26 } | 25 } |
27 | 26 |
28 executable("pdfium_test") { | 27 executable("pdfium_test") { |
29 testonly = true | 28 testonly = true |
30 sources = [ | 29 sources = [ |
31 "image_diff_png.cc", | 30 "image_diff_png.cc", |
32 "pdfium_test.cc", | 31 "pdfium_test.cc", |
33 ] | 32 ] |
34 deps = [ | 33 deps = [ |
35 "//third_party/pdfium:pdfium", | 34 "//third_party/pdfium:pdfium", |
36 "//third_party/pdfium:test_support", | 35 "//third_party/pdfium:test_support", |
| 36 |
37 # Regardless of whether the library ships against system freetype, | 37 # Regardless of whether the library ships against system freetype, |
38 # always link this binary against the bundled one for consistency | 38 # always link this binary against the bundled one for consistency |
39 # of results across platforms. | 39 # of results across platforms. |
40 "//third_party/pdfium/third_party:fx_freetype", | 40 "//third_party/pdfium/third_party:fx_freetype", |
41 ":fx_lpng", | 41 ":fx_lpng", |
42 ] | 42 ] |
43 if (pdf_enable_v8) { | 43 if (pdf_enable_v8) { |
44 deps += [ | 44 deps += [ "//v8:v8_libplatform" ] |
45 "//v8:v8_libplatform", | |
46 ] | |
47 include_dirs = [ | 45 include_dirs = [ |
48 "//v8", | 46 "//v8", |
49 "//v8/include", | 47 "//v8/include", |
50 ] | 48 ] |
51 } | 49 } |
52 configs += [ ":pdfium_samples_config" ] | 50 configs += [ ":pdfium_samples_config" ] |
53 } | 51 } |
54 | 52 |
55 executable("pdfium_diff") { | 53 executable("pdfium_diff") { |
56 testonly = true | 54 testonly = true |
(...skipping 26 matching lines...) Expand all Loading... |
83 "fx_lpng/src/fx_pngrio.c", | 81 "fx_lpng/src/fx_pngrio.c", |
84 "fx_lpng/src/fx_pngrtran.c", | 82 "fx_lpng/src/fx_pngrtran.c", |
85 "fx_lpng/src/fx_pngrutil.c", | 83 "fx_lpng/src/fx_pngrutil.c", |
86 "fx_lpng/src/fx_pngset.c", | 84 "fx_lpng/src/fx_pngset.c", |
87 "fx_lpng/src/fx_pngtrans.c", | 85 "fx_lpng/src/fx_pngtrans.c", |
88 "fx_lpng/src/fx_pngwio.c", | 86 "fx_lpng/src/fx_pngwio.c", |
89 "fx_lpng/src/fx_pngwrite.c", | 87 "fx_lpng/src/fx_pngwrite.c", |
90 "fx_lpng/src/fx_pngwtran.c", | 88 "fx_lpng/src/fx_pngwtran.c", |
91 "fx_lpng/src/fx_pngwutil.c", | 89 "fx_lpng/src/fx_pngwutil.c", |
92 ] | 90 ] |
93 include_dirs = [ | 91 include_dirs = [ "../core/src/fxcodec/fx_zlib/include/" ] |
94 "../core/src/fxcodec/fx_zlib/include/", | |
95 ] | |
96 configs += [ ":pdfium_samples_config" ] | 92 configs += [ ":pdfium_samples_config" ] |
97 } | 93 } |
OLD | NEW |