| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 'printed_document_cairo.cc', | 59 'printed_document_cairo.cc', |
| 60 'printed_document.cc', | 60 'printed_document.cc', |
| 61 'printed_document.h', | 61 'printed_document.h', |
| 62 'printed_document_mac.cc', | 62 'printed_document_mac.cc', |
| 63 'printed_document_win.cc', | 63 'printed_document_win.cc', |
| 64 'printed_page.cc', | 64 'printed_page.cc', |
| 65 'printed_page.h', | 65 'printed_page.h', |
| 66 'printed_pages_source.h', | 66 'printed_pages_source.h', |
| 67 'printing_context.cc', | 67 'printing_context.cc', |
| 68 'printing_context.h', | 68 'printing_context.h', |
| 69 'printing_context_aura.cc', | |
| 70 'printing_context_cairo.cc', | |
| 71 'printing_context_cairo.h', | |
| 72 'printing_context_mac.mm', | |
| 73 'printing_context_mac.h', | |
| 74 'printing_context_win.cc', | |
| 75 'printing_context_win.h', | |
| 76 'print_dialog_gtk_interface.h', | 69 'print_dialog_gtk_interface.h', |
| 77 'print_job_constants.cc', | 70 'print_job_constants.cc', |
| 78 'print_job_constants.h', | 71 'print_job_constants.h', |
| 79 'print_settings.cc', | 72 'print_settings.cc', |
| 80 'print_settings.h', | 73 'print_settings.h', |
| 81 'print_settings_initializer.cc', | 74 'print_settings_initializer.cc', |
| 82 'print_settings_initializer.h', | 75 'print_settings_initializer.h', |
| 83 'print_settings_initializer_gtk.cc', | 76 'print_settings_initializer_gtk.cc', |
| 84 'print_settings_initializer_gtk.h', | 77 'print_settings_initializer_gtk.h', |
| 85 'print_settings_initializer_mac.cc', | 78 'print_settings_initializer_mac.cc', |
| (...skipping 24 matching lines...) Expand all Loading... |
| 110 '../build/linux/system.gyp:gtk', | 103 '../build/linux/system.gyp:gtk', |
| 111 '../build/linux/system.gyp:gtkprint', | 104 '../build/linux/system.gyp:gtkprint', |
| 112 ], | 105 ], |
| 113 }], | 106 }], |
| 114 ['OS=="mac" and use_skia==0', { | 107 ['OS=="mac" and use_skia==0', { |
| 115 'sources/': [ | 108 'sources/': [ |
| 116 ['exclude', 'pdf_metafile_skia\\.(cc|h)$'], | 109 ['exclude', 'pdf_metafile_skia\\.(cc|h)$'], |
| 117 ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'], | 110 ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'], |
| 118 ], | 111 ], |
| 119 }], | 112 }], |
| 113 ['OS=="mac" and use_aura==0',{ |
| 114 'sources': [ |
| 115 'printing_context_mac.mm', |
| 116 'printing_context_mac.h', |
| 117 ], |
| 118 }], |
| 120 ['OS=="win"', { | 119 ['OS=="win"', { |
| 121 'conditions': [ | 120 'conditions': [ |
| 122 ['use_aura==1', { | 121 ['use_aura==1', { |
| 123 'sources!': [ | 122 'sources!': [ |
| 124 'image_aura.cc', | 123 'image_aura.cc', |
| 125 'printed_document_aura.cc', | 124 'printed_document_aura.cc', |
| 126 'printing_context_aura.cc', | |
| 127 ], | 125 ], |
| 128 }], | 126 }, { #else: use_aura==0 |
| 129 ], | 127 'sources': [ |
| 128 'printing_context_win.cc', |
| 129 'printing_context_win.h', |
| 130 ], |
| 131 }]], |
| 130 'defines': [ | 132 'defines': [ |
| 131 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 133 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 132 # of the print backend and enables a custom implementation instead. | 134 # of the print backend and enables a custom implementation instead. |
| 133 'PRINT_BACKEND_AVAILABLE', | 135 'PRINT_BACKEND_AVAILABLE', |
| 134 ], | 136 ], |
| 135 'sources': [ | 137 'sources': [ |
| 136 'backend/win_helper.cc', | 138 'backend/win_helper.cc', |
| 137 'backend/win_helper.h', | 139 'backend/win_helper.h', |
| 138 'backend/print_backend_win.cc', | 140 'backend/print_backend_win.cc', |
| 139 ], | 141 ], |
| 140 }], | 142 }], |
| 143 ['chromeos==1 or use_aura==1',{ |
| 144 'sources': [ |
| 145 'printing_context_no_system_dialog.cc', |
| 146 'printing_context_no_system_dialog.h', |
| 147 ], |
| 148 }], |
| 141 ['use_cups==1', { | 149 ['use_cups==1', { |
| 142 'dependencies': [ | 150 'dependencies': [ |
| 143 'cups', | 151 'cups', |
| 144 ], | 152 ], |
| 145 'conditions': [ | 153 'conditions': [ |
| 146 ['OS!="mac"', { | 154 ['OS!="mac"', { |
| 147 'dependencies': [ | 155 'dependencies': [ |
| 148 '../build/linux/system.gyp:libgcrypt', | 156 '../build/linux/system.gyp:libgcrypt', |
| 149 ], | 157 ], |
| 150 }], | 158 }], |
| (...skipping 12 matching lines...) Expand all Loading... |
| 163 ['OS=="linux" and chromeos==1', { | 171 ['OS=="linux" and chromeos==1', { |
| 164 'defines': [ | 172 'defines': [ |
| 165 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 173 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
| 166 # of the print backend and enables a custom implementation instead. | 174 # of the print backend and enables a custom implementation instead. |
| 167 'PRINT_BACKEND_AVAILABLE', | 175 'PRINT_BACKEND_AVAILABLE', |
| 168 ], | 176 ], |
| 169 'sources': [ | 177 'sources': [ |
| 170 'backend/print_backend_chromeos.cc', | 178 'backend/print_backend_chromeos.cc', |
| 171 ], | 179 ], |
| 172 }], | 180 }], |
| 181 ['OS=="linux" and chromeos==0', { |
| 182 'sources': [ |
| 183 'printing_context_gtk.cc', |
| 184 'printing_context_gtk.h', |
| 185 ], |
| 186 }], |
| 173 ], | 187 ], |
| 174 }, | 188 }, |
| 175 { | 189 { |
| 176 'target_name': 'printing_unittests', | 190 'target_name': 'printing_unittests', |
| 177 'type': 'executable', | 191 'type': 'executable', |
| 178 'dependencies': [ | 192 'dependencies': [ |
| 179 'printing', | 193 'printing', |
| 180 '../testing/gtest.gyp:gtest', | 194 '../testing/gtest.gyp:gtest', |
| 181 '../base/base.gyp:test_support_base', | 195 '../base/base.gyp:test_support_base', |
| 182 '../ui/ui.gyp:ui', | 196 '../ui/ui.gyp:ui', |
| 183 ], | 197 ], |
| 184 'sources': [ | 198 'sources': [ |
| 185 'emf_win_unittest.cc', | 199 'emf_win_unittest.cc', |
| 186 'printing_test.h', | 200 'printing_test.h', |
| 187 'page_number_unittest.cc', | 201 'page_number_unittest.cc', |
| 188 'page_range_unittest.cc', | 202 'page_range_unittest.cc', |
| 189 'page_setup_unittest.cc', | 203 'page_setup_unittest.cc', |
| 190 'pdf_metafile_cg_mac_unittest.cc', | 204 'pdf_metafile_cg_mac_unittest.cc', |
| 191 'printed_page_unittest.cc', | 205 'printed_page_unittest.cc', |
| 192 'printing_context_win_unittest.cc', | |
| 193 'run_all_unittests.cc', | 206 'run_all_unittests.cc', |
| 194 'units_unittest.cc', | 207 'units_unittest.cc', |
| 195 ], | 208 ], |
| 196 'conditions': [ | 209 'conditions': [ |
| 197 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_cairo_unittest\\.c
c$']]}], | 210 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_gtk_unittest\\.cc$
']]}], |
| 198 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], | 211 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], |
| 199 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']] | 212 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], |
| 200 }, { # else: OS=="win" | 213 ['OS=="win" and use_aura == 0', { |
| 201 'sources/': [['exclude', '_cairo_unittest\\.cc$']] | 214 'sources': [ |
| 202 } | 215 'printing_context_win_unittest.cc', |
| 203 ], | 216 ] |
| 217 }], |
| 204 ['toolkit_uses_gtk == 1', { | 218 ['toolkit_uses_gtk == 1', { |
| 205 'dependencies': [ | 219 'dependencies': [ |
| 206 '../build/linux/system.gyp:gtk', | 220 '../build/linux/system.gyp:gtk', |
| 207 ], | 221 ], |
| 208 'conditions': [ | 222 'conditions': [ |
| 209 ['linux_use_tcmalloc == 1', { | 223 ['linux_use_tcmalloc == 1', { |
| 210 'dependencies': [ | 224 'dependencies': [ |
| 211 '../base/allocator/allocator.gyp:allocator', | 225 '../base/allocator/allocator.gyp:allocator', |
| 212 ], | 226 ], |
| 213 }], | 227 }], |
| (...skipping 29 matching lines...) Expand all Loading... |
| 243 '<!@(python cups_config_helper.py --cflags)', | 257 '<!@(python cups_config_helper.py --cflags)', |
| 244 ], | 258 ], |
| 245 }], | 259 }], |
| 246 ], | 260 ], |
| 247 }, | 261 }, |
| 248 }], | 262 }], |
| 249 ], | 263 ], |
| 250 }, | 264 }, |
| 251 ], | 265 ], |
| 252 } | 266 } |
| OLD | NEW |