Generate debugging information during compilation (bug 5227, r=ds).

This commit is contained in:
Asher Baker
2013-03-17 21:00:28 +00:00
parent 4e7a9cf30b
commit 0f62a8ec2f
20 changed files with 52 additions and 3 deletions
+8
View File
@@ -255,6 +255,14 @@ AddHL2Library('sdktools.ext', 'extensions')
bincopies.append(CopyFile(os.path.join('..', 'spcomp', 'spcomp' + osutil.ExecutableSuffix()),
os.path.join('addons', 'sourcemod', 'scripting')))
# Each platform's version of dump_syms needs the path in a different format.
if AMBuild.target['platform'] == 'linux':
debug_info.append('spcomp' + '/' + 'spcomp')
elif AMBuild.target['platform'] == 'darwin':
debug_info.append('spcomp' + '/' + 'spcomp' + '.dSYM')
elif AMBuild.target['platform'] == 'windows':
debug_info.append('spcomp' + '\\' + 'spcomp' + '.pdb'
job.AddCommandGroup(bincopies)
if AMBuild.target['platform'] == 'windows':