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

Side by Side 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 printing gyp file. 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 unified diff | Download patch
« no previous file with comments | « no previous file | printing/backend/cups_connection.h » ('j') | printing/backend/cups_connection.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/sysroot.gni") 6 import("//build/config/sysroot.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//testing/test.gni") 8 import("//testing/test.gni")
9 if (is_mac) { 9 if (is_mac) {
10 import("//build/config/mac/mac_sdk.gni") 10 import("//build/config/mac/mac_sdk.gni")
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 # With a 10.8 deployment target, several other APIs are deprecated. 162 # With a 10.8 deployment target, several other APIs are deprecated.
163 # We're still on CUPS 1.4 until Linux no longer needs to support it, see 163 # We're still on CUPS 1.4 until Linux no longer needs to support it, see
164 # comment above. 164 # comment above.
165 cflags += [ "-Wno-deprecated-declarations" ] 165 cflags += [ "-Wno-deprecated-declarations" ]
166 } 166 }
167 167
168 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation 168 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
169 # of the print backend and enables a custom implementation instead. 169 # of the print backend and enables a custom implementation instead.
170 defines += [ "PRINT_BACKEND_AVAILABLE" ] 170 defines += [ "PRINT_BACKEND_AVAILABLE" ]
171 171
172 sources += [ 172 if (is_chromeos) {
173 "backend/cups_helper.cc", 173 sources += [
174 "backend/cups_helper.h", 174 "backend/cups_connection.cc",
Lei Zhang 2016/07/13 00:34:27 Can we use this backend on Mac as well?
skau 2016/07/14 20:43:05 It will be compatible. I did a test on my Macbook
Lei Zhang 2016/07/19 19:32:58 Sure. We don't have to do everything in one CL. Ju
175 "backend/print_backend_cups.cc", 175 "backend/cups_connection.h",
176 "backend/print_backend_cups.h", 176 "backend/cups_ipp_util.cc",
177 ] 177 "backend/cups_ipp_util.h",
178 "backend/cups_printer.cc",
179 "backend/cups_printer.h",
180 "backend/print_backend_cups_ipp.cc",
181 "backend/print_backend_cups_ipp.h",
182 ]
183 } else {
184 sources += [
185 "backend/cups_helper.cc",
186 "backend/cups_helper.h",
187 "backend/print_backend_cups.cc",
188 "backend/print_backend_cups.h",
189 ]
190 }
178 } 191 }
179 192
180 if (is_chromeos) { 193 if (is_chromeos) {
181 defines += [ "PRINT_BACKEND_AVAILABLE" ] 194 defines += [ "PRINT_BACKEND_AVAILABLE" ]
182 195
183 sources += [ 196 sources += [
184 "backend/print_backend_chromeos.cc", 197 "backend/print_backend_chromeos.cc",
185 "printing_context_no_system_dialog.cc", 198 "printing_context_no_system_dialog.cc",
186 "printing_context_no_system_dialog.h", 199 "printing_context_no_system_dialog.h",
187 ] 200 ]
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", 300 "android/java/src/org/chromium/printing/PrintManagerDelegate.java",
288 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", 301 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java",
289 "android/java/src/org/chromium/printing/Printable.java", 302 "android/java/src/org/chromium/printing/Printable.java",
290 "android/java/src/org/chromium/printing/PrintingContext.java", 303 "android/java/src/org/chromium/printing/PrintingContext.java",
291 "android/java/src/org/chromium/printing/PrintingContextInterface.java", 304 "android/java/src/org/chromium/printing/PrintingContextInterface.java",
292 "android/java/src/org/chromium/printing/PrintingController.java", 305 "android/java/src/org/chromium/printing/PrintingController.java",
293 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", 306 "android/java/src/org/chromium/printing/PrintingControllerImpl.java",
294 ] 307 ]
295 } 308 }
296 } 309 }
OLDNEW
« no previous file with comments | « no previous file | printing/backend/cups_connection.h » ('j') | printing/backend/cups_connection.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698