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

Unified Diff: printing/printing.gyp

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 | « printing/backend/print_backend_cups_ipp.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: printing/printing.gyp
diff --git a/printing/printing.gyp b/printing/printing.gyp
index be202cbfdb838df6337f342c91c59be37cda7058..695870cac0611e7b13d031d57216358fc0a41028 100644
--- a/printing/printing.gyp
+++ b/printing/printing.gyp
@@ -72,7 +72,6 @@
'print_settings_initializer_win.h',
'printed_document.cc',
'printed_document.h',
- 'printed_document_linux.cc',
'printed_document_mac.cc',
'printed_document_win.cc',
'printed_page.cc',
@@ -174,10 +173,28 @@
# of the print backend and enables a custom implementation instead.
'PRINT_BACKEND_AVAILABLE',
],
- 'sources': [
- 'backend/cups_helper.cc',
- 'backend/cups_helper.h',
- 'backend/print_backend_cups.cc',
+
+ 'conditions': [
+ ['chromeos==1', {
+ 'sources': [
+ 'backend/cups_connection.cc',
+ 'backend/cups_connection.h',
+ 'backend/cups_deleter.cc',
+ 'backend/cups_deleter.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',
+ ],
+ }, { # chromeos==0
+ 'sources': [
+ 'backend/cups_helper.cc',
+ 'backend/cups_helper.h',
+ 'backend/print_backend_cups.cc',
+ ],
+ }],
],
}],
['OS=="linux" and chromeos==1', {
@@ -192,6 +209,7 @@
}],
['OS=="linux" and chromeos==0', {
'sources': [
+ 'printed_document_linux.cc',
'printing_context_linux.cc',
'printing_context_linux.h',
],
@@ -247,8 +265,12 @@
'defines': [
'USE_CUPS',
],
- 'sources': [
- 'backend/cups_helper_unittest.cc',
+ 'conditions': [
+ ['chromeos==1', {
+ 'sources': ['backend/cups_ipp_util_unittest.cc'],
+ }, {
+ 'sources': ['backend/cups_helper_unittest.cc'],
+ }],
],
}],
],
« no previous file with comments | « printing/backend/print_backend_cups_ipp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698