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