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

Side by Side Diff: printing/printing.gyp

Issue 2332843004: Remove GYP files. (Closed)
Patch Set: Merge Created 4 years, 3 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
« no previous file with comments | « pdf/pdf.gyp ('k') | sandbox/linux/sandbox_linux.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 {
6 'variables': {
7 'chromium_code': 1,
8 },
9 'targets': [
10 {
11 'target_name': 'printing',
12 'type': '<(component)',
13 'dependencies': [
14 '../base/base.gyp:base',
15 '../base/base.gyp:base_i18n',
16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
17 '../skia/skia.gyp:skia',
18 '../third_party/icu/icu.gyp:icui18n',
19 '../third_party/icu/icu.gyp:icuuc',
20 '../ui/gfx/gfx.gyp:gfx',
21 '../ui/gfx/gfx.gyp:gfx_geometry',
22 '../url/url.gyp:url_lib',
23 ],
24 'defines': [
25 'PRINTING_IMPLEMENTATION',
26 ],
27 'include_dirs': [
28 '..',
29 ],
30 'sources': [
31 'backend/print_backend.cc',
32 'backend/print_backend.h',
33 'backend/print_backend_consts.cc',
34 'backend/print_backend_consts.h',
35 'backend/print_backend_dummy.cc',
36 'backend/print_backend_win.cc',
37 'backend/printing_info_win.cc',
38 'backend/printing_info_win.h',
39 'emf_win.cc',
40 'emf_win.h',
41 'image.cc',
42 'image.h',
43 'image_android.cc',
44 'image_linux.cc',
45 'image_mac.cc',
46 'image_win.cc',
47 'metafile.cc',
48 'metafile.h',
49 'metafile_skia_wrapper.cc',
50 'metafile_skia_wrapper.h',
51 'page_number.cc',
52 'page_number.h',
53 'page_range.cc',
54 'page_range.h',
55 'page_setup.cc',
56 'page_setup.h',
57 'page_size_margins.h',
58 'pdf_metafile_cg_mac.cc',
59 'pdf_metafile_cg_mac.h',
60 'pdf_metafile_skia.cc',
61 'pdf_metafile_skia.h',
62 'print_dialog_gtk_interface.h',
63 'print_job_constants.cc',
64 'print_job_constants.h',
65 'print_settings.cc',
66 'print_settings.h',
67 'print_settings_conversion.cc',
68 'print_settings_conversion.h',
69 'print_settings_initializer_mac.cc',
70 'print_settings_initializer_mac.h',
71 'print_settings_initializer_win.cc',
72 'print_settings_initializer_win.h',
73 'printed_document.cc',
74 'printed_document.h',
75 'printed_document_mac.cc',
76 'printed_document_win.cc',
77 'printed_page.cc',
78 'printed_page.h',
79 'printed_pages_source.h',
80 'printing_context.cc',
81 'printing_context.h',
82 'printing_context_system_dialog_win.cc',
83 'printing_context_system_dialog_win.h',
84 'printing_context_win.cc',
85 'printing_context_win.h',
86 'printing_utils.cc',
87 'printing_utils.h',
88 'units.cc',
89 'units.h',
90 ],
91 'direct_dependent_settings': {
92 'include_dirs': [
93 '..',
94 ],
95 },
96 'conditions': [
97 ['use_aura==1', {
98 'dependencies': [
99 '<(DEPTH)/ui/aura/aura.gyp:aura',
100 ],
101 }],
102 # Mac-Aura does not support printing.
103 ['OS=="mac" and use_aura==1',{
104 'sources!': [
105 'printed_document_mac.cc',
106 'printing_context_mac.mm',
107 'printing_context_mac.h',
108 ],
109 }],
110 ['OS=="mac" and use_aura==0',{
111 'sources': [
112 'printing_context_mac.mm',
113 'printing_context_mac.h',
114 ],
115 }],
116 ['OS=="win"', {
117 'dependencies': [
118 '<(DEPTH)/ui/aura/aura.gyp:aura',
119 ],
120 'defines': [
121 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
122 # of the print backend and enables a custom implementation instead.
123 'PRINT_BACKEND_AVAILABLE',
124 ],
125 'sources': [
126 'backend/win_helper.cc',
127 'backend/win_helper.h',
128 ],
129 }],
130 ['chromeos==1',{
131 'sources': [
132 'printed_document_chromeos.cc',
133 'printing_context_no_system_dialog.cc',
134 'printing_context_no_system_dialog.h',
135 ],
136 }],
137 ['use_cups==1', {
138 'dependencies': [
139 'cups',
140 ],
141 'variables': {
142 'cups_version': '<!(python cups_config_helper.py --api-version <(sys root))',
143 },
144 'conditions': [
145 ['cups_version in ["1.6", "1.7"]', {
146 'cflags': [
147 # CUPS 1.6 deprecated the PPD APIs, but we will stay with this
148 # API for now as supported Linux and Mac OS'es are still using
149 # older versions of CUPS. More info: crbug.com/226176
150 '-Wno-deprecated-declarations',
151 # CUPS 1.7 deprecates httpConnectEncrypt(), see the mac section
152 # below.
153 ],
154 }],
155 ['OS=="mac"', {
156 # The 10.9 SDK includes cups 1.7, which deprecates
157 # httpConnectEncrypt() in favor of httpConnect2(). hhttpConnect2()
158 # is new in 1.7, so it doesn't exist on OS X 10.6-10.8 and we
159 # can't use it until 10.9 is our minimum system version.
160 # (cups_version isn't reliable on OS X, so key the check off of
161 # mac_sdk).
162 # With a 10.8 deployment target, several other APIs are
163 # deprecated. We're still on CUPS 1.4 until Linux no longer
164 # needs to support it, see comment above.
165 'xcode_settings': {
166 'WARNING_CFLAGS': [
167 '-Wno-deprecated-declarations',
168 ],
169 },
170 }],
171 ['chromeos==1', {
172 'sources': [
173 'backend/cups_connection.cc',
174 'backend/cups_connection.h',
175 'backend/cups_deleters.cc',
176 'backend/cups_deleters.h',
177 'backend/cups_ipp_util.cc',
178 'backend/cups_ipp_util.h',
179 'backend/cups_printer.cc',
180 'backend/cups_printer.h',
181 'backend/print_backend_cups_ipp.cc',
182 'backend/print_backend_cups_ipp.h',
183 'printing_context_chromeos.cc',
184 'printing_context_chromeos.h',
185 ],
186 }, { # chromeos==0
187 'sources': [
188 'backend/cups_helper.cc',
189 'backend/cups_helper.h',
190 'backend/print_backend_cups.cc',
191 ],
192 }],
193 ],
194 'defines': [
195 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
196 # of the print backend and enables a custom implementation instead.
197 'PRINT_BACKEND_AVAILABLE',
198 ],
199 }],
200 ['OS=="linux" and chromeos==1', {
201 'defines': [
202 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
203 # of the print backend and enables a custom implementation instead.
204 'PRINT_BACKEND_AVAILABLE',
205 ],
206 'sources': [
207 'backend/print_backend_chromeos.cc',
208 'printed_document_chromeos.cc',
209 ],
210 }],
211 ['OS=="linux" and chromeos==0', {
212 'sources': [
213 'printed_document_linux.cc',
214 'printing_context_linux.cc',
215 'printing_context_linux.h',
216 ],
217 }],
218 ['OS=="android"', {
219 'sources': [
220 'printing_context_android.cc',
221 'printing_context_android.h',
222 ],
223 'dependencies': [
224 'printing_jni_headers',
225 ],
226 }, {
227 'sources': [
228 'pdf_transform.cc',
229 'pdf_transform.h',
230 ],
231 }],
232 ],
233 },
234 {
235 'target_name': 'printing_unittests',
236 'type': 'executable',
237 'dependencies': [
238 '../base/base.gyp:run_all_unittests',
239 '../base/base.gyp:test_support_base',
240 '../testing/gtest.gyp:gtest',
241 '../ui/base/ui_base.gyp:ui_base',
242 '../ui/gfx/gfx.gyp:gfx',
243 '../ui/gfx/gfx.gyp:gfx_geometry',
244 '../ui/gfx/gfx.gyp:gfx_test_support',
245 'printing',
246 ],
247 'sources': [
248 'emf_win_unittest.cc',
249 'page_number_unittest.cc',
250 'page_range_unittest.cc',
251 'page_setup_unittest.cc',
252 'pdf_metafile_cg_mac_unittest.cc',
253 'printed_page_unittest.cc',
254 'printing_context_win_unittest.cc',
255 'printing_test.h',
256 'printing_utils_unittest.cc',
257 'units_unittest.cc',
258 ],
259 'conditions': [
260 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}],
261 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}],
262 ['OS!="android"', {
263 'sources': ['pdf_transform_unittest.cc']
264 }],
265 ['use_cups==1', {
266 'defines': [
267 'USE_CUPS',
268 ],
269 'conditions': [
270 ['chromeos==1', {
271 'sources': ['backend/cups_ipp_util_unittest.cc'],
272 }, {
273 'sources': ['backend/cups_helper_unittest.cc'],
274 }],
275 ],
276 }],
277 ],
278 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
279 'msvs_disabled_warnings': [ 4267, ],
280 },
281 {
282 # GN version: //printing:cups (config, not a target).
283 'target_name': 'cups',
284 'type': 'none',
285 'conditions': [
286 ['use_cups==1', {
287 'direct_dependent_settings': {
288 'defines': [
289 'USE_CUPS',
290 ],
291 'conditions': [
292 ['OS=="mac"', {
293 'link_settings': {
294 'libraries': [
295 '$(SDKROOT)/usr/lib/libcups.dylib',
296 ]
297 },
298 }, {
299 'link_settings': {
300 'libraries': [
301 '<!@(python cups_config_helper.py --libs <(sysroot))',
302 ],
303 },
304 }],
305 ['os_bsd==1', {
306 'cflags': [
307 '<!@(python cups_config_helper.py --cflags <(sysroot))',
308 ],
309 }],
310 ],
311 },
312 }],
313 ],
314 },
315 ],
316 'conditions': [
317 ['OS == "android"', {
318 'targets': [
319 {
320 # GN: //printing:printing_jni_headers
321 'target_name': 'printing_jni_headers',
322 'type': 'none',
323 'sources': [
324 'android/java/src/org/chromium/printing/PrintingContext.java',
325 ],
326 'variables': {
327 'jni_gen_package': 'printing',
328 },
329 'includes': [ '../build/jni_generator.gypi' ],
330 },
331 {
332 # GN: //printing:printing_java
333 'target_name': 'printing_java',
334 'type': 'none',
335 'variables': {
336 'java_in_dir': '../printing/android/java',
337 },
338 'dependencies': [
339 '../base/base.gyp:base_java',
340 ],
341 'includes': [ '../build/java.gypi' ],
342 }
343 ]
344 }],
345 ['test_isolation_mode != "noop"', {
346 'targets': [
347 {
348 'target_name': 'printing_unittests_run',
349 'type': 'none',
350 'dependencies': [
351 'printing_unittests',
352 ],
353 'includes': [
354 '../build/isolate.gypi',
355 ],
356 'sources': [
357 'printing_unittests.isolate',
358 ],
359 },
360 ],
361 }],
362 ]
363 }
OLDNEW
« no previous file with comments | « pdf/pdf.gyp ('k') | sandbox/linux/sandbox_linux.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698