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
parent 0d77ba5222
commit 30be4a847f

View file

@ -79,7 +79,7 @@ def GenerateSymbols(options, binaries):
output_path = os.path.join(options.symbols_dir, module_line.group(2), output_path = os.path.join(options.symbols_dir, module_line.group(2),
module_line.group(1)) module_line.group(1))
mkdir_p(output_path) 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 = open(os.path.join(output_path, symbol_file), 'w')
f.write(syms) f.write(syms)
f.close() f.close()
@ -123,7 +123,8 @@ def main():
pdbs = [] pdbs = []
for directory in directories: 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(); RegisterRequiredDll();
GenerateSymbols(options, pdbs) GenerateSymbols(options, pdbs)