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("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 Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 32 | swiftshader_source_set("Pipeline") { |
| 33 | sources = [ |
| 34 | "ComputeProgram.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 35 | "Constants.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 36 | "PixelProgram.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 37 | "PixelRoutine.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 38 | "SamplerCore.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 39 | "SetupRoutine.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 40 | "ShaderCore.cpp", |
Ben Clayton | 22f954e | 2019-11-28 10:54:23 +0000 | [diff] [blame] | 41 | "SpirvShader.cpp", |
Ben Clayton | 474dba4 | 2019-11-28 13:43:55 +0000 | [diff] [blame] | 42 | "SpirvShaderArithmetic.cpp", |
Ben Clayton | b427400 | 2019-11-28 11:47:29 +0000 | [diff] [blame] | 43 | "SpirvShaderControlFlow.cpp", |
Ben Clayton | b0ca2a8 | 2020-01-08 13:00:57 +0000 | [diff] [blame] | 44 | "SpirvShaderDebugger.cpp", |
Ben Clayton | 72e6f39 | 2019-11-28 16:17:29 +0000 | [diff] [blame] | 45 | "SpirvShaderEnumNames.cpp", |
Ben Clayton | 22f954e | 2019-11-28 10:54:23 +0000 | [diff] [blame] | 46 | "SpirvShaderGLSLstd450.cpp", |
Ben Clayton | a5ca6da | 2019-11-28 13:59:27 +0000 | [diff] [blame] | 47 | "SpirvShaderGroup.cpp", |
Ben Clayton | 5e51cfc | 2019-11-28 13:49:29 +0000 | [diff] [blame] | 48 | "SpirvShaderImage.cpp", |
Ben Clayton | f3e2cc2 | 2019-11-28 12:02:15 +0000 | [diff] [blame] | 49 | "SpirvShaderMemory.cpp", |
Ben Clayton | 22f954e | 2019-11-28 10:54:23 +0000 | [diff] [blame] | 50 | "SpirvShaderSampling.cpp", |
Ben Clayton | ee58972 | 2019-11-28 13:55:08 +0000 | [diff] [blame] | 51 | "SpirvShaderSpec.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 52 | "VertexProgram.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 53 | "VertexRoutine.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 54 | ] |
| 55 | |
| 56 | include_dirs = [ |
| 57 | "..", |
| 58 | "../../include", |
| 59 | "../../third_party/SPIRV-Headers/include", |
| 60 | ] |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 61 | |
| 62 | deps = [ |
Ben Clayton | e693b62 | 2019-09-05 12:48:37 +0100 | [diff] [blame] | 63 | "../../third_party/marl:Marl_headers", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 64 | "../Device:Device_headers", |
| 65 | "../System:System_headers", |
| 66 | "../Vulkan:swiftshader_libvulkan_headers", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 67 | ] |
| 68 | |
| 69 | public_deps = [ |
| 70 | ":Pipeline_headers", |
| 71 | ] |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 72 | } |