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("Device_headers") { |
| 18 | sources = [ |
Alexis Hetu | 1b90087 | 2020-02-24 12:09:16 -0500 | [diff] [blame] | 19 | "ASTC_Decoder.hpp", |
Alexis Hetu | c77b1d8 | 2019-12-11 11:43:44 -0500 | [diff] [blame] | 20 | "BC_Decoder.hpp", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 21 | "Blitter.hpp", |
| 22 | "Clipper.hpp", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 23 | "Config.hpp", |
| 24 | "Context.hpp", |
| 25 | "ETC_Decoder.hpp", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 26 | "Memset.hpp", |
| 27 | "PixelProcessor.hpp", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 28 | "QuadRasterizer.hpp", |
| 29 | "Renderer.hpp", |
| 30 | "SetupProcessor.hpp", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 31 | "VertexProcessor.hpp", |
Alexis Hetu | 1b90087 | 2020-02-24 12:09:16 -0500 | [diff] [blame] | 32 | "../../third_party/astc-encoder/Source/astc_codec_internals.h", |
| 33 | "../../third_party/astc-encoder/Source/astc_mathlib.h", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 34 | ] |
| 35 | } |
| 36 | |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 37 | swiftshader_source_set("Device") { |
| 38 | sources = [ |
Alexis Hetu | 1b90087 | 2020-02-24 12:09:16 -0500 | [diff] [blame] | 39 | "ASTC_Decoder.cpp", |
Alexis Hetu | c77b1d8 | 2019-12-11 11:43:44 -0500 | [diff] [blame] | 40 | "BC_Decoder.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 41 | "Blitter.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 42 | "Clipper.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 43 | "Context.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 44 | "ETC_Decoder.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 45 | "PixelProcessor.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 46 | "QuadRasterizer.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 47 | "Renderer.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 48 | "SetupProcessor.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 49 | "VertexProcessor.cpp", |
Antonio Maiorano | e06125c | 2020-04-03 13:58:36 -0400 | [diff] [blame] | 50 | # TODO: Write Build.gn for third_party/astc-encoder |
Alexis Hetu | 1b90087 | 2020-02-24 12:09:16 -0500 | [diff] [blame] | 51 | "../../third_party/astc-encoder/Source/astc_block_sizes2.cpp", |
| 52 | "../../third_party/astc-encoder/Source/astc_color_unquantize.cpp", |
| 53 | "../../third_party/astc-encoder/Source/astc_decompress_symbolic.cpp", |
| 54 | "../../third_party/astc-encoder/Source/astc_image_load_store.cpp", |
| 55 | "../../third_party/astc-encoder/Source/astc_integer_sequence.cpp", |
| 56 | "../../third_party/astc-encoder/Source/astc_mathlib.cpp", |
| 57 | "../../third_party/astc-encoder/Source/astc_mathlib_softfloat.cpp", |
| 58 | "../../third_party/astc-encoder/Source/astc_partition_tables.cpp", |
Alexis Hetu | 1b90087 | 2020-02-24 12:09:16 -0500 | [diff] [blame] | 59 | "../../third_party/astc-encoder/Source/astc_quantization.cpp", |
| 60 | "../../third_party/astc-encoder/Source/astc_symbolic_physical.cpp", |
| 61 | "../../third_party/astc-encoder/Source/astc_weight_quant_xfer_tables.cpp", |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 62 | ] |
| 63 | |
| 64 | include_dirs = [ |
| 65 | "..", |
| 66 | "../../include", |
| 67 | "../../third_party/SPIRV-Headers/include", |
Antonio Maiorano | e06125c | 2020-04-03 13:58:36 -0400 | [diff] [blame] | 68 | "../../third_party/astc-encoder/Source" |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 69 | ] |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 70 | |
Nicolas Capens | abc7a30 | 2020-03-03 10:35:53 -0500 | [diff] [blame] | 71 | defines = [ |
| 72 | "SWIFTSHADER_ENABLE_ASTC", # TODO(b/150130101) |
| 73 | ] |
| 74 | |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 75 | deps = [ |
Ben Clayton | e693b62 | 2019-09-05 12:48:37 +0100 | [diff] [blame] | 76 | "../../third_party/marl:Marl_headers", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 77 | "../Pipeline:Pipeline_headers", |
| 78 | "../System:System_headers", |
| 79 | "../Vulkan:swiftshader_libvulkan_headers", |
Jamie Madill | fe23c66 | 2019-08-30 17:38:24 -0400 | [diff] [blame] | 80 | ] |
| 81 | |
| 82 | public_deps = [ |
| 83 | ":Device_headers", |
| 84 | ] |
Saman Sami | f4d2a44 | 2019-05-21 15:04:41 -0400 | [diff] [blame] | 85 | } |