Windows: Add arch-specific versions of d3dcompiler_47.dll (see issue #2656)
This fixes an issue where the 64-bit version of d3dcompiler_47.dll would be included with 32-bit binary distributions.
This commit is contained in:
parent
03c1c21fd3
commit
c7701b8a61
Binary file not shown.
|
@ -399,8 +399,8 @@ def combine_libs(platform, build_dir, libs, dest_lib):
|
||||||
# library, the result will be undefined behavior.
|
# library, the result will be undefined behavior.
|
||||||
print 'Verifying imported (undefined) symbols...'
|
print 'Verifying imported (undefined) symbols...'
|
||||||
undefined_symbols = get_undefined_symbols(dest_lib)
|
undefined_symbols = get_undefined_symbols(dest_lib)
|
||||||
cpp_symbols = list(filter(lambda symbol: symbol.startswith('__Z'),
|
cpp_symbols = list(
|
||||||
undefined_symbols))
|
filter(lambda symbol: symbol.startswith('__Z'), undefined_symbols))
|
||||||
if cpp_symbols:
|
if cpp_symbols:
|
||||||
print 'Found C++ symbols:', cpp_symbols
|
print 'Found C++ symbols:', cpp_symbols
|
||||||
raise Exception('Failure verifying imported (undefined) symbols')
|
raise Exception('Failure verifying imported (undefined) symbols')
|
||||||
|
@ -586,11 +586,18 @@ chromium_ver = formatter.get_chromium_version_string()
|
||||||
archive_dirs = []
|
archive_dirs = []
|
||||||
|
|
||||||
if options.x64build:
|
if options.x64build:
|
||||||
|
if options.armbuild:
|
||||||
|
platform_arch = 'arm64'
|
||||||
|
binary_arch = 'arm64'
|
||||||
|
else:
|
||||||
platform_arch = '64'
|
platform_arch = '64'
|
||||||
|
binary_arch = 'x64'
|
||||||
elif options.armbuild:
|
elif options.armbuild:
|
||||||
platform_arch = 'arm'
|
platform_arch = 'arm'
|
||||||
|
binary_arch = 'arm'
|
||||||
else:
|
else:
|
||||||
platform_arch = '32'
|
platform_arch = '32'
|
||||||
|
binary_arch = 'x86'
|
||||||
|
|
||||||
# output directory
|
# output directory
|
||||||
output_dir_base = 'cef_binary_' + cef_ver
|
output_dir_base = 'cef_binary_' + cef_ver
|
||||||
|
@ -864,7 +871,8 @@ if platform == 'windows':
|
||||||
dst_dir = os.path.join(output_dir, 'Debug')
|
dst_dir = os.path.join(output_dir, 'Debug')
|
||||||
copy_files_list(build_dir, dst_dir, binaries)
|
copy_files_list(build_dir, dst_dir, binaries)
|
||||||
copy_files(
|
copy_files(
|
||||||
os.path.join(script_dir, 'distrib/win/*.dll'), dst_dir, options.quiet)
|
os.path.join(script_dir, 'distrib/win/%s/*.dll' % binary_arch),
|
||||||
|
dst_dir, options.quiet)
|
||||||
|
|
||||||
if not options.nosymbols:
|
if not options.nosymbols:
|
||||||
# create the symbol output directory
|
# create the symbol output directory
|
||||||
|
@ -886,7 +894,8 @@ if platform == 'windows':
|
||||||
dst_dir = os.path.join(output_dir, 'Release')
|
dst_dir = os.path.join(output_dir, 'Release')
|
||||||
copy_files_list(build_dir, dst_dir, binaries)
|
copy_files_list(build_dir, dst_dir, binaries)
|
||||||
copy_files(
|
copy_files(
|
||||||
os.path.join(script_dir, 'distrib/win/*.dll'), dst_dir, options.quiet)
|
os.path.join(script_dir, 'distrib/win/%s/*.dll' % binary_arch),
|
||||||
|
dst_dir, options.quiet)
|
||||||
|
|
||||||
if not options.nosymbols:
|
if not options.nosymbols:
|
||||||
# create the symbol output directory
|
# create the symbol output directory
|
||||||
|
|
Loading…
Reference in New Issue