blob: 00747b578cd3d4576243892d7d9365b625946c82 [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("Pipeline_headers") {
18 sources = [
19 "ComputeProgram.hpp",
20 "Constants.hpp",
21 "PixelProgram.hpp",
22 "PixelRoutine.hpp",
23 "SamplerCore.hpp",
24 "SetupRoutine.hpp",
25 "ShaderCore.hpp",
26 "SpirvShader.hpp",
27 "VertexProgram.hpp",
28 "VertexRoutine.hpp",
29 ]
30}
31
Saman Samif4d2a442019-05-21 15:04:41 -040032swiftshader_source_set("Pipeline") {
33 sources = [
34 "ComputeProgram.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040035 "Constants.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040036 "PixelProgram.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040037 "PixelRoutine.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040038 "SamplerCore.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040039 "SetupRoutine.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040040 "ShaderCore.cpp",
Ben Clayton22f954e2019-11-28 10:54:23 +000041 "SpirvShader.cpp",
Ben Clayton474dba42019-11-28 13:43:55 +000042 "SpirvShaderArithmetic.cpp",
Ben Claytonb4274002019-11-28 11:47:29 +000043 "SpirvShaderControlFlow.cpp",
Ben Claytonb0ca2a82020-01-08 13:00:57 +000044 "SpirvShaderDebugger.cpp",
Ben Clayton72e6f392019-11-28 16:17:29 +000045 "SpirvShaderEnumNames.cpp",
Ben Clayton22f954e2019-11-28 10:54:23 +000046 "SpirvShaderGLSLstd450.cpp",
Ben Claytona5ca6da2019-11-28 13:59:27 +000047 "SpirvShaderGroup.cpp",
Ben Clayton5e51cfc2019-11-28 13:49:29 +000048 "SpirvShaderImage.cpp",
Ben Claytonf3e2cc22019-11-28 12:02:15 +000049 "SpirvShaderMemory.cpp",
Ben Clayton22f954e2019-11-28 10:54:23 +000050 "SpirvShaderSampling.cpp",
Ben Claytonee589722019-11-28 13:55:08 +000051 "SpirvShaderSpec.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040052 "VertexProgram.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040053 "VertexRoutine.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040054 ]
55
56 include_dirs = [
57 "..",
58 "../../include",
59 "../../third_party/SPIRV-Headers/include",
60 ]
Jamie Madillfe23c662019-08-30 17:38:24 -040061
62 deps = [
Ben Claytone693b622019-09-05 12:48:37 +010063 "../../third_party/marl:Marl_headers",
Jamie Madillfe23c662019-08-30 17:38:24 -040064 "../Device:Device_headers",
65 "../System:System_headers",
66 "../Vulkan:swiftshader_libvulkan_headers",
Jamie Madillfe23c662019-08-30 17:38:24 -040067 ]
68
69 public_deps = [
70 ":Pipeline_headers",
71 ]
Saman Samif4d2a442019-05-21 15:04:41 -040072}