| 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 21 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 | 33 |
| 34 executable("pdfium_test") { | 34 executable("pdfium_test") { |
| 35 testonly = true | 35 testonly = true |
| 36 sources = [ | 36 sources = [ |
| 37 "image_diff_png.cc", | 37 "image_diff_png.cc", |
| 38 "image_diff_png.h", | 38 "image_diff_png.h", |
| 39 "pdfium_test.cc", | 39 "pdfium_test.cc", |
| 40 ] | 40 ] |
| 41 deps = [ | 41 deps = [ |
| 42 "../:pdfium", |
| 43 "../:test_support", |
| 42 "//build/config/sanitizers:deps", | 44 "//build/config/sanitizers:deps", |
| 43 "//third_party/pdfium:pdfium", | |
| 44 "//third_party/pdfium:test_support", | |
| 45 | 45 |
| 46 # Regardless of whether the library ships against system freetype, | 46 # Regardless of whether the library ships against system freetype, |
| 47 # always link this binary against the bundled one for consistency | 47 # always link this binary against the bundled one for consistency |
| 48 # of results across platforms. | 48 # of results across platforms. |
| 49 "//third_party/pdfium/third_party:fx_freetype", | 49 "../third_party:fx_freetype", |
| 50 ] | 50 ] |
| 51 if (!pdf_enable_xfa) { | 51 if (!pdf_enable_xfa) { |
| 52 deps += [ "../third_party:fx_lpng" ] | 52 deps += [ "../third_party:fx_lpng" ] |
| 53 } | 53 } |
| 54 if (pdf_enable_v8) { | 54 if (pdf_enable_v8) { |
| 55 deps += [ "//v8:v8_libplatform" ] | 55 deps += [ "//v8:v8_libplatform" ] |
| 56 include_dirs = [ | 56 include_dirs = [ |
| 57 "//v8", | 57 "//v8", |
| 58 "//v8/include", | 58 "//v8/include", |
| 59 ] | 59 ] |
| 60 configs += [ "//v8:external_startup_data" ] | 60 configs += [ "//v8:external_startup_data" ] |
| 61 } | 61 } |
| 62 if (pdf_use_skia) { | 62 if (pdf_use_skia) { |
| 63 deps += [ "//skia" ] | 63 deps += [ "//skia" ] |
| 64 } | 64 } |
| 65 configs += [ ":pdfium_samples_config" ] | 65 configs += [ ":pdfium_samples_config" ] |
| 66 } | 66 } |
| 67 | 67 |
| 68 executable("pdfium_diff") { | 68 executable("pdfium_diff") { |
| 69 testonly = true | 69 testonly = true |
| 70 sources = [ | 70 sources = [ |
| 71 "image_diff.cc", | 71 "image_diff.cc", |
| 72 "image_diff_png.cc", | 72 "image_diff_png.cc", |
| 73 "image_diff_png.h", | 73 "image_diff_png.h", |
| 74 ] | 74 ] |
| 75 deps = [ | 75 deps = [ |
| 76 "../:pdfium", |
| 76 "//build/config/sanitizers:deps", | 77 "//build/config/sanitizers:deps", |
| 77 "//third_party/pdfium", | |
| 78 ] | 78 ] |
| 79 if (!pdf_enable_xfa) { | 79 if (!pdf_enable_xfa) { |
| 80 deps += [ "../third_party:fx_lpng" ] | 80 deps += [ "../third_party:fx_lpng" ] |
| 81 } | 81 } |
| 82 configs -= [ "//build/config/compiler:chromium_code" ] | 82 configs -= [ "//build/config/compiler:chromium_code" ] |
| 83 configs += [ | 83 configs += [ |
| 84 ":pdfium_samples_config", | 84 ":pdfium_samples_config", |
| 85 "//build/config/compiler:no_chromium_code", | 85 "//build/config/compiler:no_chromium_code", |
| 86 ] | 86 ] |
| 87 } | 87 } |
| OLD | NEW |