| Index: samples/BUILD.gn
|
| diff --git a/samples/BUILD.gn b/samples/BUILD.gn
|
| index ca7cafa68557846f5ec7e894fb885ddd56186dcf..6a5cf4e69c46e70fc52b1b47c59047f893085b17 100644
|
| --- a/samples/BUILD.gn
|
| +++ b/samples/BUILD.gn
|
| @@ -2,6 +2,8 @@
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +import("../pdfium.gni")
|
| +
|
| group("samples") {
|
| deps = [
|
| ":pdfium_test",
|
| @@ -14,6 +16,11 @@ config("pdfium_samples_config") {
|
| "PNGPREFIX_H",
|
| "PNG_USE_READ_MACROS",
|
| ]
|
| + if (pdf_enable_v8) {
|
| + defines += [
|
| + "PDF_ENABLE_V8",
|
| + ]
|
| + }
|
| }
|
|
|
| executable("pdfium_test") {
|
| @@ -23,12 +30,16 @@ executable("pdfium_test") {
|
| ]
|
| deps = [
|
| "//third_party/pdfium",
|
| - "//v8:v8_libplatform",
|
| - ]
|
| - include_dirs = [
|
| - "//v8",
|
| - "//v8/include",
|
| ]
|
| + if (pdf_enable_v8) {
|
| + deps += [
|
| + "//v8:v8_libplatform",
|
| + ]
|
| + include_dirs = [
|
| + "//v8",
|
| + "//v8/include",
|
| + ]
|
| + }
|
| configs += [ ":pdfium_samples_config" ]
|
| }
|
|
|
|
|