Chromium Code Reviews| 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 'cflags': [ | |
| 208 '<!@(cups-config --cflags)', | |
|
Mark Mentovai
2011/04/28 14:17:28
I’d like to avoid running cups-config at all on th
Paweł Hajdan Jr.
2011/04/28 15:07:39
Done.
| |
| 209 ], | |
| 210 'ldflags': [ | |
| 211 '<!@(cups-config --ldflags)', | |
| 212 ], | |
| 213 'conditions': [ | |
| 214 ['OS=="mac"', { | |
| 215 'link_settings': { | |
| 216 'libraries': [ | |
| 217 '$(SDKROOT)/usr/lib/libcups.dylib', | |
| 218 ] | |
| 219 }, | |
| 220 }, { | |
| 221 'link_settings': { | |
| 222 'libraries': [ | |
| 223 '<!@(cups-config --libs)', | |
| 224 ], | |
| 225 }, | |
| 226 }], | |
| 227 ], | |
| 228 }, | |
| 229 }], | |
| 230 ], | |
| 231 }, | |
| 204 ], | 232 ], |
| 205 } | 233 } |
| 206 | 234 |
| 207 # Local Variables: | 235 # Local Variables: |
| 208 # tab-width:2 | 236 # tab-width:2 |
| 209 # indent-tabs-mode:nil | 237 # indent-tabs-mode:nil |
| 210 # End: | 238 # End: |
| 211 # vim: set expandtab tabstop=2 shiftwidth=2: | 239 # vim: set expandtab tabstop=2 shiftwidth=2: |
| OLD | NEW |