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

Unified Diff: printing/BUILD.gn

Issue 2105463002: Create a new print backend for the updated CUPS APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos. Created 4 years, 5 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 | printing/backend/cups_connection.h » ('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 fbbf79cde972628f74133d6bf2393cf4ebb0ac8c..26524b9cc2dc14618dcacf26ba73e6742aa497c1 100644
--- a/printing/BUILD.gn
+++ b/printing/BUILD.gn
@@ -169,12 +169,27 @@ component("printing") {
# of the print backend and enables a custom implementation instead.
defines += [ "PRINT_BACKEND_AVAILABLE" ]
- sources += [
- "backend/cups_helper.cc",
- "backend/cups_helper.h",
- "backend/print_backend_cups.cc",
- "backend/print_backend_cups.h",
- ]
+ if (is_chromeos) {
+ sources += [
+ "backend/cups_connection.cc",
+ "backend/cups_connection.h",
+ "backend/cups_deleters.cc",
+ "backend/cups_deleters.h",
+ "backend/cups_ipp_util.cc",
+ "backend/cups_ipp_util.h",
+ "backend/cups_printer.cc",
+ "backend/cups_printer.h",
+ "backend/print_backend_cups_ipp.cc",
+ "backend/print_backend_cups_ipp.h",
+ ]
+ } else {
+ sources += [
+ "backend/cups_helper.cc",
+ "backend/cups_helper.h",
+ "backend/print_backend_cups.cc",
+ "backend/print_backend_cups.h",
+ ]
+ }
}
if (is_chromeos) {
@@ -240,7 +255,12 @@ test("printing_unittests") {
if (use_cups) {
configs += [ ":cups" ]
- sources += [ "backend/cups_helper_unittest.cc" ]
+
+ if (is_chromeos) {
+ sources += [ "backend/cups_ipp_util_unittest.cc" ]
+ } else {
+ sources += [ "backend/cups_helper_unittest.cc" ]
+ }
}
}
« no previous file with comments | « no previous file | printing/backend/cups_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698