| 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/ui.gni") | 6 import("//build/config/ui.gni") |
| 7 if (is_mac) { | 7 if (is_mac) { |
| 8 import("//build/config/mac/mac_sdk.gni") | 8 import("//build/config/mac/mac_sdk.gni") |
| 9 } | 9 } |
| 10 if (is_android) { | 10 if (is_android) { |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 "//url", | 84 "//url", |
| 85 ] | 85 ] |
| 86 | 86 |
| 87 if (use_aura) { | 87 if (use_aura) { |
| 88 deps += [ "//ui/aura" ] | 88 deps += [ "//ui/aura" ] |
| 89 } | 89 } |
| 90 | 90 |
| 91 if (is_mac) { | 91 if (is_mac) { |
| 92 # Mac-Aura does not support printing. | 92 # Mac-Aura does not support printing. |
| 93 if (use_aura) { | 93 if (use_aura) { |
| 94 sources -= [ | 94 sources -= [ "printed_document_mac.cc" ] |
| 95 "printed_document_mac.cc", | |
| 96 ] | |
| 97 } else { | 95 } else { |
| 98 sources += [ | 96 sources += [ |
| 99 "printing_context_mac.mm", | 97 "printing_context_mac.mm", |
| 100 "printing_context_mac.h", | 98 "printing_context_mac.h", |
| 101 ] | 99 ] |
| 102 } | 100 } |
| 103 } | 101 } |
| 104 | 102 |
| 105 if (is_win) { | 103 if (is_win) { |
| 106 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation of the | 104 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation of the |
| (...skipping 12 matching lines...) Expand all Loading... |
| 119 sources += [ | 117 sources += [ |
| 120 "printing_context_no_system_dialog.cc", | 118 "printing_context_no_system_dialog.cc", |
| 121 "printing_context_no_system_dialog.h", | 119 "printing_context_no_system_dialog.h", |
| 122 ] | 120 ] |
| 123 } | 121 } |
| 124 | 122 |
| 125 if (use_cups) { | 123 if (use_cups) { |
| 126 configs += [ ":cups" ] | 124 configs += [ ":cups" ] |
| 127 | 125 |
| 128 if (is_linux) { | 126 if (is_linux) { |
| 129 cups_version = exec_script("cups_config_helper.py", [ "--api-version" ], | 127 cups_version = exec_script("cups_config_helper.py", |
| 128 [ "--api-version" ], |
| 130 "trim string") | 129 "trim string") |
| 131 | 130 |
| 132 if (cups_version == "1.6" || cups_version == "1.7") { | 131 if (cups_version == "1.6" || cups_version == "1.7") { |
| 133 cflags += [ | 132 cflags += [ |
| 134 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this | 133 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this |
| 135 # API for now as supported Linux and Mac OS'es are still using | 134 # API for now as supported Linux and Mac OS'es are still using |
| 136 # older versions of CUPS. More info: crbug.com/226176 | 135 # older versions of CUPS. More info: crbug.com/226176 |
| 137 "-Wno-deprecated-declarations", | 136 "-Wno-deprecated-declarations", |
| 138 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section | 137 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section |
| 139 # below. | 138 # below. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 160 "backend/cups_helper.h", | 159 "backend/cups_helper.h", |
| 161 "backend/print_backend_cups.cc", | 160 "backend/print_backend_cups.cc", |
| 162 ] | 161 ] |
| 163 } | 162 } |
| 164 | 163 |
| 165 if (is_chromeos) { | 164 if (is_chromeos) { |
| 166 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 165 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 167 # of the print backend and enables a custom implementation instead. | 166 # of the print backend and enables a custom implementation instead. |
| 168 defines += [ "PRINT_BACKEND_AVAILABLE" ] | 167 defines += [ "PRINT_BACKEND_AVAILABLE" ] |
| 169 | 168 |
| 170 sources += [ | 169 sources += [ "backend/print_backend_chromeos.cc" ] |
| 171 "backend/print_backend_chromeos.cc", | |
| 172 ] | |
| 173 } else if (is_linux) { # Non-ChromeOS Linux. | 170 } else if (is_linux) { # Non-ChromeOS Linux. |
| 174 sources += [ | 171 sources += [ |
| 175 "printing_context_linux.cc", | 172 "printing_context_linux.cc", |
| 176 "printing_context_linux.h", | 173 "printing_context_linux.h", |
| 177 ] | 174 ] |
| 178 } | 175 } |
| 179 | 176 |
| 180 if (is_android) { | 177 if (is_android) { |
| 181 sources += [ | 178 sources += [ |
| 182 "printing_context_android.cc", | 179 "printing_context_android.cc", |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 generate_jni("printing_jni_headers") { | 233 generate_jni("printing_jni_headers") { |
| 237 sources = [ | 234 sources = [ |
| 238 "android/java/src/org/chromium/printing/PrintingContext.java", | 235 "android/java/src/org/chromium/printing/PrintingContext.java", |
| 239 ] | 236 ] |
| 240 jni_package = "printing" | 237 jni_package = "printing" |
| 241 } | 238 } |
| 242 | 239 |
| 243 # GYP: //printing/printing.gyp:printing_java | 240 # GYP: //printing/printing.gyp:printing_java |
| 244 android_library("printing_java") { | 241 android_library("printing_java") { |
| 245 deps = [ | 242 deps = [ |
| 246 "//base:base_java" | 243 "//base:base_java", |
| 247 ] | 244 ] |
| 248 DEPRECATED_java_in_dir = "android/java/src" | 245 DEPRECATED_java_in_dir = "android/java/src" |
| 249 } | 246 } |
| 250 } | 247 } |
| OLD | NEW |