Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: build/common.gypi

Issue 116443008: Add mac_write_linker_maps gyp define. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 # IMPORTANT: 5 # IMPORTANT:
6 # Please don't directly include this file if you are building via gyp_chromium, 6 # Please don't directly include this file if you are building via gyp_chromium,
7 # since gyp_chromium is automatically forcing its inclusion. 7 # since gyp_chromium is automatically forcing its inclusion.
8 { 8 {
9 # Variables expected to be overriden on the GYP command line (-D) or by 9 # Variables expected to be overriden on the GYP command line (-D) or by
10 # ~/.gyp/include.gypi. 10 # ~/.gyp/include.gypi.
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 1085
1086 # These two variables can be set in GYP_DEFINES while running 1086 # These two variables can be set in GYP_DEFINES while running
1087 # |gclient runhooks| to let clang run a plugin in every compilation. 1087 # |gclient runhooks| to let clang run a plugin in every compilation.
1088 # Only has an effect if 'clang=1' is in GYP_DEFINES as well. 1088 # Only has an effect if 'clang=1' is in GYP_DEFINES as well.
1089 # Example: 1089 # Example:
1090 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks 1090 # GYP_DEFINES='clang=1 clang_load=/abs/path/to/libPrintFunctionNames.dyl ib clang_add_plugin=print-fns' gclient runhooks
1091 1091
1092 'clang_load%': '', 1092 'clang_load%': '',
1093 'clang_add_plugin%': '', 1093 'clang_add_plugin%': '',
1094 1094
1095 # Tell ld64 to write map files describing binary layout. Useful
1096 # for looking at what contributes to binary size, e.g. with
1097 # https://github.com/nico/bloat
1098 'mac_write_linker_maps%': 0,
1099
1095 # The default type of gtest. 1100 # The default type of gtest.
1096 'gtest_target_type%': 'executable', 1101 'gtest_target_type%': 'executable',
1097 1102
1098 # Enable sampling based profiler. 1103 # Enable sampling based profiler.
1099 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html 1104 # See http://google-perftools.googlecode.com/svn/trunk/doc/cpuprofile.html
1100 'profiling%': '0', 1105 'profiling%': '0',
1101 # Profile without optimizing out stack frames when profiling==1. 1106 # Profile without optimizing out stack frames when profiling==1.
1102 'profiling_full_stack_frames%': '0', 1107 'profiling_full_stack_frames%': '0',
1103 1108
1104 # And if we want to dump symbols for Breakpad-enabled builds. 1109 # And if we want to dump symbols for Breakpad-enabled builds.
(...skipping 2980 matching lines...) Expand 10 before | Expand all | Expand 10 after
4085 ['_type!="static_library"', { 4090 ['_type!="static_library"', {
4086 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 4091 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
4087 'conditions': [ 4092 'conditions': [
4088 ['asan==1', { 4093 ['asan==1', {
4089 'xcode_settings': { 4094 'xcode_settings': {
4090 'OTHER_LDFLAGS': [ 4095 'OTHER_LDFLAGS': [
4091 '-fsanitize=address', 4096 '-fsanitize=address',
4092 ], 4097 ],
4093 }, 4098 },
4094 }], 4099 }],
4100 ['mac_write_linker_maps==1', {
4101 'xcode_settings': {
4102 'OTHER_LDFLAGS': [
4103 '-Wl,-map,>(_target_name).map',
4104 ],
4105 },
4106 }],
4095 ], 4107 ],
4096 }], 4108 }],
4097 ['_mac_bundle', { 4109 ['_mac_bundle', {
4098 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 4110 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
4099 'target_conditions': [ 4111 'target_conditions': [
4100 ['_type=="executable"', { 4112 ['_type=="executable"', {
4101 'conditions': [ 4113 'conditions': [
4102 ['asan==1', { 4114 ['asan==1', {
4103 'postbuilds': [ 4115 'postbuilds': [
4104 { 4116 {
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
4781 # settings in target dicts. SYMROOT is a special case, because many other 4793 # settings in target dicts. SYMROOT is a special case, because many other
4782 # Xcode variables depend on it, including variables such as 4794 # Xcode variables depend on it, including variables such as
4783 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 4795 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
4784 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 4796 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
4785 # files to appear (when present) in the UI as actual files and not red 4797 # files to appear (when present) in the UI as actual files and not red
4786 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 4798 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
4787 # and therefore SYMROOT, needs to be set at the project level. 4799 # and therefore SYMROOT, needs to be set at the project level.
4788 'SYMROOT': '<(DEPTH)/xcodebuild', 4800 'SYMROOT': '<(DEPTH)/xcodebuild',
4789 }, 4801 },
4790 } 4802 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698