Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 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 | |
| 15 | import("../swiftshader.gni") |
| 16 | |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 17 | swiftshader_source_set("System_headers") { |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 18 | sources = [ |
Ben Clayton | eea9d35 | 2019-08-29 01:05:14 +0100 | [diff] [blame] | 19 | "Build.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 20 | "CPUID.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 21 | "Configurator.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 22 | "Debug.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 23 | "Half.hpp", |
Ben Clayton | ac43aa7 | 2020-04-04 00:48:13 +0100 | [diff] [blame] | 24 | "LRUCache.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 25 | "Math.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 26 | "Memory.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 27 | "Socket.cpp", |
| 28 | "Socket.hpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 29 | "Timer.hpp", |
| 30 | ] |
David 'Digit' Turner | c9fa9fe | 2019-08-13 19:05:01 +0200 | [diff] [blame] | 31 | if (is_linux || is_android) { |
| 32 | sources += [ |
| 33 | "Linux/MemFd.hpp", |
| 34 | ] |
| 35 | } |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 36 | } |
| 37 | |
| 38 | swiftshader_source_set("System") { |
| 39 | sources = [ |
Ben Clayton | 77c89ff | 2020-01-08 19:10:14 +0000 | [diff] [blame] | 40 | "Build.cpp", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 41 | "CPUID.cpp", |
| 42 | "Configurator.cpp", |
| 43 | "Debug.cpp", |
| 44 | "Half.cpp", |
| 45 | "Math.cpp", |
| 46 | "Memory.cpp", |
| 47 | "Timer.cpp", |
| 48 | ] |
David 'Digit' Turner | c9fa9fe | 2019-08-13 19:05:01 +0200 | [diff] [blame] | 49 | if (is_linux || is_android) { |
| 50 | sources += [ |
| 51 | "Linux/MemFd.cpp", |
| 52 | ] |
| 53 | } |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 54 | |
| 55 | include_dirs = [ ".." ] |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 56 | public_deps = [ |
| 57 | ":System_headers", |
| 58 | ] |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 59 | } |