blob: 4595028f3dd334eb4a62f8dce50d0f27aee9db11 [file] [log] [blame]
Saman Samif4d2a442019-05-21 15:04:41 -04001# 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
Jamie Madillfe23c662019-08-30 17:38:24 -040017swiftshader_source_set("System_headers") {
Saman Samif4d2a442019-05-21 15:04:41 -040018 sources = [
Ben Claytoneea9d352019-08-29 01:05:14 +010019 "Build.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040020 "CPUID.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040021 "Configurator.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040022 "Debug.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040023 "Half.hpp",
Ben Claytonac43aa72020-04-04 00:48:13 +010024 "LRUCache.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040025 "Math.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040026 "Memory.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040027 "Socket.cpp",
28 "Socket.hpp",
Saman Samif4d2a442019-05-21 15:04:41 -040029 "Timer.hpp",
30 ]
David 'Digit' Turnerc9fa9fe2019-08-13 19:05:01 +020031 if (is_linux || is_android) {
32 sources += [
33 "Linux/MemFd.hpp",
34 ]
35 }
Jamie Madillfe23c662019-08-30 17:38:24 -040036}
37
38swiftshader_source_set("System") {
39 sources = [
Ben Clayton77c89ff2020-01-08 19:10:14 +000040 "Build.cpp",
Jamie Madillfe23c662019-08-30 17:38:24 -040041 "CPUID.cpp",
42 "Configurator.cpp",
43 "Debug.cpp",
44 "Half.cpp",
45 "Math.cpp",
46 "Memory.cpp",
47 "Timer.cpp",
48 ]
David 'Digit' Turnerc9fa9fe2019-08-13 19:05:01 +020049 if (is_linux || is_android) {
50 sources += [
51 "Linux/MemFd.cpp",
52 ]
53 }
Saman Samif4d2a442019-05-21 15:04:41 -040054
55 include_dirs = [ ".." ]
Jamie Madillfe23c662019-08-30 17:38:24 -040056 public_deps = [
57 ":System_headers",
58 ]
Saman Samif4d2a442019-05-21 15:04:41 -040059}