Chromium Code Reviews| Index: samples/BUILD.gn |
| diff --git a/samples/BUILD.gn b/samples/BUILD.gn |
| index 957b1b6b91f2671ae1260349beeb30b20b3a7214..f3bcbda418142dace69e455670c554ef40386435 100644 |
| --- a/samples/BUILD.gn |
| +++ b/samples/BUILD.gn |
| @@ -16,8 +16,11 @@ config("pdfium_samples_config") { |
| "PNGPREFIX_H", |
| "PNG_USE_READ_MACROS", |
| ] |
| + if (pdf_enable_v8) { |
| + defines += [ "PDF_ENABLE_V8", ] |
| + } |
| if (pdf_enable_xfa) { |
| - defines += [ "PDF_ENABLE_XFA" ] |
| + defines += [ "PDF_ENABLE_XFA", ] |
| } |
| } |
| @@ -28,12 +31,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" ] |
| } |