1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-30 19:52:17 +01:00

Fix BreakpadSymbols.

This commit is contained in:
David Anderson 2020-08-19 14:54:20 -07:00
parent 2eea77981d
commit 43a30176c0

View File

@ -7,21 +7,26 @@ UPLOAD_SCRIPT = os.path.join(builder.sourcePath, 'support', 'buildbot', 'upload_
cxx_tasks = MMS.binaries
for cxx_task in cxx_tasks:
if builder.target.platform in ['windows']:
if cxx_task.target.platform in ['windows']:
debug_entry = cxx_task.debug
else:
debug_entry = cxx_task.binary
debug_file = os.path.join(builder.buildPath, debug_entry.path)
if builder.target.platform == 'linux':
if cxx_task.target.platform == 'linux':
argv = ['dump_syms', debug_file, os.path.dirname(debug_file)]
elif builder.target.platform == 'mac':
elif cxx_task.target.platform == 'mac':
argv = ['dump_syms', debug_file + '.dSYM']
elif builder.target.platform == 'windows':
elif cxx_task.target.platform == 'windows':
argv = ['dump_syms.exe', debug_file]
base_file = os.path.split(os.path.dirname(debug_file))[1]
symbol_file = base_file + '.breakpad'
plat_dir = os.path.dirname(debug_file)
bin_dir = os.path.split(plat_dir)[0]
symbol_file = '{}-{}-{}.breakpad'.format(
os.path.split(bin_dir)[1],
cxx_task.target.platform,
cxx_task.target.arch)
argv = [sys.executable, UPLOAD_SCRIPT, symbol_file] + argv
builder.AddCommand(