Commit 2d04d666 by Alexis Hetu Committed by Alexis Hétu

Fixed how SwiftShader is compiled on different platforms

Since the swiftshader libraries are loaded at runtime by chromium, the correct way to add swiftshader as a dependency is to use 'loadable_module' for mac and 'data_deps' for other platforms. BUG=31645700 Change-Id: Ic393a4132fbfc44e71247fc0294cca2cb57d35c8 Reviewed-on: https://swiftshader-review.googlesource.com/7217Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 143dfc7e
......@@ -64,8 +64,18 @@ config("swiftshader_config") {
}
group("swiftshader") {
deps = [
if(is_mac)
{
loadable_module = [
"src/OpenGL/libGLESv2:swiftshader_libGLESv2",
"src/OpenGL/libEGL:swiftshader_libEGL",
]
}
else
{
data_deps = [
"src/OpenGL/libGLESv2:swiftshader_libGLESv2",
"src/OpenGL/libEGL:swiftshader_libEGL",
]
}
}
\ No newline at end of file
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