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

Unified Diff: printing/BUILD.gn

Issue 2576573002: Move enable_pdf to a buildflag header. (Closed)
Patch Set: No Chromecast Created 4 years 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 | « pdf/features.gni ('k') | printing/features/features.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/BUILD.gn
diff --git a/printing/BUILD.gn b/printing/BUILD.gn
index b3ffe9529b2ef62f362efb02d5c9c3c6280a29b7..159f4364bbde8aa4fc46c125e583acc77ef33ebb 100644
--- a/printing/BUILD.gn
+++ b/printing/BUILD.gn
@@ -5,6 +5,7 @@
import("//build/config/features.gni")
import("//build/config/sysroot.gni")
import("//build/config/ui.gni")
+import("//pdf/features.gni")
import("//printing/features/features.gni")
import("//testing/test.gni")
if (is_mac) {
@@ -14,6 +15,13 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
+if ((enable_basic_printing && is_win) || enable_print_preview) {
+ # Windows basic printing or print preview requires pdf enabled.
+ assert(enable_pdf,
+ "Windows basic printing or print preview needs pdf: " +
+ "set enable_pdf=true.")
+}
+
component("printing") {
sources = [
"backend/print_backend.cc",
« no previous file with comments | « pdf/features.gni ('k') | printing/features/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698