| # Copyright 2014 PDFium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| import("//build/config/sanitizers/sanitizers.gni") |
| config("pdfium_samples_config") { |
| defines += [ "PDF_ENABLE_V8" ] |
| defines += [ "PDF_ENABLE_XFA" ] |
| defines += [ "PDF_ENABLE_SKIA" ] |
| defines += [ "PDF_ENABLE_ASAN" ] |
| defines += [ "ENABLE_CALLGRIND" ] |
| if (use_coverage && is_clang) { |
| ldflags += [ "--coverage" ] |
| executable("pdfium_test") { |
| "//build/config:exe_and_shlib_deps", |
| "//build/win:default_exe_manifest", |
| deps += [ "//v8:v8_libplatform" ] |
| configs += [ "//v8:external_startup_data" ] |
| if (pdf_use_skia || pdf_use_skia_paths) { |
| configs += [ ":pdfium_samples_config" ] |