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 15import("../swiftshader.gni") 16 17swiftshader_source_set("Device_headers") { 18 sources = [ 19 "ASTC_Decoder.hpp", 20 "BC_Decoder.hpp", 21 "Blitter.hpp", 22 "Clipper.hpp", 23 "Config.hpp", 24 "Context.hpp", 25 "ETC_Decoder.hpp", 26 "Memset.hpp", 27 "PixelProcessor.hpp", 28 "QuadRasterizer.hpp", 29 "Renderer.hpp", 30 "SetupProcessor.hpp", 31 "VertexProcessor.hpp", 32 "../../third_party/astc-encoder/Source/astc_codec_internals.h", 33 "../../third_party/astc-encoder/Source/astc_mathlib.h", 34 ] 35} 36 37swiftshader_source_set("Device") { 38 sources = [ 39 "ASTC_Decoder.cpp", 40 "BC_Decoder.cpp", 41 "Blitter.cpp", 42 "Clipper.cpp", 43 "Context.cpp", 44 "ETC_Decoder.cpp", 45 "PixelProcessor.cpp", 46 "QuadRasterizer.cpp", 47 "Renderer.cpp", 48 "SetupProcessor.cpp", 49 "VertexProcessor.cpp", 50 # TODO: Write Build.gn for third_party/astc-encoder 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", 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", 62 ] 63 64 include_dirs = [ 65 "..", 66 "../../include", 67 "../../third_party/SPIRV-Headers/include", 68 "../../third_party/astc-encoder/Source" 69 ] 70 71 defines = [ 72 "SWIFTSHADER_ENABLE_ASTC", # TODO(b/150130101) 73 ] 74 75 deps = [ 76 "${swiftshader_spirv_tools_dir}:SPIRV-Tools", 77 "../../third_party/marl:Marl_headers", 78 "../Pipeline:Pipeline_headers", 79 "../System:System_headers", 80 "../Vulkan:swiftshader_libvulkan_headers", 81 ] 82 83 public_deps = [ 84 ":Device_headers", 85 ] 86} 87