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', | 69 'printing_context_mac.mm', |
73 'printing_context_mac.h', | 70 'printing_context_mac.h', |
74 'printing_context_win.cc', | 71 'printing_context_win.cc', |
75 'printing_context_win.h', | 72 'printing_context_win.h', |
76 'print_dialog_gtk_interface.h', | 73 'print_dialog_gtk_interface.h', |
77 'print_job_constants.cc', | 74 'print_job_constants.cc', |
78 'print_job_constants.h', | 75 'print_job_constants.h', |
79 'print_settings.cc', | 76 'print_settings.cc', |
80 'print_settings.h', | 77 'print_settings.h', |
81 'print_settings_initializer.cc', | 78 'print_settings_initializer.cc', |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 ['exclude', 'pdf_metafile_skia\\.(cc|h)$'], | 113 ['exclude', 'pdf_metafile_skia\\.(cc|h)$'], |
117 ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'], | 114 ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'], |
118 ], | 115 ], |
119 }], | 116 }], |
120 ['OS=="win"', { | 117 ['OS=="win"', { |
121 'conditions': [ | 118 'conditions': [ |
122 ['use_aura==1', { | 119 ['use_aura==1', { |
123 'sources!': [ | 120 'sources!': [ |
124 'image_aura.cc', | 121 'image_aura.cc', |
125 'printed_document_aura.cc', | 122 'printed_document_aura.cc', |
126 'printing_context_aura.cc', | |
127 ], | 123 ], |
128 }], | 124 }], |
129 ], | 125 ], |
130 'defines': [ | 126 'defines': [ |
131 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 127 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
132 # of the print backend and enables a custom implementation instead. | 128 # of the print backend and enables a custom implementation instead. |
133 'PRINT_BACKEND_AVAILABLE', | 129 'PRINT_BACKEND_AVAILABLE', |
134 ], | 130 ], |
135 'sources': [ | 131 'sources': [ |
136 'backend/win_helper.cc', | 132 'backend/win_helper.cc', |
137 'backend/win_helper.h', | 133 'backend/win_helper.h', |
138 'backend/print_backend_win.cc', | 134 'backend/print_backend_win.cc', |
139 ], | 135 ], |
140 }], | 136 }], |
| 137 ['chromeos==1 or use_aura==1',{ |
| 138 'sources': [ |
| 139 'printing_context_no_system_dialog.cc', |
| 140 'printing_context_no_system_dialog.h', |
| 141 ], |
| 142 }], |
141 ['use_cups==1', { | 143 ['use_cups==1', { |
142 'dependencies': [ | 144 'dependencies': [ |
143 'cups', | 145 'cups', |
144 ], | 146 ], |
145 'conditions': [ | 147 'conditions': [ |
146 ['OS!="mac"', { | 148 ['OS!="mac"', { |
147 'dependencies': [ | 149 'dependencies': [ |
148 '../build/linux/system.gyp:libgcrypt', | 150 '../build/linux/system.gyp:libgcrypt', |
149 ], | 151 ], |
150 }], | 152 }], |
(...skipping 12 matching lines...) Expand all Loading... |
163 ['OS=="linux" and chromeos==1', { | 165 ['OS=="linux" and chromeos==1', { |
164 'defines': [ | 166 'defines': [ |
165 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 167 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
166 # of the print backend and enables a custom implementation instead. | 168 # of the print backend and enables a custom implementation instead. |
167 'PRINT_BACKEND_AVAILABLE', | 169 'PRINT_BACKEND_AVAILABLE', |
168 ], | 170 ], |
169 'sources': [ | 171 'sources': [ |
170 'backend/print_backend_chromeos.cc', | 172 'backend/print_backend_chromeos.cc', |
171 ], | 173 ], |
172 }], | 174 }], |
| 175 ['OS=="linux" and chromeos==0', { |
| 176 'sources': [ |
| 177 'printing_context_gtk.cc', |
| 178 'printing_context_gtk.h', |
| 179 ], |
| 180 }], |
173 ], | 181 ], |
174 }, | 182 }, |
175 { | 183 { |
176 'target_name': 'printing_unittests', | 184 'target_name': 'printing_unittests', |
177 'type': 'executable', | 185 'type': 'executable', |
178 'dependencies': [ | 186 'dependencies': [ |
179 'printing', | 187 'printing', |
180 '../testing/gtest.gyp:gtest', | 188 '../testing/gtest.gyp:gtest', |
181 '../base/base.gyp:test_support_base', | 189 '../base/base.gyp:test_support_base', |
182 '../ui/ui.gyp:ui', | 190 '../ui/ui.gyp:ui', |
183 ], | 191 ], |
184 'sources': [ | 192 'sources': [ |
185 'emf_win_unittest.cc', | 193 'emf_win_unittest.cc', |
186 'printing_test.h', | 194 'printing_test.h', |
187 'page_number_unittest.cc', | 195 'page_number_unittest.cc', |
188 'page_range_unittest.cc', | 196 'page_range_unittest.cc', |
189 'page_setup_unittest.cc', | 197 'page_setup_unittest.cc', |
190 'pdf_metafile_cg_mac_unittest.cc', | 198 'pdf_metafile_cg_mac_unittest.cc', |
191 'printed_page_unittest.cc', | 199 'printed_page_unittest.cc', |
192 'printing_context_win_unittest.cc', | 200 'printing_context_win_unittest.cc', |
193 'run_all_unittests.cc', | 201 'run_all_unittests.cc', |
194 'units_unittest.cc', | 202 'units_unittest.cc', |
195 ], | 203 ], |
196 'conditions': [ | 204 'conditions': [ |
197 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_cairo_unittest\\.c
c$']]}], | 205 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_gtk_unittest\\.cc$
']]}], |
198 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], | 206 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], |
199 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']] | 207 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], |
200 }, { # else: OS=="win" | |
201 'sources/': [['exclude', '_cairo_unittest\\.cc$']] | |
202 } | |
203 ], | |
204 ['toolkit_uses_gtk == 1', { | 208 ['toolkit_uses_gtk == 1', { |
205 'dependencies': [ | 209 'dependencies': [ |
206 '../build/linux/system.gyp:gtk', | 210 '../build/linux/system.gyp:gtk', |
207 ], | 211 ], |
208 'conditions': [ | 212 'conditions': [ |
209 ['linux_use_tcmalloc == 1', { | 213 ['linux_use_tcmalloc == 1', { |
210 'dependencies': [ | 214 'dependencies': [ |
211 '../base/allocator/allocator.gyp:allocator', | 215 '../base/allocator/allocator.gyp:allocator', |
212 ], | 216 ], |
213 }], | 217 }], |
(...skipping 29 matching lines...) Expand all Loading... |
243 '<!@(python cups_config_helper.py --cflags)', | 247 '<!@(python cups_config_helper.py --cflags)', |
244 ], | 248 ], |
245 }], | 249 }], |
246 ], | 250 ], |
247 }, | 251 }, |
248 }], | 252 }], |
249 ], | 253 ], |
250 }, | 254 }, |
251 ], | 255 ], |
252 } | 256 } |
OLD | NEW |