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 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 deps += [ "../third_party:fx_lpng" ] | 53 deps += [ "../third_party:fx_lpng" ] |
54 } | 54 } |
55 if (pdf_enable_v8) { | 55 if (pdf_enable_v8) { |
56 deps += [ "//v8:v8_libplatform" ] | 56 deps += [ "//v8:v8_libplatform" ] |
57 include_dirs = [ | 57 include_dirs = [ |
58 "//v8", | 58 "//v8", |
59 "//v8/include", | 59 "//v8/include", |
60 ] | 60 ] |
61 configs += [ "//v8:external_startup_data" ] | 61 configs += [ "//v8:external_startup_data" ] |
62 } | 62 } |
63 if (pdf_use_skia) { | 63 if (pdf_use_skia || pdf_use_skia_paths) { |
64 deps += [ "//skia" ] | 64 deps += [ "//skia" ] |
65 } | 65 } |
66 configs += [ ":pdfium_samples_config" ] | 66 configs += [ ":pdfium_samples_config" ] |
67 } | 67 } |
68 | 68 |
69 executable("pdfium_diff") { | 69 executable("pdfium_diff") { |
70 testonly = true | 70 testonly = true |
71 sources = [ | 71 sources = [ |
72 "image_diff.cc", | 72 "image_diff.cc", |
73 "image_diff_png.cc", | 73 "image_diff_png.cc", |
74 "image_diff_png.h", | 74 "image_diff_png.h", |
75 ] | 75 ] |
76 deps = [ | 76 deps = [ |
77 "../:pdfium", | 77 "../:pdfium", |
78 "//build/config/sanitizers:deps", | 78 "//build/config/sanitizers:deps", |
79 "//build/win:default_exe_manifest", | 79 "//build/win:default_exe_manifest", |
80 ] | 80 ] |
81 if (!pdf_enable_xfa) { | 81 if (!pdf_enable_xfa) { |
82 deps += [ "../third_party:fx_lpng" ] | 82 deps += [ "../third_party:fx_lpng" ] |
83 } | 83 } |
84 configs -= [ "//build/config/compiler:chromium_code" ] | 84 configs -= [ "//build/config/compiler:chromium_code" ] |
85 configs += [ | 85 configs += [ |
86 ":pdfium_samples_config", | 86 ":pdfium_samples_config", |
87 "//build/config/compiler:no_chromium_code", | 87 "//build/config/compiler:no_chromium_code", |
88 ] | 88 ] |
89 } | 89 } |
OLD | NEW |