Linux: Add missing swiftshader binaries to distribution (issue #2321)

This commit is contained in:
Marshall Greenblatt 2017-12-18 11:07:45 -08:00
parent 8d51acb9be
commit 14c030174e
2 changed files with 35 additions and 20 deletions

View File

@ -58,6 +58,18 @@ run but any related functionality may become broken or disabled.
This file contains non-localized resources required for Chrome Developer
Tools. Without this file Chrome Developer Tools will not function.
* Angle support.
* libEGL.so
* libGLESv2.so
Without these files HTML5 accelerated content like 2D canvas, 3D CSS and WebGL
will not function.
* SwiftShader support.
* swiftshader/libEGL.so
* swiftshader/libGLESv2.so
Without these files WebGL will not function in software-only mode when the GPU
is not available or disabled.
* Widevine CDM support.
* libwidevinecdmadapter.so
Without this file playback of Widevine projected content will not function.

View File

@ -940,6 +940,17 @@ elif platform == 'macosx':
options.quiet)
elif platform == 'linux':
binaries = [
{'path': 'libEGL.so'},
{'path': 'libGLESv2.so'},
{'path': 'libwidevinecdmadapter.so'},
{'path': 'natives_blob.bin'},
{'path': 'snapshot_blob.bin'},
{'path': 'v8_context_snapshot.bin'},
{'path': 'swiftshader/libEGL.so'},
{'path': 'swiftshader/libGLESv2.so'},
]
valid_build_dir = None
if mode == 'standard':
@ -954,16 +965,12 @@ elif platform == 'linux':
os.path.join(build_dir, 'chrome_sandbox'),
os.path.join(dst_dir, 'chrome-sandbox'), options.quiet)
copy_file(libcef_path, dst_dir, options.quiet)
copy_file(
os.path.join(build_dir, 'libwidevinecdmadapter.so'), dst_dir,
options.quiet)
copy_file(
os.path.join(build_dir, 'natives_blob.bin'), dst_dir, options.quiet)
copy_file(
os.path.join(build_dir, 'snapshot_blob.bin'), dst_dir, options.quiet)
copy_file(
os.path.join(build_dir, 'v8_context_snapshot.bin'), dst_dir,
options.quiet)
for binary in binaries:
target_path = os.path.join(dst_dir, binary['path'])
make_dir(os.path.dirname(target_path), options.quiet)
copy_file(
os.path.join(build_dir, binary['path']), target_path, options.quiet)
else:
sys.stderr.write("No Debug build files.\n")
@ -981,16 +988,12 @@ elif platform == 'linux':
copy_file(
os.path.join(build_dir, 'chrome_sandbox'),
os.path.join(dst_dir, 'chrome-sandbox'), options.quiet)
copy_file(
os.path.join(build_dir, 'libwidevinecdmadapter.so'), dst_dir,
options.quiet)
copy_file(
os.path.join(build_dir, 'natives_blob.bin'), dst_dir, options.quiet)
copy_file(
os.path.join(build_dir, 'snapshot_blob.bin'), dst_dir, options.quiet)
copy_file(
os.path.join(build_dir, 'v8_context_snapshot.bin'), dst_dir,
options.quiet)
for binary in binaries:
target_path = os.path.join(dst_dir, binary['path'])
make_dir(os.path.dirname(target_path), options.quiet)
copy_file(
os.path.join(build_dir, binary['path']), target_path, options.quiet)
else:
sys.stderr.write("No Release build files.\n")