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
3 # found in the LICENSE file.
11 'target_name': 'printing',
12 'type': '<(component)',
14 '../base/base.gyp:base',
15 '../base/base.gyp:base_i18n',
16 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
17 '../build/temp_gyp/googleurl.gyp:googleurl',
18 '../skia/skia.gyp:skia',
19 '../third_party/icu/icu.gyp:icui18n',
20 '../third_party/icu/icu.gyp:icuuc',
24 'PRINTING_IMPLEMENTATION',
30 'backend/print_backend.cc',
31 'backend/print_backend.h',
32 'backend/print_backend_consts.cc',
33 'backend/print_backend_consts.h',
34 'backend/print_backend_dummy.cc',
44 'metafile_skia_wrapper.h',
45 'metafile_skia_wrapper.cc',
52 'page_size_margins.cc',
53 'page_size_margins.h',
54 'pdf_metafile_cg_mac.cc',
55 'pdf_metafile_cg_mac.h',
56 'pdf_metafile_skia.h',
57 'pdf_metafile_skia.cc',
58 'printed_document_gtk.cc',
59 'printed_document.cc',
61 'printed_document_mac.cc',
62 'printed_document_win.cc',
65 'printed_pages_source.h',
66 'printing_context.cc',
68 'print_dialog_gtk_interface.h',
69 'print_job_constants.cc',
70 'print_job_constants.h',
73 'print_settings_initializer.cc',
74 'print_settings_initializer.h',
75 'print_settings_initializer_gtk.cc',
76 'print_settings_initializer_gtk.h',
77 'print_settings_initializer_mac.cc',
78 'print_settings_initializer_mac.h',
79 'print_settings_initializer_win.cc',
80 'print_settings_initializer_win.h',
84 'direct_dependent_settings': {
90 ['toolkit_uses_gtk == 0',{
91 'sources/': [['exclude', '_cairo\\.cc$']]
93 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}],
94 ['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']]
95 }, { # else: OS=="win"
96 'sources/': [['exclude', '_posix\\.cc$']]
98 ['toolkit_uses_gtk == 1', {
100 # For FT_Init_FreeType and friends.
101 '../build/linux/system.gyp:freetype2',
102 '../build/linux/system.gyp:gtk',
103 '../build/linux/system.gyp:gtkprint',
106 ['OS=="mac" and use_skia==0', {
108 ['exclude', 'pdf_metafile_skia\\.(cc|h)$'],
109 ['exclude', 'metafile_skia_wrapper\\.(cc|h)$'],
112 # Mac-Aura does not support printing.
113 ['OS=="mac" and use_aura==1',{
115 'printed_document_mac.cc',
116 'printing_context_mac.mm',
117 'printing_context_mac.h',
120 ['OS=="mac" and use_aura==0',{
122 'printing_context_mac.mm',
123 'printing_context_mac.h',
130 'printing_context_win.cc',
131 'printing_context_win.h',
135 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
136 # of the print backend and enables a custom implementation instead.
137 'PRINT_BACKEND_AVAILABLE',
140 'backend/win_helper.cc',
141 'backend/win_helper.h',
142 'backend/print_backend_win.cc',
145 ['chromeos==1 or use_aura==1',{
147 'printing_context_no_system_dialog.cc',
148 'printing_context_no_system_dialog.h',
158 '../build/linux/system.gyp:libgcrypt',
163 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
164 # of the print backend and enables a custom implementation instead.
165 'PRINT_BACKEND_AVAILABLE',
168 'backend/cups_helper.cc',
169 'backend/cups_helper.h',
170 'backend/print_backend_cups.cc',
173 ['OS=="linux" and chromeos==1', {
175 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation
176 # of the print backend and enables a custom implementation instead.
177 'PRINT_BACKEND_AVAILABLE',
180 'backend/print_backend_chromeos.cc',
183 ['toolkit_uses_gtk==1 and chromeos==0', {
185 'printing_context_gtk.cc',
186 'printing_context_gtk.h',
192 'target_name': 'printing_unittests',
193 'type': 'executable',
196 '../testing/gtest.gyp:gtest',
197 '../base/base.gyp:test_support_base',
201 'emf_win_unittest.cc',
203 'page_number_unittest.cc',
204 'page_range_unittest.cc',
205 'page_setup_unittest.cc',
206 'pdf_metafile_cg_mac_unittest.cc',
207 'printed_page_unittest.cc',
208 'run_all_unittests.cc',
212 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_gtk_unittest\\.cc$']]}],
213 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}],
214 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}],
215 ['OS=="win" and use_aura == 0', {
217 'printing_context_win_unittest.cc',
220 ['toolkit_uses_gtk == 1', {
222 '../build/linux/system.gyp:gtk',
225 ['linux_use_tcmalloc == 1', {
227 '../base/allocator/allocator.gyp:allocator',
235 'target_name': 'cups',
239 'direct_dependent_settings': {
247 '$(SDKROOT)/usr/lib/libcups.dylib',
253 '<!@(python cups_config_helper.py --libs)',
259 '<!@(python cups_config_helper.py --cflags)',