Commit 419e8a7a by Nicolas Capens Committed by Nicolas Capens

Fix the unittests Ninja build.

On Windows, GLAPI defaults to __declspec(dllimport), while GLAPICALL is empty, leading to declaration mismatches. Either should be empty for the unit tests since we link statically, for all platforms. Change-Id: I2dde0ca35108678fd9767895e0120ee4b0d7030f Reviewed-on: https://swiftshader-review.googlesource.com/19128Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 8e6ed2e3
......@@ -31,7 +31,11 @@ test("swiftshader_unittests") {
include_dirs = [ "../../include" ] # Khronos headers
defines = [ "GL_GLEXT_PROTOTYPES" ]
defines = [
"GL_GLEXT_PROTOTYPES",
"GL_APICALL=",
"GLAPI=",
]
# Make sure we're loading SwiftShader's libraries, not ANGLE's or the system
# provided ones. On Windows an explicit LoadLibrary("swiftshader\lib*.dll")
......
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