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 'includes': [ | 9 'includes': [ |
10 '../build/win_precompile.gypi', | 10 '../build/win_precompile.gypi', |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
159 'i18n/string_search_unittest.cc', | 159 'i18n/string_search_unittest.cc', |
160 'i18n/time_formatting_unittest.cc', | 160 'i18n/time_formatting_unittest.cc', |
161 'json/json_reader_unittest.cc', | 161 'json/json_reader_unittest.cc', |
162 'json/json_value_converter_unittest.cc', | 162 'json/json_value_converter_unittest.cc', |
163 'json/json_value_serializer_unittest.cc', | 163 'json/json_value_serializer_unittest.cc', |
164 'json/json_writer_unittest.cc', | 164 'json/json_writer_unittest.cc', |
165 'json/string_escape_unittest.cc', | 165 'json/string_escape_unittest.cc', |
166 'lazy_instance_unittest.cc', | 166 'lazy_instance_unittest.cc', |
167 'linked_list_unittest.cc', | 167 'linked_list_unittest.cc', |
168 'logging_unittest.cc', | 168 'logging_unittest.cc', |
169 'mac/closure_blocks_leopard_compat_unittest.cc', | |
169 'mac/foundation_util_unittest.mm', | 170 'mac/foundation_util_unittest.mm', |
170 'mac/mac_util_unittest.mm', | 171 'mac/mac_util_unittest.mm', |
171 'mac/objc_property_releaser_unittest.mm', | 172 'mac/objc_property_releaser_unittest.mm', |
172 'mac/scoped_sending_event_unittest.mm', | 173 'mac/scoped_sending_event_unittest.mm', |
173 'md5_unittest.cc', | 174 'md5_unittest.cc', |
174 'memory/aligned_memory_unittest.cc', | 175 'memory/aligned_memory_unittest.cc', |
175 'memory/linked_ptr_unittest.cc', | 176 'memory/linked_ptr_unittest.cc', |
176 'memory/mru_cache_unittest.cc', | 177 'memory/mru_cache_unittest.cc', |
177 'memory/ref_counted_memory_unittest.cc', | 178 'memory/ref_counted_memory_unittest.cc', |
178 'memory/ref_counted_unittest.cc', | 179 'memory/ref_counted_unittest.cc', |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
348 ], | 349 ], |
349 'sources/': [ | 350 'sources/': [ |
350 ['exclude', '^win/'], | 351 ['exclude', '^win/'], |
351 ], | 352 ], |
352 'sources!': [ | 353 'sources!': [ |
353 'debug/trace_event_win_unittest.cc', | 354 'debug/trace_event_win_unittest.cc', |
354 'time_win_unittest.cc', | 355 'time_win_unittest.cc', |
355 'win/win_util_unittest.cc', | 356 'win/win_util_unittest.cc', |
356 ], | 357 ], |
357 }], | 358 }], |
359 ['OS=="mac"', { | |
360 'dependencies': [ | |
361 'closure_blocks_leopard_compat', | |
Mark Mentovai
2012/03/01 01:25:11
I'd rather just make the targets that need it depe
jam
2012/03/01 01:27:20
this is for base_unittests. won't that need it for
| |
362 ], | |
363 }], | |
358 ], | 364 ], |
359 }, | 365 }, |
360 { | 366 { |
361 'target_name': 'check_example', | 367 'target_name': 'check_example', |
362 'type': 'executable', | 368 'type': 'executable', |
363 'sources': [ | 369 'sources': [ |
364 'check_example.cc', | 370 'check_example.cc', |
365 ], | 371 ], |
366 'dependencies': [ | 372 'dependencies': [ |
367 'base', | 373 'base', |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
456 # base/test/perf_test_suite.h | 462 # base/test/perf_test_suite.h |
457 # base/test/test_suite.h | 463 # base/test/test_suite.h |
458 # gtk/gtk.h | 464 # gtk/gtk.h |
459 '../build/linux/system.gyp:gtk', | 465 '../build/linux/system.gyp:gtk', |
460 ], | 466 ], |
461 }], | 467 }], |
462 ], | 468 ], |
463 }, | 469 }, |
464 ], | 470 ], |
465 'conditions': [ | 471 'conditions': [ |
466 [ 'OS == "win"', { | 472 ['OS == "win"', { |
467 'targets': [ | 473 'targets': [ |
468 { | 474 { |
469 'target_name': 'debug_message', | 475 'target_name': 'debug_message', |
470 'type': 'executable', | 476 'type': 'executable', |
471 'sources': [ | 477 'sources': [ |
472 'debug_message.cc', | 478 'debug_message.cc', |
473 ], | 479 ], |
474 'msvs_settings': { | 480 'msvs_settings': { |
475 'VCLinkerTool': { | 481 'VCLinkerTool': { |
476 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | 482 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
477 }, | 483 }, |
478 }, | 484 }, |
479 }, | 485 }, |
480 ], | 486 ], |
481 }], | 487 }], |
488 ['OS=="mac"', { | |
489 'targets': [ | |
490 { | |
491 'target_name': 'closure_blocks_leopard_compat', | |
492 'sources': [ | |
493 'mac/closure_blocks_leopard_compat.h', | |
494 ], | |
495 'conditions': [ | |
496 ['mac_sdk == "10.5"', { | |
497 'type': 'shared_library', | |
498 'product_name': 'closure_blocks_leopard_compat_stub', | |
499 'variables': { | |
500 # This target controls stripping directly. See below. | |
501 'mac_strip': 0, | |
502 }, | |
503 'sources': [ | |
504 'mac/closure_blocks_leopard_compat.S', | |
505 ], | |
506 'xcode_settings': { | |
507 # These values are taken from libSystem.dylib in the 10.5 | |
508 # SDK. Setting LD_DYLIB_INSTALL_NAME causes anything linked | |
509 # against this stub library to look for the symbols it | |
510 # provides in the real libSystem at runtime. When using ld | |
511 # from Xcode 4 or later (ld64-123.2 and up), giving two | |
512 # libraries with the same "install name" to the linker will | |
513 # cause it to print "ld: warning: dylibs with same install | |
514 # name". This is harmless, and ld will behave as intended | |
515 # here. | |
516 # | |
517 # The real library's compatibility version is used, and the | |
518 # value of the current version from the SDK is used to make | |
519 # it appear as though anything linked against this stub was | |
520 # linked against the real thing. | |
521 'LD_DYLIB_INSTALL_NAME': '/usr/lib/libSystem.B.dylib', | |
522 'DYLIB_COMPATIBILITY_VERSION': '1.0.0', | |
523 'DYLIB_CURRENT_VERSION': '111.1.4', | |
524 | |
525 # Turn on stripping (yes, even in debug mode), and add the -c | |
526 # flag. This is what produces a stub library (MH_DYLIB_STUB) | |
527 # as opposed to a dylib (MH_DYLIB). MH_DYLIB_STUB files | |
528 # contain symbol tables and everything else needed for | |
529 # linking, but are stripped of section contents. This is the | |
530 # same way that the stub libraries in Mac OS X SDKs are | |
531 # created. dyld will refuse to load a stub library, so this | |
532 # provides some insurance in case anyone tries to load the | |
533 # stub at runtime. | |
534 'DEPLOYMENT_POSTPROCESSING': 'YES', | |
535 'STRIP_STYLE': 'non-global', | |
536 'STRIPFLAGS': '-c', | |
537 }, | |
538 }, { # else: mac_sdk != "10.5" | |
539 # When using the 10.6 SDK or newer, the necessary definitions | |
540 # are already present in libSystem.dylib. There is no need to | |
541 # build a stub dylib to provide these symbols at link time. | |
542 # This target is still useful to cause those symbols to be | |
543 # treated as weak imports in dependents, who still must | |
544 # #include closure_blocks_leopard_compat.h to get weak imports. | |
545 'type': 'none', | |
546 }], | |
547 ], | |
548 }, | |
549 ], | |
550 }], | |
482 ], | 551 ], |
483 } | 552 } |
OLD | NEW |