1 # Copyright 2016 The SwiftShader Authors. All Rights Reserved.
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 import("//testing/test.gni")
17 test("swiftshader_unittests") {
20 "//base/test:test_support",
23 "//third_party/swiftshader/src/OpenGL/libEGL:swiftshader_libEGL",
24 "//third_party/swiftshader/src/OpenGL/libGLESv2:swiftshader_libGLESv2",
28 "//gpu/swiftshader_tests_main.cc",
32 include_dirs = [ "../../include" ] # Khronos headers
34 defines = [ "GL_GLEXT_PROTOTYPES" ]
36 # Make sure we're loading SwiftShader's libraries, not ANGLE's or the system
37 # provided ones. On Windows an explicit LoadLibrary("swiftshader\lib*.dll")
38 # is required before making the first EGL or OpenGL ES call.
41 "/DELAYLOAD:libEGL.dll",
42 "/DELAYLOAD:libGLESv2.dll",
50 "CoreFoundation.framework",
51 "IOSurface.framework",
54 ldflags = [ "-Wl,-rpath=\$ORIGIN/swiftshader" ]