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:
|
||||||
platform_arch = '64'
|
if options.armbuild:
|
||||||
|
platform_arch = 'arm64'
|
||||||
|
binary_arch = 'arm64'
|
||||||
|
else:
|
||||||
|
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
|
||||||
|
@ -748,17 +755,17 @@ if mode == 'standard':
|
||||||
'tests/shared/', shared_dir, options.quiet)
|
'tests/shared/', shared_dir, options.quiet)
|
||||||
|
|
||||||
if not options.ozone:
|
if not options.ozone:
|
||||||
# transfer common cefclient files
|
# transfer common cefclient files
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_browser'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_browser'], \
|
||||||
'tests/cefclient/', cefclient_dir, options.quiet)
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_common'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_common'], \
|
||||||
'tests/cefclient/', cefclient_dir, options.quiet)
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_renderer'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_renderer'], \
|
||||||
'tests/cefclient/', cefclient_dir, options.quiet)
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_resources'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_resources'], \
|
||||||
'tests/cefclient/', cefclient_dir, options.quiet)
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_resources_extensions_set_page_color'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefclient_sources_resources_extensions_set_page_color'], \
|
||||||
'tests/cefclient/', cefclient_dir, options.quiet)
|
'tests/cefclient/', cefclient_dir, options.quiet)
|
||||||
|
|
||||||
# transfer common cefsimple files
|
# transfer common cefsimple files
|
||||||
transfer_gypi_files(cef_dir, cef_paths2['cefsimple_sources_common'], \
|
transfer_gypi_files(cef_dir, cef_paths2['cefsimple_sources_common'], \
|
||||||
|
@ -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