| 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 'includes': [ | 6 'includes': [ |
| 7 'breakpad_sender.gypi', | 7 'breakpad_sender.gypi', |
| 8 'breakpad_handler.gypi', | 8 'breakpad_handler.gypi', |
| 9 ], | 9 ], |
| 10 'conditions': [ | 10 'conditions': [ |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 'libraries': [ | 99 'libraries': [ |
| 100 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', | 100 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 101 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 101 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 102 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', | 102 '$(SDKROOT)/System/Library/Frameworks/SystemConfiguration.framewor
k', |
| 103 ], | 103 ], |
| 104 } | 104 } |
| 105 }, | 105 }, |
| 106 { | 106 { |
| 107 'target_name': 'dump_syms', | 107 'target_name': 'dump_syms', |
| 108 'type': 'executable', | 108 'type': 'executable', |
| 109 'variables': { | |
| 110 # Turn off PIE because it may interfere with dump_syms' ability to | |
| 111 # allocate a contiguous region in memory large enough to mmap the | |
| 112 # entire unstripped framework in a 32-bit dump_syms process. | |
| 113 'mac_pie': 0, | |
| 114 }, | |
| 115 'include_dirs++': [ | 109 'include_dirs++': [ |
| 116 # ++ ensures this comes before src brought in from target_defaults. | 110 # ++ ensures this comes before src brought in from target_defaults. |
| 117 'pending/src', | 111 'pending/src', |
| 118 ], | 112 ], |
| 119 'include_dirs': [ | 113 'include_dirs': [ |
| 120 'src/common/mac', | 114 'src/common/mac', |
| 121 ], | 115 ], |
| 122 'sources': [ | 116 'sources': [ |
| 123 'src/common/dwarf/dwarf2diehandler.cc', | 117 'src/common/dwarf/dwarf2diehandler.cc', |
| 124 'src/common/dwarf/dwarf2reader.cc', | 118 'src/common/dwarf/dwarf2reader.cc', |
| (...skipping 12 matching lines...) Expand all Loading... |
| 137 'src/common/stabs_reader.cc', | 131 'src/common/stabs_reader.cc', |
| 138 'src/common/stabs_to_module.cc', | 132 'src/common/stabs_to_module.cc', |
| 139 'src/tools/mac/dump_syms/dump_syms_tool.mm', | 133 'src/tools/mac/dump_syms/dump_syms_tool.mm', |
| 140 'src/common/md5.c', | 134 'src/common/md5.c', |
| 141 ], | 135 ], |
| 142 'defines': [ | 136 'defines': [ |
| 143 # For src/common/stabs_reader.h. | 137 # For src/common/stabs_reader.h. |
| 144 'HAVE_MACH_O_NLIST_H', | 138 'HAVE_MACH_O_NLIST_H', |
| 145 ], | 139 ], |
| 146 'xcode_settings': { | 140 'xcode_settings': { |
| 141 # Like ld, dump_syms needs to operate on enough data that it may |
| 142 # actually need to be able to address more than 4GB. Use x86_64. |
| 143 # Don't worry! An x86_64 dump_syms is perfectly able to dump |
| 144 # 32-bit files. |
| 145 'ARCHS': [ |
| 146 'x86_64', |
| 147 ], |
| 148 |
| 147 # The DWARF utilities require -funsigned-char. | 149 # The DWARF utilities require -funsigned-char. |
| 148 'GCC_CHAR_IS_UNSIGNED_CHAR': 'YES', | 150 'GCC_CHAR_IS_UNSIGNED_CHAR': 'YES', |
| 151 |
| 149 # dwarf2reader.cc uses dynamic_cast. | 152 # dwarf2reader.cc uses dynamic_cast. |
| 150 'GCC_ENABLE_CPP_RTTI': 'YES', | 153 'GCC_ENABLE_CPP_RTTI': 'YES', |
| 151 }, | 154 }, |
| 152 'link_settings': { | 155 'link_settings': { |
| 153 'libraries': [ | 156 'libraries': [ |
| 154 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', | 157 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 155 ], | 158 ], |
| 156 }, | 159 }, |
| 157 'configurations': { | 160 'configurations': { |
| 158 'Release_Base': { | 161 'Release_Base': { |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 | 434 |
| 432 'include_dirs': [ | 435 'include_dirs': [ |
| 433 '..', | 436 '..', |
| 434 'src', | 437 'src', |
| 435 ], | 438 ], |
| 436 }, | 439 }, |
| 437 ], | 440 ], |
| 438 }], | 441 }], |
| 439 ], | 442 ], |
| 440 } | 443 } |
| OLD | NEW |