Commit 170766a3 by Alexis Hetu Committed by Alexis Hétu

Allow SwiftShader to compile on Fuchsia

SwiftShader should be able to build on Fuchsia, but it would hit a collision error if added as a dependency in Fuchsia, so the same logic currently used on MacOS could also be used to avoid the collision on Fuchsia. Change-Id: I9ac216dfc2180165a82bd5ae81c843ee4aea7ce6 Reviewed-on: https://swiftshader-review.googlesource.com/19328Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarSergey Ulanov <sergeyu@chromium.org> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 41320521
...@@ -37,7 +37,7 @@ config("swiftshader_libEGL_private_config") { ...@@ -37,7 +37,7 @@ config("swiftshader_libEGL_private_config") {
} }
swiftshader_shared_library("swiftshader_libEGL") { swiftshader_shared_library("swiftshader_libEGL") {
if (!is_mac) { if (!is_mac && !is_fuchsia) {
output_name = "libEGL" output_name = "libEGL"
output_dir = "$root_out_dir/swiftshader" output_dir = "$root_out_dir/swiftshader"
} }
......
...@@ -94,7 +94,7 @@ swiftshader_static_library("swiftshader_libGLESv2_static") { ...@@ -94,7 +94,7 @@ swiftshader_static_library("swiftshader_libGLESv2_static") {
} }
swiftshader_shared_library("swiftshader_libGLESv2") { swiftshader_shared_library("swiftshader_libGLESv2") {
if (!is_mac) { if (!is_mac && !is_fuchsia) {
output_name = "libGLESv2" output_name = "libGLESv2"
output_dir = "$root_out_dir/swiftshader" output_dir = "$root_out_dir/swiftshader"
} }
......
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