| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 "//ui/gfx:test_support", | 219 "//ui/gfx:test_support", |
| 220 "//ui/gfx/geometry", | 220 "//ui/gfx/geometry", |
| 221 ] | 221 ] |
| 222 } | 222 } |
| 223 | 223 |
| 224 if (use_cups) { | 224 if (use_cups) { |
| 225 config("cups") { | 225 config("cups") { |
| 226 defines = [ "USE_CUPS" ] | 226 defines = [ "USE_CUPS" ] |
| 227 | 227 |
| 228 if (is_mac) { | 228 if (is_mac) { |
| 229 libs = [ "libcups.dylib" ] | 229 ldflags = [ "$mac_sdk_path/usr/lib/libcups.dylib" ] |
| 230 } else { | 230 } else { |
| 231 libs = exec_script("cups_config_helper.py", [ "--libs-for-gn" ], "value") | 231 libs = exec_script("cups_config_helper.py", [ "--libs-for-gn" ], "value") |
| 232 } | 232 } |
| 233 } | 233 } |
| 234 } | 234 } |
| 235 | 235 |
| 236 if (is_android) { | 236 if (is_android) { |
| 237 generate_jni("printing_jni_headers") { | 237 generate_jni("printing_jni_headers") { |
| 238 sources = [ | 238 sources = [ |
| 239 "android/java/src/org/chromium/printing/PrintingContext.java", | 239 "android/java/src/org/chromium/printing/PrintingContext.java", |
| 240 ] | 240 ] |
| 241 jni_package = "printing" | 241 jni_package = "printing" |
| 242 } | 242 } |
| 243 | 243 |
| 244 # TODO(GYP) | 244 # TODO(GYP) |
| 245 #{ | 245 #{ |
| 246 # 'target_name': 'printing_java', | 246 # 'target_name': 'printing_java', |
| 247 # 'type': 'none', | 247 # 'type': 'none', |
| 248 # 'variables': { | 248 # 'variables': { |
| 249 # 'java_in_dir': '../printing/android/java', | 249 # 'java_in_dir': '../printing/android/java', |
| 250 # }, | 250 # }, |
| 251 # 'dependencies': [ | 251 # 'dependencies': [ |
| 252 # '../base/base.gyp:base_java', | 252 # '../base/base.gyp:base_java', |
| 253 # ], | 253 # ], |
| 254 # 'includes': [ '../build/java.gypi' ], | 254 # 'includes': [ '../build/java.gypi' ], |
| 255 #} | 255 #} |
| 256 } | 256 } |
| OLD | NEW |