win: Do not generate symbols for static libraries and strip .pdb in symbol name.

This commit is contained in:
Cheng Zhao 2013-11-28 20:53:07 +08:00
Родитель 0d77ba5222
Коммит 30be4a847f
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -79,7 +79,7 @@ def GenerateSymbols(options, binaries):
output_path = os.path.join(options.symbols_dir, module_line.group(2),
module_line.group(1))
mkdir_p(output_path)
symbol_file = "%s.sym" % module_line.group(2)
symbol_file = "%s.sym" % module_line.group(2)[:-4] # strip .pdb
f = open(os.path.join(output_path, symbol_file), 'w')
f.write(syms)
f.close()
@ -123,7 +123,8 @@ def main():
pdbs = []
for directory in directories:
pdbs += glob.glob(os.path.join(directory, '*.pdb'))
pdbs += glob.glob(os.path.join(directory, '*.exe.pdb'))
pdbs += glob.glob(os.path.join(directory, '*.dll.pdb'))
RegisterRequiredDll();
GenerateSymbols(options, pdbs)