| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 'print_settings.cc', | 65 'print_settings.cc', |
| 66 'print_settings.h', | 66 'print_settings.h', |
| 67 'print_settings_conversion.cc', | 67 'print_settings_conversion.cc', |
| 68 'print_settings_conversion.h', | 68 'print_settings_conversion.h', |
| 69 'print_settings_initializer_mac.cc', | 69 'print_settings_initializer_mac.cc', |
| 70 'print_settings_initializer_mac.h', | 70 'print_settings_initializer_mac.h', |
| 71 'print_settings_initializer_win.cc', | 71 'print_settings_initializer_win.cc', |
| 72 'print_settings_initializer_win.h', | 72 'print_settings_initializer_win.h', |
| 73 'printed_document.cc', | 73 'printed_document.cc', |
| 74 'printed_document.h', | 74 'printed_document.h', |
| 75 'printed_document_linux.cc', | |
| 76 'printed_document_mac.cc', | 75 'printed_document_mac.cc', |
| 77 'printed_document_win.cc', | 76 'printed_document_win.cc', |
| 78 'printed_page.cc', | 77 'printed_page.cc', |
| 79 'printed_page.h', | 78 'printed_page.h', |
| 80 'printed_pages_source.h', | 79 'printed_pages_source.h', |
| 81 'printing_context.cc', | 80 'printing_context.cc', |
| 82 'printing_context.h', | 81 'printing_context.h', |
| 83 'printing_context_system_dialog_win.cc', | 82 'printing_context_system_dialog_win.cc', |
| 84 'printing_context_system_dialog_win.h', | 83 'printing_context_system_dialog_win.h', |
| 85 'printing_context_win.cc', | 84 'printing_context_win.cc', |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 '-Wno-deprecated-declarations', | 166 '-Wno-deprecated-declarations', |
| 168 ], | 167 ], |
| 169 }, | 168 }, |
| 170 }], | 169 }], |
| 171 ], | 170 ], |
| 172 'defines': [ | 171 'defines': [ |
| 173 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 172 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 174 # of the print backend and enables a custom implementation instead. | 173 # of the print backend and enables a custom implementation instead. |
| 175 'PRINT_BACKEND_AVAILABLE', | 174 'PRINT_BACKEND_AVAILABLE', |
| 176 ], | 175 ], |
| 177 'sources': [ | 176 |
| 178 'backend/cups_helper.cc', | 177 'conditions': [ |
| 179 'backend/cups_helper.h', | 178 ['chromeos==1', { |
| 180 'backend/print_backend_cups.cc', | 179 'sources': [ |
| 180 'backend/cups_connection.cc', |
| 181 'backend/cups_connection.h', |
| 182 'backend/cups_deleter.cc', |
| 183 'backend/cups_deleter.h', |
| 184 'backend/cups_ipp_util.cc', |
| 185 'backend/cups_ipp_util.h', |
| 186 'backend/cups_printer.cc', |
| 187 'backend/cups_printer.h', |
| 188 'backend/print_backend_cups_ipp.cc', |
| 189 'backend/print_backend_cups_ipp.h', |
| 190 ], |
| 191 }, { # chromeos==0 |
| 192 'sources': [ |
| 193 'backend/cups_helper.cc', |
| 194 'backend/cups_helper.h', |
| 195 'backend/print_backend_cups.cc', |
| 196 ], |
| 197 }], |
| 181 ], | 198 ], |
| 182 }], | 199 }], |
| 183 ['OS=="linux" and chromeos==1', { | 200 ['OS=="linux" and chromeos==1', { |
| 184 'defines': [ | 201 'defines': [ |
| 185 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 202 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 186 # of the print backend and enables a custom implementation instead. | 203 # of the print backend and enables a custom implementation instead. |
| 187 'PRINT_BACKEND_AVAILABLE', | 204 'PRINT_BACKEND_AVAILABLE', |
| 188 ], | 205 ], |
| 189 'sources': [ | 206 'sources': [ |
| 190 'backend/print_backend_chromeos.cc', | 207 'backend/print_backend_chromeos.cc', |
| 191 ], | 208 ], |
| 192 }], | 209 }], |
| 193 ['OS=="linux" and chromeos==0', { | 210 ['OS=="linux" and chromeos==0', { |
| 194 'sources': [ | 211 'sources': [ |
| 212 'printed_document_linux.cc', |
| 195 'printing_context_linux.cc', | 213 'printing_context_linux.cc', |
| 196 'printing_context_linux.h', | 214 'printing_context_linux.h', |
| 197 ], | 215 ], |
| 198 }], | 216 }], |
| 199 ['OS=="android"', { | 217 ['OS=="android"', { |
| 200 'sources': [ | 218 'sources': [ |
| 201 'printing_context_android.cc', | 219 'printing_context_android.cc', |
| 202 'printing_context_android.h', | 220 'printing_context_android.h', |
| 203 ], | 221 ], |
| 204 'dependencies': [ | 222 'dependencies': [ |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 'conditions': [ | 258 'conditions': [ |
| 241 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], | 259 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], |
| 242 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], | 260 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], |
| 243 ['OS!="android"', { | 261 ['OS!="android"', { |
| 244 'sources': ['pdf_transform_unittest.cc'] | 262 'sources': ['pdf_transform_unittest.cc'] |
| 245 }], | 263 }], |
| 246 ['use_cups==1', { | 264 ['use_cups==1', { |
| 247 'defines': [ | 265 'defines': [ |
| 248 'USE_CUPS', | 266 'USE_CUPS', |
| 249 ], | 267 ], |
| 250 'sources': [ | 268 'conditions': [ |
| 251 'backend/cups_helper_unittest.cc', | 269 ['chromeos==1', { |
| 270 'sources': ['backend/cups_ipp_util_unittest.cc'], |
| 271 }, { |
| 272 'sources': ['backend/cups_helper_unittest.cc'], |
| 273 }], |
| 252 ], | 274 ], |
| 253 }], | 275 }], |
| 254 ], | 276 ], |
| 255 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 277 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 256 'msvs_disabled_warnings': [ 4267, ], | 278 'msvs_disabled_warnings': [ 4267, ], |
| 257 }, | 279 }, |
| 258 { | 280 { |
| 259 # GN version: //printing:cups (config, not a target). | 281 # GN version: //printing:cups (config, not a target). |
| 260 'target_name': 'cups', | 282 'target_name': 'cups', |
| 261 'type': 'none', | 283 'type': 'none', |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 331 '../build/isolate.gypi', | 353 '../build/isolate.gypi', |
| 332 ], | 354 ], |
| 333 'sources': [ | 355 'sources': [ |
| 334 'printing_unittests.isolate', | 356 'printing_unittests.isolate', |
| 335 ], | 357 ], |
| 336 }, | 358 }, |
| 337 ], | 359 ], |
| 338 }], | 360 }], |
| 339 ] | 361 ] |
| 340 } | 362 } |
| OLD | NEW |