Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 'print_settings_initializer_win.h', | 80 'print_settings_initializer_win.h', |
| 81 'units.cc', | 81 'units.cc', |
| 82 'units.h', | 82 'units.h', |
| 83 ], | 83 ], |
| 84 'direct_dependent_settings': { | 84 'direct_dependent_settings': { |
| 85 'include_dirs': [ | 85 'include_dirs': [ |
| 86 '..', | 86 '..', |
| 87 ], | 87 ], |
| 88 }, | 88 }, |
| 89 'conditions': [ | 89 'conditions': [ |
| 90 ['enable_printing!=1', { | |
| 91 'sources/': [ | |
| 92 ['exclude', '.'], | |
| 93 ], | |
| 94 }], | |
| 90 ['toolkit_uses_gtk == 0',{ | 95 ['toolkit_uses_gtk == 0',{ |
| 91 'sources/': [['exclude', '_cairo\\.cc$']] | 96 'sources/': [['exclude', '_cairo\\.cc$']] |
| 92 }], | 97 }], |
| 93 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], | 98 ['OS!="mac"', {'sources/': [['exclude', '_mac\\.(cc|mm?)$']]}], |
| 94 ['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']] | 99 ['OS!="win"', {'sources/': [['exclude', '_win\\.cc$']] |
| 95 }, { # else: OS=="win" | 100 }, { # else: OS=="win" |
| 96 'sources/': [['exclude', '_posix\\.cc$']] | 101 'sources/': [['exclude', '_posix\\.cc$']] |
| 97 }], | 102 }], |
| 98 ['toolkit_uses_gtk == 1', { | 103 ['toolkit_uses_gtk == 1', { |
| 99 'dependencies': [ | 104 'dependencies': [ |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 202 'printing_test.h', | 207 'printing_test.h', |
| 203 'page_number_unittest.cc', | 208 'page_number_unittest.cc', |
| 204 'page_range_unittest.cc', | 209 'page_range_unittest.cc', |
| 205 'page_setup_unittest.cc', | 210 'page_setup_unittest.cc', |
| 206 'pdf_metafile_cg_mac_unittest.cc', | 211 'pdf_metafile_cg_mac_unittest.cc', |
| 207 'printed_page_unittest.cc', | 212 'printed_page_unittest.cc', |
| 208 'run_all_unittests.cc', | 213 'run_all_unittests.cc', |
| 209 'units_unittest.cc', | 214 'units_unittest.cc', |
| 210 ], | 215 ], |
| 211 'conditions': [ | 216 'conditions': [ |
| 217 ['enable_printing!=1', { | |
| 218 'sources/': [ | |
| 219 ['exclude', '.'], | |
| 220 ['include', 'run_all_unittests.cc'], | |
| 221 ], | |
| 222 }], | |
| 212 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_gtk_unittest\\.cc$ ']]}], | 223 ['toolkit_uses_gtk == 0', {'sources/': [['exclude', '_gtk_unittest\\.cc$ ']]}], |
| 213 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], | 224 ['OS!="mac"', {'sources/': [['exclude', '_mac_unittest\\.(cc|mm?)$']]}], |
| 214 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], | 225 ['OS!="win"', {'sources/': [['exclude', '_win_unittest\\.cc$']]}], |
| 215 ['OS=="win" and use_aura == 0', { | 226 ['OS=="win" and use_aura == 0', { |
| 216 'sources': [ | 227 'sources': [ |
| 217 'printing_context_win_unittest.cc', | 228 'printing_context_win_unittest.cc', |
| 218 ] | 229 ] |
| 219 }], | 230 }], |
| 220 ['toolkit_uses_gtk == 1', { | 231 ['toolkit_uses_gtk == 1', { |
| 221 'dependencies': [ | 232 'dependencies': [ |
| 222 '../build/linux/system.gyp:gtk', | 233 '../build/linux/system.gyp:gtk', |
| 223 ], | 234 ], |
| 224 'conditions': [ | 235 'conditions': [ |
| 225 ['linux_use_tcmalloc == 1', { | 236 ['linux_use_tcmalloc == 1', { |
| 226 'dependencies': [ | 237 'dependencies': [ |
| 227 '../base/allocator/allocator.gyp:allocator', | 238 '../base/allocator/allocator.gyp:allocator', |
| 228 ], | 239 ], |
| 229 }], | 240 }], |
| 230 ], | 241 ], |
| 231 }], | 242 }], |
| 232 ], | 243 ], |
| 233 }, | 244 }, |
| 234 { | 245 { |
| 235 'target_name': 'cups', | 246 'target_name': 'cups', |
| 236 'type': 'none', | 247 'type': 'none', |
| 237 'conditions': [ | 248 'conditions': [ |
| 238 ['use_cups==1', { | 249 ['use_cups==1 and enable_printing==1', { |
|
Lei Zhang
2012/06/08 19:08:41
I don't think you need this. |use_cups| is already
Xianzhu
2012/06/08 22:50:43
Done.
| |
| 239 'direct_dependent_settings': { | 250 'direct_dependent_settings': { |
| 240 'defines': [ | 251 'defines': [ |
| 241 'USE_CUPS', | 252 'USE_CUPS', |
| 242 ], | 253 ], |
| 243 'conditions': [ | 254 'conditions': [ |
| 244 ['OS=="mac"', { | 255 ['OS=="mac"', { |
| 245 'link_settings': { | 256 'link_settings': { |
| 246 'libraries': [ | 257 'libraries': [ |
| 247 '$(SDKROOT)/usr/lib/libcups.dylib', | 258 '$(SDKROOT)/usr/lib/libcups.dylib', |
| 248 ] | 259 ] |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 259 '<!@(python cups_config_helper.py --cflags)', | 270 '<!@(python cups_config_helper.py --cflags)', |
| 260 ], | 271 ], |
| 261 }], | 272 }], |
| 262 ], | 273 ], |
| 263 }, | 274 }, |
| 264 }], | 275 }], |
| 265 ], | 276 ], |
| 266 }, | 277 }, |
| 267 ], | 278 ], |
| 268 } | 279 } |
| OLD | NEW |