| 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") |
| 6 |
| 5 group("samples") { | 7 group("samples") { |
| 6 deps = [ | 8 deps = [ |
| 7 ":pdfium_test", | 9 ":pdfium_test", |
| 8 ] | 10 ] |
| 9 } | 11 } |
| 10 | 12 |
| 11 config("pdfium_samples_config") { | 13 config("pdfium_samples_config") { |
| 12 defines = [ | 14 defines = [ |
| 13 "PNG_PREFIX", | 15 "PNG_PREFIX", |
| 14 "PNGPREFIX_H", | 16 "PNGPREFIX_H", |
| 15 "PNG_USE_READ_MACROS", | 17 "PNG_USE_READ_MACROS", |
| 16 ] | 18 ] |
| 19 if (pdf_enable_xfa) { |
| 20 defines += [ "PDF_ENABLE_XFA" ] |
| 21 } |
| 17 } | 22 } |
| 18 | 23 |
| 19 executable("pdfium_test") { | 24 executable("pdfium_test") { |
| 20 sources = [ | 25 sources = [ |
| 21 "image_diff_png.cc", | 26 "image_diff_png.cc", |
| 22 "pdfium_test.cc", | 27 "pdfium_test.cc", |
| 23 ] | 28 ] |
| 24 deps = [ | 29 deps = [ |
| 25 "//third_party/pdfium", | 30 "//third_party/pdfium", |
| 26 "//v8:v8_libplatform", | 31 "//v8:v8_libplatform", |
| 27 ] | 32 ] |
| 28 include_dirs = [ | 33 include_dirs = [ |
| 29 "//v8", | 34 "//v8", |
| 30 "//v8/include", | 35 "//v8/include", |
| 31 ] | 36 ] |
| 32 configs += [ ":pdfium_samples_config" ] | 37 configs += [ ":pdfium_samples_config" ] |
| 33 } | 38 } |
| 34 | 39 |
| 35 executable("pdfium_diff") { | 40 executable("pdfium_diff") { |
| 36 sources = [ | 41 sources = [ |
| 37 "image_diff.cc", | 42 "image_diff.cc", |
| 38 "image_diff_png.cc", | 43 "image_diff_png.cc", |
| 39 "image_diff_png.h", | 44 "image_diff_png.h", |
| 40 ] | 45 ] |
| 41 deps = [ | 46 deps = [ |
| 42 "//third_party/pdfium", | 47 "//third_party/pdfium", |
| 43 ] | 48 ] |
| 44 configs += [ ":pdfium_samples_config" ] | 49 configs += [ ":pdfium_samples_config" ] |
| 45 } | 50 } |
| OLD | NEW |