| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 ] | 124 ] |
| 125 } | 125 } |
| 126 | 126 |
| 127 if (use_cups) { | 127 if (use_cups) { |
| 128 configs += [ ":cups" ] | 128 configs += [ ":cups" ] |
| 129 | 129 |
| 130 if (is_linux) { | 130 if (is_linux) { |
| 131 cups_version = exec_script("cups_config_helper.py", | 131 cups_version = exec_script("cups_config_helper.py", |
| 132 [ | 132 [ |
| 133 "--api-version", | 133 "--api-version", |
| 134 sysroot, | 134 rebase_path(sysroot), |
| 135 ], | 135 ], |
| 136 "trim string") | 136 "trim string") |
| 137 | 137 |
| 138 if (cups_version == "1.6" || cups_version == "1.7") { | 138 if (cups_version == "1.6" || cups_version == "1.7") { |
| 139 cflags += [ | 139 cflags += [ |
| 140 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this | 140 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this |
| 141 # API for now as supported Linux and Mac OS'es are still using | 141 # API for now as supported Linux and Mac OS'es are still using |
| 142 # older versions of CUPS. More info: crbug.com/226176 | 142 # older versions of CUPS. More info: crbug.com/226176 |
| 143 "-Wno-deprecated-declarations", | 143 "-Wno-deprecated-declarations", |
| 144 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section | 144 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 config("cups") { | 247 config("cups") { |
| 248 defines = [ "USE_CUPS" ] | 248 defines = [ "USE_CUPS" ] |
| 249 | 249 |
| 250 if (is_mac) { | 250 if (is_mac) { |
| 251 libs = [ "cups" ] | 251 libs = [ "cups" ] |
| 252 lib_dirs = [ "$mac_sdk_path/usr/lib" ] | 252 lib_dirs = [ "$mac_sdk_path/usr/lib" ] |
| 253 } else { | 253 } else { |
| 254 libs = exec_script("cups_config_helper.py", | 254 libs = exec_script("cups_config_helper.py", |
| 255 [ | 255 [ |
| 256 "--libs-for-gn", | 256 "--libs-for-gn", |
| 257 sysroot, | 257 rebase_path(sysroot), |
| 258 ], | 258 ], |
| 259 "value") | 259 "value") |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 } | 262 } |
| 263 | 263 |
| 264 if (is_android) { | 264 if (is_android) { |
| 265 # GYP: //printing/printing.gyp:printing_jni_headers | 265 # GYP: //printing/printing.gyp:printing_jni_headers |
| 266 generate_jni("printing_jni_headers") { | 266 generate_jni("printing_jni_headers") { |
| 267 sources = [ | 267 sources = [ |
| 268 "android/java/src/org/chromium/printing/PrintingContext.java", | 268 "android/java/src/org/chromium/printing/PrintingContext.java", |
| 269 ] | 269 ] |
| 270 jni_package = "printing" | 270 jni_package = "printing" |
| 271 } | 271 } |
| 272 | 272 |
| 273 # GYP: //printing/printing.gyp:printing_java | 273 # GYP: //printing/printing.gyp:printing_java |
| 274 android_library("printing_java") { | 274 android_library("printing_java") { |
| 275 deps = [ | 275 deps = [ |
| 276 "//base:base_java", | 276 "//base:base_java", |
| 277 ] | 277 ] |
| 278 DEPRECATED_java_in_dir = "android/java/src" | 278 DEPRECATED_java_in_dir = "android/java/src" |
| 279 } | 279 } |
| 280 } | 280 } |
| OLD | NEW |