diff options
Diffstat (limited to 'samples/BUILD.gn')
-rw-r--r-- | samples/BUILD.gn | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/samples/BUILD.gn b/samples/BUILD.gn index 957b1b6b91..f3bcbda418 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" ] } |