Commit 55f1e51a authored by Alexis Hetu's avatar Alexis Hetu Committed by Commit Bot

Ship SwiftShader on MacOS

Bug: chromium:719257 chromium:888082
Change-Id: Ie0b06c336c46fd6b801094fab0ce5d2a0446e84e
Reviewed-on: https://chromium-review.googlesource.com/c/1255305Reviewed-by: default avatarLei Zhang <thestig@chromium.org>
Reviewed-by: default avatarccameron <ccameron@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Alexis Hétu <sugoi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#596776}
parent 79f75279
...@@ -985,10 +985,8 @@ if (is_win) { ...@@ -985,10 +985,8 @@ if (is_win) {
} }
} }
# EGL on MacOS can be used in dev builds and on bots for test # EGL on MacOS ships with official chrome
# related purposes, but it is not yet desired to ship these bundle_egl_libraries = use_egl
# libraries with official chrome (http://crbug.com/757974).
bundle_egl_libraries = use_egl && !(is_chrome_branded && is_official_build)
if (bundle_egl_libraries) { if (bundle_egl_libraries) {
# Add the ANGLE .dylibs in the MODULE_DIR of Chromium.app # Add the ANGLE .dylibs in the MODULE_DIR of Chromium.app
...@@ -1350,6 +1348,8 @@ if (is_win) { ...@@ -1350,6 +1348,8 @@ if (is_win) {
"$root_out_dir/$chrome_helper_name.app/Contents/MacOS/$chrome_helper_name", "$root_out_dir/$chrome_helper_name.app/Contents/MacOS/$chrome_helper_name",
"$root_out_dir/$chrome_product_full_name.app/Contents/MacOS/$chrome_product_full_name", "$root_out_dir/$chrome_product_full_name.app/Contents/MacOS/$chrome_product_full_name",
"$root_out_dir/crashpad_handler", "$root_out_dir/crashpad_handler",
"$root_out_dir/libswiftshader_libEGL.dylib",
"$root_out_dir/libswiftshader_libGLESv2.dylib",
] ]
# It is possible to run dump_syms on unstripped products without dSYMs, # It is possible to run dump_syms on unstripped products without dSYMs,
...@@ -1380,6 +1380,8 @@ if (is_win) { ...@@ -1380,6 +1380,8 @@ if (is_win) {
"//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service", "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
"//third_party/breakpad:dump_syms", "//third_party/breakpad:dump_syms",
"//third_party/crashpad/crashpad/handler:crashpad_handler", "//third_party/crashpad/crashpad/handler:crashpad_handler",
"//third_party/swiftshader/src/OpenGL/libEGL:swiftshader_libEGL",
"//third_party/swiftshader/src/OpenGL/libGLESv2:swiftshader_libGLESv2",
] ]
} }
...@@ -1396,6 +1398,8 @@ if (is_win) { ...@@ -1396,6 +1398,8 @@ if (is_win) {
"$root_out_dir/$chrome_helper_name.dSYM", "$root_out_dir/$chrome_helper_name.dSYM",
"$root_out_dir/$chrome_product_full_name.dSYM", "$root_out_dir/$chrome_product_full_name.dSYM",
"$root_out_dir/crashpad_handler.dSYM", "$root_out_dir/crashpad_handler.dSYM",
"$root_out_dir/libswiftshader_libEGL.dylib.dSYM",
"$root_out_dir/libswiftshader_libGLESv2.dylib.dSYM",
] ]
sources = _chrome_symbols_sources sources = _chrome_symbols_sources
...@@ -1415,6 +1419,8 @@ if (is_win) { ...@@ -1415,6 +1419,8 @@ if (is_win) {
":chrome_helper_app", ":chrome_helper_app",
"//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service", "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
"//third_party/crashpad/crashpad/handler:crashpad_handler", "//third_party/crashpad/crashpad/handler:crashpad_handler",
"//third_party/swiftshader/src/OpenGL/libEGL:swiftshader_libEGL",
"//third_party/swiftshader/src/OpenGL/libGLESv2:swiftshader_libGLESv2",
] ]
} }
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment