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 "SwiftConfig.hpp", 30 "Timer.hpp", 31 ] 32 if (is_linux || is_chromeos || is_android) { 33 sources += [ 34 "Linux/MemFd.hpp", 35 ] 36 } 37} 38 39swiftshader_source_set("System") { 40 sources = [ 41 "Build.cpp", 42 "CPUID.cpp", 43 "Configurator.cpp", 44 "Debug.cpp", 45 "Half.cpp", 46 "Math.cpp", 47 "Memory.cpp", 48 "SwiftConfig.cpp", 49 "Timer.cpp", 50 ] 51 if (is_linux || is_chromeos || is_android) { 52 sources += [ 53 "Linux/MemFd.cpp", 54 ] 55 } 56 57 include_dirs = [ ".." ] 58 59 deps = [ 60 "../../third_party/marl:Marl", 61 ] 62 63 public_deps = [ 64 ":System_headers", 65 ] 66} 67