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("//build/config/sanitizers/sanitizers.gni") | 5 import("//build/config/sanitizers/sanitizers.gni") |
6 import("//build_overrides/v8.gni") | 6 import("//build_overrides/v8.gni") |
7 import("../pdfium.gni") | 7 import("../pdfium.gni") |
8 | 8 |
9 group("samples") { | 9 group("samples") { |
10 testonly = true | 10 testonly = true |
11 deps = [ | 11 deps = [ |
12 ":pdfium_test", | 12 ":pdfium_test", |
13 ":pdfium_diff", | 13 ":pdfium_diff", |
14 ] | 14 ] |
15 } | 15 } |
16 | 16 |
17 config("pdfium_samples_config") { | 17 config("pdfium_samples_config") { |
18 defines = [ | 18 defines = [ |
19 "PNG_PREFIX", | 19 "PNG_PREFIX", |
20 "PNGPREFIX_H", | |
21 "PNG_USE_READ_MACROS", | 20 "PNG_USE_READ_MACROS", |
22 ] | 21 ] |
23 include_dirs = [ ".." ] | 22 include_dirs = [ ".." ] |
24 if (pdf_enable_v8) { | 23 if (pdf_enable_v8) { |
25 defines += [ "PDF_ENABLE_V8", ] | 24 defines += [ "PDF_ENABLE_V8" ] |
26 } | 25 } |
27 if (pdf_enable_xfa) { | 26 if (pdf_enable_xfa) { |
28 defines += [ "PDF_ENABLE_XFA", ] | 27 defines += [ "PDF_ENABLE_XFA" ] |
29 } | 28 } |
30 } | 29 } |
31 | 30 |
32 executable("pdfium_test") { | 31 executable("pdfium_test") { |
33 testonly = true | 32 testonly = true |
34 sources = [ | 33 sources = [ |
35 "pdfium_test.cc", | |
36 "image_diff_png.cc", | 34 "image_diff_png.cc", |
37 "image_diff_png.h", | 35 "image_diff_png.h", |
| 36 "pdfium_test.cc", |
38 ] | 37 ] |
39 deps = [ | 38 deps = [ |
40 "//build/config/sanitizers:deps", | 39 "//build/config/sanitizers:deps", |
41 "//third_party/pdfium:pdfium", | 40 "//third_party/pdfium:pdfium", |
42 "//third_party/pdfium:test_support", | 41 "//third_party/pdfium:test_support", |
43 | 42 |
44 # Regardless of whether the library ships against system freetype, | 43 # Regardless of whether the library ships against system freetype, |
45 # always link this binary against the bundled one for consistency | 44 # always link this binary against the bundled one for consistency |
46 # of results across platforms. | 45 # of results across platforms. |
47 "//third_party/pdfium/third_party:fx_freetype", | 46 "//third_party/pdfium/third_party:fx_freetype", |
(...skipping 25 matching lines...) Expand all Loading... |
73 ] | 72 ] |
74 if (!pdf_enable_xfa) { | 73 if (!pdf_enable_xfa) { |
75 deps += [ "../third_party:fx_lpng" ] | 74 deps += [ "../third_party:fx_lpng" ] |
76 } | 75 } |
77 configs -= [ "//build/config/compiler:chromium_code" ] | 76 configs -= [ "//build/config/compiler:chromium_code" ] |
78 configs += [ | 77 configs += [ |
79 ":pdfium_samples_config", | 78 ":pdfium_samples_config", |
80 "//build/config/compiler:no_chromium_code", | 79 "//build/config/compiler:no_chromium_code", |
81 ] | 80 ] |
82 } | 81 } |
OLD | NEW |