| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this | 145 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this |
| 146 # API for now as supported Linux and Mac OS'es are still using | 146 # API for now as supported Linux and Mac OS'es are still using |
| 147 # older versions of CUPS. More info: crbug.com/226176 | 147 # older versions of CUPS. More info: crbug.com/226176 |
| 148 "-Wno-deprecated-declarations", | 148 "-Wno-deprecated-declarations", |
| 149 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section | 149 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section |
| 150 # below. | 150 # below. |
| 151 ] | 151 ] |
| 152 } | 152 } |
| 153 } | 153 } |
| 154 | 154 |
| 155 if (is_mac && mac_sdk_version == "10.9") { | 155 if (is_mac) { |
| 156 # The 10.9 SDK includes cups 1.7, which deprecates | 156 # The 10.9 SDK includes cups 1.7, which deprecates |
| 157 # httpConnectEncrypt() in favor of httpConnect2(). hhttpConnect2() | 157 # httpConnectEncrypt() in favor of httpConnect2(). hhttpConnect2() |
| 158 # is new in 1.7, so it doesn't exist on OS X 10.6-10.8 and we | 158 # is new in 1.7, so it doesn't exist on OS X 10.6-10.8 and we |
| 159 # can't use it until 10.9 is our minimum system version. | 159 # can't use it until 10.9 is our minimum system version. |
| 160 # (cups_version isn't reliable on OS X, so key the check off of | 160 # (cups_version isn't reliable on OS X, so key the check off of |
| 161 # mac_sdk). | 161 # mac_sdk). |
| 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 |
| 164 # comment above. |
| 162 cflags += [ "-Wno-deprecated-declarations" ] | 165 cflags += [ "-Wno-deprecated-declarations" ] |
| 163 } | 166 } |
| 164 | 167 |
| 165 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 168 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 166 # of the print backend and enables a custom implementation instead. | 169 # of the print backend and enables a custom implementation instead. |
| 167 defines += [ "PRINT_BACKEND_AVAILABLE" ] | 170 defines += [ "PRINT_BACKEND_AVAILABLE" ] |
| 168 | 171 |
| 169 sources += [ | 172 sources += [ |
| 170 "backend/cups_helper.cc", | 173 "backend/cups_helper.cc", |
| 171 "backend/cups_helper.h", | 174 "backend/cups_helper.h", |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", | 287 "android/java/src/org/chromium/printing/PrintManagerDelegate.java", |
| 285 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", | 288 "android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java", |
| 286 "android/java/src/org/chromium/printing/Printable.java", | 289 "android/java/src/org/chromium/printing/Printable.java", |
| 287 "android/java/src/org/chromium/printing/PrintingContext.java", | 290 "android/java/src/org/chromium/printing/PrintingContext.java", |
| 288 "android/java/src/org/chromium/printing/PrintingContextInterface.java", | 291 "android/java/src/org/chromium/printing/PrintingContextInterface.java", |
| 289 "android/java/src/org/chromium/printing/PrintingController.java", | 292 "android/java/src/org/chromium/printing/PrintingController.java", |
| 290 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", | 293 "android/java/src/org/chromium/printing/PrintingControllerImpl.java", |
| 291 ] | 294 ] |
| 292 } | 295 } |
| 293 } | 296 } |
| OLD | NEW |