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

Side by Side Diff: build/common.gypi

Issue 2468002: Generate .dSYM bundles for loadable_modules as well. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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': { 9 'variables': {
10 # .gyp files or targets should set chromium_code to 1 if they build 10 # .gyp files or targets should set chromium_code to 1 if they build
(...skipping 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 ], 1145 ],
1146 ], 1146 ],
1147 }, 1147 },
1148 'target_conditions': [ 1148 'target_conditions': [
1149 ['_type!="static_library"', { 1149 ['_type!="static_library"', {
1150 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 1150 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
1151 }], 1151 }],
1152 ['_mac_bundle', { 1152 ['_mac_bundle', {
1153 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']}, 1153 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-ObjC']},
1154 }], 1154 }],
1155 ['_type=="executable" or _type=="shared_library"', { 1155 ['_type=="executable" or _type=="shared_library" or _type=="loadable_m odule"', {
1156 'target_conditions': [ 1156 'target_conditions': [
1157 ['mac_real_dsym == 1', { 1157 ['mac_real_dsym == 1', {
1158 # To get a real .dSYM bundle produced by dsymutil, set the 1158 # To get a real .dSYM bundle produced by dsymutil, set the
1159 # debug information format to dwarf-with-dsym. Since 1159 # debug information format to dwarf-with-dsym. Since
1160 # strip_from_xcode will not be used, set Xcode to do the 1160 # strip_from_xcode will not be used, set Xcode to do the
1161 # stripping as well. 1161 # stripping as well.
1162 'configurations': { 1162 'configurations': {
1163 'Release_Base': { 1163 'Release_Base': {
1164 'xcode_settings': { 1164 'xcode_settings': {
1165 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym', 1165 'DEBUG_INFORMATION_FORMAT': 'dwarf-with-dsym',
1166 'DEPLOYMENT_POSTPROCESSING': 'YES', 1166 'DEPLOYMENT_POSTPROCESSING': 'YES',
1167 'STRIP_INSTALLED_PRODUCT': 'YES', 1167 'STRIP_INSTALLED_PRODUCT': 'YES',
1168 'target_conditions': [ 1168 'target_conditions': [
1169 ['_type=="shared_library"', { 1169 ['_type=="shared_library" or _type=="loadable_module"', {
1170 # The Xcode default is to strip debugging symbols 1170 # The Xcode default is to strip debugging symbols
1171 # only (-S). Local symbols should be stripped as 1171 # only (-S). Local symbols should be stripped as
1172 # well, which will be handled by -x. Xcode will 1172 # well, which will be handled by -x. Xcode will
1173 # continue to insert -S when stripping even when 1173 # continue to insert -S when stripping even when
1174 # additional flags are added with STRIPFLAGS. 1174 # additional flags are added with STRIPFLAGS.
1175 'STRIPFLAGS': '-x', 1175 'STRIPFLAGS': '-x',
1176 }], # _type=="shared_library" 1176 }], # _type=="shared_library"
Mark Mentovai 2010/06/01 18:07:40 Fix this closing comment too.
1177 ], # target_conditions 1177 ], # target_conditions
1178 }, # xcode_settings 1178 }, # xcode_settings
1179 }, # configuration "Release" 1179 }, # configuration "Release"
1180 }, # configurations 1180 }, # configurations
1181 }, { # mac_real_dsym != 1 1181 }, { # mac_real_dsym != 1
1182 # To get a fast fake .dSYM bundle, use a post-build step to 1182 # To get a fast fake .dSYM bundle, use a post-build step to
1183 # produce the .dSYM and strip the executable. strip_from_xcode 1183 # produce the .dSYM and strip the executable. strip_from_xcode
1184 # only operates in the Release configuration. 1184 # only operates in the Release configuration.
1185 'postbuilds': [ 1185 'postbuilds': [
1186 { 1186 {
1187 'variables': { 1187 'variables': {
1188 # Define strip_from_xcode in a variable ending in _path 1188 # Define strip_from_xcode in a variable ending in _path
1189 # so that gyp understands it's a path and performs proper 1189 # so that gyp understands it's a path and performs proper
1190 # relativization during dict merging. 1190 # relativization during dict merging.
1191 'strip_from_xcode_path': 'mac/strip_from_xcode', 1191 'strip_from_xcode_path': 'mac/strip_from_xcode',
1192 }, 1192 },
1193 'postbuild_name': 'Strip If Needed', 1193 'postbuild_name': 'Strip If Needed',
1194 'action': ['<(strip_from_xcode_path)'], 1194 'action': ['<(strip_from_xcode_path)'],
1195 }, 1195 },
1196 ], # postbuilds 1196 ], # postbuilds
1197 }], # mac_real_dsym 1197 }], # mac_real_dsym
1198 ], # target_conditions 1198 ], # target_conditions
1199 }], # _type=="executable" or _type=="shared_library" 1199 }], # _type=="executable" or _type=="shared_library" or _type=="loada ble_module"
1200 ], # target_conditions 1200 ], # target_conditions
1201 }, # target_defaults 1201 }, # target_defaults
1202 }], # OS=="mac" 1202 }], # OS=="mac"
1203 ['OS=="win"', { 1203 ['OS=="win"', {
1204 'target_defaults': { 1204 'target_defaults': {
1205 'defines': [ 1205 'defines': [
1206 '_WIN32_WINNT=0x0600', 1206 '_WIN32_WINNT=0x0600',
1207 'WINVER=0x0600', 1207 'WINVER=0x0600',
1208 'WIN32', 1208 'WIN32',
1209 '_WINDOWS', 1209 '_WINDOWS',
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 # and therefore SYMROOT, needs to be set at the project level. 1370 # and therefore SYMROOT, needs to be set at the project level.
1371 'SYMROOT': '<(DEPTH)/xcodebuild', 1371 'SYMROOT': '<(DEPTH)/xcodebuild',
1372 }, 1372 },
1373 } 1373 }
1374 1374
1375 # Local Variables: 1375 # Local Variables:
1376 # tab-width:2 1376 # tab-width:2
1377 # indent-tabs-mode:nil 1377 # indent-tabs-mode:nil
1378 # End: 1378 # End:
1379 # vim: set expandtab tabstop=2 shiftwidth=2: 1379 # vim: set expandtab tabstop=2 shiftwidth=2:
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