fix(windows installer): change path to search library

This commit is contained in:
David Callu 2015-11-17 11:50:02 +01:00
parent acc23b8972
commit 72aaf6d8fb

View File

@ -86,7 +86,11 @@ for f in google_breakpad_header_files:
google_breakpad_library_dir_base = 'client/windows' google_breakpad_library_dir_base = [
'client/windows',
'client/windows/crash_generation',
'client/windows/handler'
]
google_breakpad_library_dir_end = 'lib' google_breakpad_library_dir_end = 'lib'
google_breakpad_library_files = [ google_breakpad_library_files = [
'crash_generation_client.lib', 'crash_generation_client.lib',
@ -101,13 +105,13 @@ build_type = [
] ]
# copy libraries # copy libraries
for bt in build_type: for dir in google_breakpad_library_dir_base:
for f in google_breakpad_library_files: for buildType in build_type:
bt_lib_dir = os.path.join(google_breakpad_library_dir_base, bt) for file in google_breakpad_library_files:
if os.path.exists(bt_lib_dir): path = os.path.join(dir, buildType, 'lib', file)
file = os.path.join(bt_lib_dir, 'lib', f) src, dst = convertSrcAndDst(path, os.path.basename(path), os.path.join('lib', buildType))
src, dst = convertSrcAndDst(file, os.path.basename(file), os.path.join('lib', bt)) if os.path.exists(src):
copyFile(src, dst) copyFile(src, dst)