mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-25 00:17:41 +01:00
Linux: Add missing swiftshader binaries to distribution (issue #2321)
This commit is contained in:
parent
8d51acb9be
commit
14c030174e
@ -58,6 +58,18 @@ run but any related functionality may become broken or disabled.
|
|||||||
This file contains non-localized resources required for Chrome Developer
|
This file contains non-localized resources required for Chrome Developer
|
||||||
Tools. Without this file Chrome Developer Tools will not function.
|
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.
|
* Widevine CDM support.
|
||||||
* libwidevinecdmadapter.so
|
* libwidevinecdmadapter.so
|
||||||
Without this file playback of Widevine projected content will not function.
|
Without this file playback of Widevine projected content will not function.
|
||||||
|
@ -940,6 +940,17 @@ elif platform == 'macosx':
|
|||||||
options.quiet)
|
options.quiet)
|
||||||
|
|
||||||
elif platform == 'linux':
|
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
|
valid_build_dir = None
|
||||||
|
|
||||||
if mode == 'standard':
|
if mode == 'standard':
|
||||||
@ -954,16 +965,12 @@ elif platform == 'linux':
|
|||||||
os.path.join(build_dir, 'chrome_sandbox'),
|
os.path.join(build_dir, 'chrome_sandbox'),
|
||||||
os.path.join(dst_dir, 'chrome-sandbox'), options.quiet)
|
os.path.join(dst_dir, 'chrome-sandbox'), options.quiet)
|
||||||
copy_file(libcef_path, dst_dir, options.quiet)
|
copy_file(libcef_path, 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(
|
copy_file(
|
||||||
os.path.join(build_dir, 'libwidevinecdmadapter.so'), dst_dir,
|
os.path.join(build_dir, binary['path']), target_path, options.quiet)
|
||||||
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)
|
|
||||||
else:
|
else:
|
||||||
sys.stderr.write("No Debug build files.\n")
|
sys.stderr.write("No Debug build files.\n")
|
||||||
|
|
||||||
@ -981,16 +988,12 @@ elif platform == 'linux':
|
|||||||
copy_file(
|
copy_file(
|
||||||
os.path.join(build_dir, 'chrome_sandbox'),
|
os.path.join(build_dir, 'chrome_sandbox'),
|
||||||
os.path.join(dst_dir, 'chrome-sandbox'), options.quiet)
|
os.path.join(dst_dir, 'chrome-sandbox'), 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(
|
copy_file(
|
||||||
os.path.join(build_dir, 'libwidevinecdmadapter.so'), dst_dir,
|
os.path.join(build_dir, binary['path']), target_path, options.quiet)
|
||||||
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)
|
|
||||||
else:
|
else:
|
||||||
sys.stderr.write("No Release build files.\n")
|
sys.stderr.write("No Release build files.\n")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user