summaryrefslogtreecommitdiff
path: root/samples/BUILD.gn
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-06-22 12:20:58 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-06-22 19:38:17 +0000
commit143959dba65c78f404a5d8984edb5ec5e507325e (patch)
treed530dd8485ea3f457952eefe5bc8b6958b1cf8c9 /samples/BUILD.gn
parentb32a949d667600cb33e80e1bb8c97a23d96f27d9 (diff)
downloadpdfium-143959dba65c78f404a5d8984edb5ec5e507325e.tar.xz
Move image_diff code into testing/image_diff/
It is not actually a sample program to demonstrate how to use PDFium APIs. It is more of a test utility program. Remove header include dependency from samples/ to core/, to set a good example. Change-Id: Idd5d567c82314bcf0e4a7bec8a3210e7d57226ee Reviewed-on: https://pdfium-review.googlesource.com/6871 Reviewed-by: dsinclair <dsinclair@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'samples/BUILD.gn')
-rw-r--r--samples/BUILD.gn29
1 files changed, 1 insertions, 28 deletions
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index 779d4f3f31..59ab4b4a11 100644
--- a/samples/BUILD.gn
+++ b/samples/BUILD.gn
@@ -8,7 +8,6 @@ import("../pdfium.gni")
group("samples") {
testonly = true
deps = [
- ":pdfium_diff",
":pdfium_test",
]
}
@@ -46,19 +45,15 @@ config("pdfium_samples_config") {
executable("pdfium_test") {
testonly = true
sources = [
- "image_diff_png.cc",
- "image_diff_png.h",
"pdfium_test.cc",
]
deps = [
+ "../:image_diff",
"../:pdfium",
"../:test_support",
"//build/config:exe_and_shlib_deps",
"//build/win:default_exe_manifest",
]
- if (!pdf_enable_xfa) {
- deps += [ "../third_party:fx_lpng" ]
- }
if (pdf_enable_v8) {
deps += [ "//v8:v8_libplatform" ]
include_dirs = [
@@ -72,25 +67,3 @@ executable("pdfium_test") {
}
configs += [ ":pdfium_samples_config" ]
}
-
-executable("pdfium_diff") {
- testonly = true
- sources = [
- "image_diff.cc",
- "image_diff_png.cc",
- "image_diff_png.h",
- ]
- deps = [
- "../:pdfium",
- "//build/config:exe_and_shlib_deps",
- "//build/win:default_exe_manifest",
- ]
- if (!pdf_enable_xfa) {
- deps += [ "../third_party:fx_lpng" ]
- }
- configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [
- ":pdfium_samples_config",
- "//build/config/compiler:no_chromium_code",
- ]
-}