• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The SwiftShader Authors. All Rights Reserved.
2#
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
6#
7#    http://www.apache.org/licenses/LICENSE-2.0
8#
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.
14
15import("//testing/test.gni")
16import("../../src/Reactor/reactor.gni")
17
18if (supports_llvm) {
19  test("swiftshader_reactor_llvm_unittests") {
20    deps = [
21      "//base",
22      "//base/test:test_support",
23      "//testing/gmock",
24      "//testing/gtest",
25      "//third_party/swiftshader/src/Reactor:swiftshader_llvm_reactor",
26    ]
27
28    sources = [
29      "//gpu/swiftshader_tests_main.cc",
30      "ReactorUnitTests.cpp",
31    ]
32
33    include_dirs = [
34      "../../src/Reactor"
35    ]
36  }
37}
38
39if (supports_subzero) {
40  test("swiftshader_reactor_subzero_unittests") {
41    deps = [
42      "//base",
43      "//base/test:test_support",
44      "//testing/gmock",
45      "//testing/gtest",
46      "//third_party/swiftshader/src/Reactor:swiftshader_subzero_reactor",
47    ]
48
49    sources = [
50      "//gpu/swiftshader_tests_main.cc",
51      "ReactorUnitTests.cpp",
52    ]
53
54    include_dirs = [
55      "../../src/Reactor"
56    ]
57  }
58}