OLD | NEW |
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 Loading... |
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", |
175 "backend/print_backend_cups.cc", | 175 "backend/cups_connection.h", |
176 "backend/print_backend_cups.h", | 176 "backend/cups_deleters.cc", |
177 ] | 177 "backend/cups_deleters.h", |
| 178 "backend/cups_ipp_util.cc", |
| 179 "backend/cups_ipp_util.h", |
| 180 "backend/cups_printer.cc", |
| 181 "backend/cups_printer.h", |
| 182 "backend/print_backend_cups_ipp.cc", |
| 183 "backend/print_backend_cups_ipp.h", |
| 184 ] |
| 185 } else { |
| 186 sources += [ |
| 187 "backend/cups_helper.cc", |
| 188 "backend/cups_helper.h", |
| 189 "backend/print_backend_cups.cc", |
| 190 "backend/print_backend_cups.h", |
| 191 ] |
| 192 } |
178 } | 193 } |
179 | 194 |
180 if (is_chromeos) { | 195 if (is_chromeos) { |
181 defines += [ "PRINT_BACKEND_AVAILABLE" ] | 196 defines += [ "PRINT_BACKEND_AVAILABLE" ] |
182 | 197 |
183 sources += [ | 198 sources += [ |
184 "backend/print_backend_chromeos.cc", | 199 "backend/print_backend_chromeos.cc", |
185 "printing_context_no_system_dialog.cc", | 200 "printing_context_no_system_dialog.cc", |
186 "printing_context_no_system_dialog.h", | 201 "printing_context_no_system_dialog.h", |
187 ] | 202 ] |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 "//ui/gfx:test_support", | 248 "//ui/gfx:test_support", |
234 "//ui/gfx/geometry", | 249 "//ui/gfx/geometry", |
235 ] | 250 ] |
236 | 251 |
237 if (!is_android) { | 252 if (!is_android) { |
238 sources += [ "pdf_transform_unittest.cc" ] | 253 sources += [ "pdf_transform_unittest.cc" ] |
239 } | 254 } |
240 | 255 |
241 if (use_cups) { | 256 if (use_cups) { |
242 configs += [ ":cups" ] | 257 configs += [ ":cups" ] |
243 sources += [ "backend/cups_helper_unittest.cc" ] | 258 |
| 259 if (is_chromeos) { |
| 260 sources += [ "backend/cups_ipp_util_unittest.cc" ] |
| 261 } else { |
| 262 sources += [ "backend/cups_helper_unittest.cc" ] |
| 263 } |
244 } | 264 } |
245 } | 265 } |
246 | 266 |
247 if (use_cups) { | 267 if (use_cups) { |
248 config("cups") { | 268 config("cups") { |
249 defines = [ "USE_CUPS" ] | 269 defines = [ "USE_CUPS" ] |
250 | 270 |
251 if (is_mac) { | 271 if (is_mac) { |
252 libs = [ "cups" ] | 272 libs = [ "cups" ] |
253 lib_dirs = [ "$mac_sdk_path/usr/lib" ] | 273 lib_dirs = [ "$mac_sdk_path/usr/lib" ] |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", | 307 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", |
288 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", | 308 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", |
289 "android/java/src/org/chromium/printing/Printable.java", | 309 "android/java/src/org/chromium/printing/Printable.java", |
290 "android/java/src/org/chromium/printing/PrintingContext.java", | 310 "android/java/src/org/chromium/printing/PrintingContext.java", |
291 "android/java/src/org/chromium/printing/PrintingContextInterface.java", | 311 "android/java/src/org/chromium/printing/PrintingContextInterface.java", |
292 "android/java/src/org/chromium/printing/PrintingController.java", | 312 "android/java/src/org/chromium/printing/PrintingController.java", |
293 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", | 313 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", |
294 ] | 314 ] |
295 } | 315 } |
296 } | 316 } |
OLD | NEW |