| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
| 6 'variables': { | 6 'variables': { |
| 7 'chromium_code': 1, | 7 'chromium_code': 1, |
| 8 }, | 8 }, |
| 9 'targets': [ | 9 'targets': [ |
| 10 { | 10 { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 ['chromeos==1 or use_aura==1',{ | 155 ['chromeos==1 or use_aura==1',{ |
| 156 'sources': [ | 156 'sources': [ |
| 157 'printing_context_no_system_dialog.cc', | 157 'printing_context_no_system_dialog.cc', |
| 158 'printing_context_no_system_dialog.h', | 158 'printing_context_no_system_dialog.h', |
| 159 ], | 159 ], |
| 160 }], | 160 }], |
| 161 ['use_cups==1', { | 161 ['use_cups==1', { |
| 162 'dependencies': [ | 162 'dependencies': [ |
| 163 'cups', | 163 'cups', |
| 164 ], | 164 ], |
| 165 'variables': { |
| 166 'cups_version': '<!(cups-config --api-version)', |
| 167 }, |
| 165 'conditions': [ | 168 'conditions': [ |
| 166 ['OS!="mac"', { | 169 ['OS!="mac"', { |
| 167 'dependencies': [ | 170 'dependencies': [ |
| 168 '../build/linux/system.gyp:libgcrypt', | 171 '../build/linux/system.gyp:libgcrypt', |
| 169 ], | 172 ], |
| 170 }], | 173 }], |
| 174 ['cups_version=="1.6"', { |
| 175 'cflags': [ |
| 176 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this |
| 177 # API for now as supported Linux and Mac OS'es are still using |
| 178 # older versions of CUPS. More info: crbug.com/226176 |
| 179 '-Wno-deprecated-declarations', |
| 180 ], |
| 181 }], |
| 171 ], | 182 ], |
| 172 'defines': [ | 183 'defines': [ |
| 173 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 184 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 174 # of the print backend and enables a custom implementation instead. | 185 # of the print backend and enables a custom implementation instead. |
| 175 'PRINT_BACKEND_AVAILABLE', | 186 'PRINT_BACKEND_AVAILABLE', |
| 176 ], | 187 ], |
| 177 'sources': [ | 188 'sources': [ |
| 178 'backend/cups_helper.cc', | 189 'backend/cups_helper.cc', |
| 179 'backend/cups_helper.h', | 190 'backend/cups_helper.h', |
| 180 'backend/print_backend_cups.cc', | 191 'backend/print_backend_cups.cc', |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 '<!@(python cups_config_helper.py --cflags)', | 299 '<!@(python cups_config_helper.py --cflags)', |
| 289 ], | 300 ], |
| 290 }], | 301 }], |
| 291 ], | 302 ], |
| 292 }, | 303 }, |
| 293 }], | 304 }], |
| 294 ], | 305 ], |
| 295 }, | 306 }, |
| 296 ], | 307 ], |
| 297 } | 308 } |
| OLD | NEW |