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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 # of the print backend and enables a custom implementation instead. | 118 # of the print backend and enables a custom implementation instead. |
119 'PRINT_BACKEND_AVAILABLE', | 119 'PRINT_BACKEND_AVAILABLE', |
120 ], | 120 ], |
121 'sources': [ | 121 'sources': [ |
122 'backend/win_helper.cc', | 122 'backend/win_helper.cc', |
123 'backend/win_helper.h', | 123 'backend/win_helper.h', |
124 'backend/print_backend_win.cc', | 124 'backend/print_backend_win.cc', |
125 ], | 125 ], |
126 }], | 126 }], |
127 ['use_cups==1', { | 127 ['use_cups==1', { |
128 'dependencies': [ | |
129 'cups', | |
130 ], | |
131 'conditions': [ | |
132 ['OS!="mac"', { | |
133 'dependencies': [ | |
134 '../build/linux/system.gyp:libgcrypt', | |
135 ], | |
136 }], | |
137 ], | |
128 'defines': [ | 138 'defines': [ |
129 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation | 139 # PRINT_BACKEND_AVAILABLE disables the default dummy implementation |
130 # of the print backend and enables a custom implementation instead. | 140 # of the print backend and enables a custom implementation instead. |
131 'PRINT_BACKEND_AVAILABLE', | 141 'PRINT_BACKEND_AVAILABLE', |
132 ], | 142 ], |
133 'sources': [ | 143 'sources': [ |
134 'backend/cups_helper.cc', | 144 'backend/cups_helper.cc', |
135 'backend/cups_helper.h', | 145 'backend/cups_helper.h', |
136 'backend/print_backend_cups.cc', | 146 'backend/print_backend_cups.cc', |
137 ], | 147 ], |
138 'conditions': [ | |
139 ['OS=="mac"', { | |
140 'link_settings': { | |
141 'libraries': [ | |
142 '$(SDKROOT)/usr/lib/libcups.dylib', | |
143 ] | |
144 }, | |
145 }, { | |
146 'link_settings': { | |
147 'libraries': [ | |
148 '-lcups', | |
149 '-lgcrypt', | |
150 ], | |
151 }, | |
152 }], | |
153 ], | |
154 }], | 148 }], |
155 ], | 149 ], |
156 }, | 150 }, |
157 { | 151 { |
158 'target_name': 'printing_unittests', | 152 'target_name': 'printing_unittests', |
159 'type': 'executable', | 153 'type': 'executable', |
160 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', | 154 'msvs_guid': '8B2EE5D9-41BC-4AA2-A401-2DC143A05D2E', |
161 'dependencies': [ | 155 'dependencies': [ |
162 'printing', | 156 'printing', |
163 '../testing/gtest.gyp:gtest', | 157 '../testing/gtest.gyp:gtest', |
(...skipping 30 matching lines...) Expand all Loading... | |
194 'conditions': [ | 188 'conditions': [ |
195 ['linux_use_tcmalloc==1', { | 189 ['linux_use_tcmalloc==1', { |
196 'dependencies': [ | 190 'dependencies': [ |
197 '../base/allocator/allocator.gyp:allocator', | 191 '../base/allocator/allocator.gyp:allocator', |
198 ], | 192 ], |
199 }], | 193 }], |
200 ], | 194 ], |
201 }], | 195 }], |
202 ], | 196 ], |
203 }, | 197 }, |
198 { | |
199 'target_name': 'cups', | |
200 'type': 'none', | |
201 'conditions': [ | |
202 ['use_cups==1', { | |
203 'direct_dependent_settings': { | |
204 'defines': [ | |
205 'USE_CUPS', | |
206 ], | |
207 'conditions': [ | |
208 ['OS=="mac"', { | |
209 'link_settings': { | |
210 'libraries': [ | |
211 '$(SDKROOT)/usr/lib/libcups.dylib', | |
212 ] | |
213 }, | |
214 }, { | |
215 'link_settings': { | |
216 'libraries': [ | |
Mark Mentovai
2011/04/28 15:13:53
I really only wanted to get cups-config out of the
| |
217 '<!@(cups-config --libs)', | |
218 ], | |
219 }, | |
220 }], | |
221 ], | |
222 }, | |
223 }], | |
224 ], | |
225 }, | |
204 ], | 226 ], |
205 } | 227 } |
206 | 228 |
207 # Local Variables: | 229 # Local Variables: |
208 # tab-width:2 | 230 # tab-width:2 |
209 # indent-tabs-mode:nil | 231 # indent-tabs-mode:nil |
210 # End: | 232 # End: |
211 # vim: set expandtab tabstop=2 shiftwidth=2: | 233 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |