Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: printing/printing.gyp

Issue 2105463002: Create a new print backend for the updated CUPS APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix printing gyp file. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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': [
Lei Zhang 2016/07/13 00:34:27 I think the redness means you have tabs, and not s
skau 2016/07/14 20:43:06 Done.
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_ipp_util.cc',
183 'backend/cups_ipp_util.h',
184 'backend/cups_printer.cc',
185 'backend/cups_printer.h',
186 'backend/print_backend_cups_ipp.cc',
187 'backend/print_backend_cups_ipp.h',
188 » ],
189 » }],
Lei Zhang 2016/07/13 00:34:27 GYP can do if-else: ['chromeos==1', { ... }, {
skau 2016/07/14 20:43:06 I didn't see that. Thanks.
190 » ['chromeos==0', {
191 'sources': [
192 'backend/cups_helper.cc',
193 'backend/cups_helper.h',
194 'backend/print_backend_cups.cc',
195 ],
196 }]
181 ], 197 ],
182 }], 198 }],
183 ['OS=="linux" and chromeos==1', { 199 ['OS=="linux" and chromeos==1', {
184 'defines': [ 200 'defines': [
185 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation 201 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
186 # of the print backend and enables a custom implementation instead. 202 # of the print backend and enables a custom implementation instead.
187 'PRINT_BACKEND_AVAILABLE', 203 'PRINT_BACKEND_AVAILABLE',
188 ], 204 ],
189 'sources': [ 205 'sources': [
190 'backend/print_backend_chromeos.cc', 206 'backend/print_backend_chromeos.cc',
191 ], 207 ],
192 }], 208 }],
193 ['OS=="linux" and chromeos==0', { 209 ['OS=="linux" and chromeos==0', {
194 'sources': [ 210 'sources': [
195 'printing_context_linux.cc', 211 'printing_context_linux.cc',
196 'printing_context_linux.h', 212 'printing_context_linux.h',
213 'printed_document_linux.cc',
Lei Zhang 2016/07/13 00:34:27 alphabetical order
skau 2016/07/14 20:43:06 Done.
197 ], 214 ],
198 }], 215 }],
199 ['OS=="android"', { 216 ['OS=="android"', {
200 'sources': [ 217 'sources': [
201 'printing_context_android.cc', 218 'printing_context_android.cc',
202 'printing_context_android.h', 219 'printing_context_android.h',
203 ], 220 ],
204 'dependencies': [ 221 'dependencies': [
205 'printing_jni_headers', 222 'printing_jni_headers',
206 ], 223 ],
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 '../build/isolate.gypi', 348 '../build/isolate.gypi',
332 ], 349 ],
333 'sources': [ 350 'sources': [
334 'printing_unittests.isolate', 351 'printing_unittests.isolate',
335 ], 352 ],
336 }, 353 },
337 ], 354 ],
338 }], 355 }],
339 ] 356 ]
340 } 357 }
OLDNEW
« printing/backend/print_backend_cups_ipp.cc ('K') | « printing/backend/print_backend_cups_ipp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698