• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2019 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("../swiftshader.gni")
16
17swiftshader_source_set("System_headers") {
18  sources = [
19    "Build.hpp",
20    "CPUID.hpp",
21    "Configurator.hpp",
22    "Debug.hpp",
23    "Half.hpp",
24    "LRUCache.hpp",
25    "Math.hpp",
26    "Memory.hpp",
27    "Socket.cpp",
28    "Socket.hpp",
29    "Timer.hpp",
30  ]
31  if (is_linux || is_chromeos || is_android) {
32    sources += [
33      "Linux/MemFd.hpp",
34    ]
35  }
36}
37
38swiftshader_source_set("System") {
39  sources = [
40    "Build.cpp",
41    "CPUID.cpp",
42    "Configurator.cpp",
43    "Debug.cpp",
44    "Half.cpp",
45    "Math.cpp",
46    "Memory.cpp",
47    "Timer.cpp",
48  ]
49  if (is_linux || is_chromeos || is_android) {
50    sources += [
51      "Linux/MemFd.cpp",
52    ]
53  }
54
55  include_dirs = [ ".." ]
56  public_deps = [
57    ":System_headers",
58  ]
59}
60