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

Unified Diff: printing/features/features.gni

Issue 2458833005: Move printing defines to buildflag system. (Closed)
Patch Set: Merge Created 4 years, 1 month 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 | « printing/features/BUILD.gn ('k') | printing/print_job_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/features/features.gni
diff --git a/printing/features/features.gni b/printing/features/features.gni
new file mode 100644
index 0000000000000000000000000000000000000000..651b7a7a221169526a914fd03227e8cadc8e0559
--- /dev/null
+++ b/printing/features/features.gni
@@ -0,0 +1,24 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/chromecast_build.gni")
+import("//build/config/features.gni")
+
+declare_args() {
+ # Enable basic printing support and UI.
+ enable_basic_printing = !is_chromecast && !is_ios
+
+ # Enable printing with print preview. It does not imply
+ # enable_basic_printing. It's possible to build Chrome with preview only.
+ enable_print_preview = !is_android && !is_chromecast && !is_ios
+
+ use_cups = (is_desktop_linux || is_mac) && !is_chromecast
+}
+
+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.")
+}
« no previous file with comments | « printing/features/BUILD.gn ('k') | printing/print_job_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698