Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: samples/BUILD.gn

Issue 1395733006: Allow compiling PDFium without V8. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: PDFium Authors Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdfium.gyp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/BUILD.gn
diff --git a/samples/BUILD.gn b/samples/BUILD.gn
index 6f4518c17e1d6ce038520c499b608614264ebcde..5749de90f10d5e9ab2bb96c0a212f49006b296f1 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",
@@ -15,6 +17,11 @@ config("pdfium_samples_config") {
"PNGPREFIX_H",
"PNG_USE_READ_MACROS",
]
+ if (pdf_enable_v8) {
+ defines += [
+ "PDF_ENABLE_V8",
+ ]
+ }
}
executable("pdfium_test") {
@@ -28,13 +35,17 @@ executable("pdfium_test") {
# always link this binary against the bundled one for consistency
# of results across platforms.
"//third_party/pdfium/third_party:fx_freetype",
- "//v8:v8_libplatform",
":fx_lpng",
]
- include_dirs = [
- "//v8",
- "//v8/include",
- ]
+ if (pdf_enable_v8) {
+ deps += [
+ "//v8:v8_libplatform",
+ ]
+ include_dirs = [
+ "//v8",
+ "//v8/include",
+ ]
+ }
configs += [ ":pdfium_samples_config" ]
}
« no previous file with comments | « pdfium.gyp ('k') | samples/pdfium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698