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

Unified Diff: samples/BUILD.gn

Issue 925763003: Fix pdfium_test build inside Chromium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: rebase Created 5 years, 10 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 | « no previous file | samples/samples.gyp » ('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 6bd2a8135999cedc3e109c0510a122def87f380d..ca7cafa68557846f5ec7e894fb885ddd56186dcf 100644
--- a/samples/BUILD.gn
+++ b/samples/BUILD.gn
@@ -8,6 +8,14 @@ group("samples") {
]
}
+config("pdfium_samples_config") {
+ defines = [
+ "PNG_PREFIX",
+ "PNGPREFIX_H",
+ "PNG_USE_READ_MACROS",
+ ]
+}
+
executable("pdfium_test") {
sources = [
"image_diff_png.cc",
@@ -21,6 +29,7 @@ executable("pdfium_test") {
"//v8",
"//v8/include",
]
+ configs += [ ":pdfium_samples_config" ]
}
executable("pdfium_diff") {
@@ -32,4 +41,5 @@ executable("pdfium_diff") {
deps = [
"//third_party/pdfium",
]
+ configs += [ ":pdfium_samples_config" ]
}
« no previous file with comments | « no previous file | samples/samples.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698