blob: 0823585df46e802ff5d43ff93f0ad97666aaf99e [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("Device_headers") {
18 sources = [
Alexis Hetu1b900872020-02-24 12:09:16 -050019 "ASTC_Decoder.hpp",
Alexis Hetuc77b1d82019-12-11 11:43:44 -050020 "BC_Decoder.hpp",
Jamie Madillfe23c662019-08-30 17:38:24 -040021 "Blitter.hpp",
22 "Clipper.hpp",
Jamie Madillfe23c662019-08-30 17:38:24 -040023 "Config.hpp",
24 "Context.hpp",
25 "ETC_Decoder.hpp",
Jamie Madillfe23c662019-08-30 17:38:24 -040026 "Memset.hpp",
27 "PixelProcessor.hpp",
Jamie Madillfe23c662019-08-30 17:38:24 -040028 "QuadRasterizer.hpp",
29 "Renderer.hpp",
30 "SetupProcessor.hpp",
Jamie Madillfe23c662019-08-30 17:38:24 -040031 "VertexProcessor.hpp",
Alexis Hetu1b900872020-02-24 12:09:16 -050032 "../../third_party/astc-encoder/Source/astc_codec_internals.h",
33 "../../third_party/astc-encoder/Source/astc_mathlib.h",
Jamie Madillfe23c662019-08-30 17:38:24 -040034 ]
35}
36
Saman Samif4d2a442019-05-21 15:04:41 -040037swiftshader_source_set("Device") {
38 sources = [
Alexis Hetu1b900872020-02-24 12:09:16 -050039 "ASTC_Decoder.cpp",
Alexis Hetuc77b1d82019-12-11 11:43:44 -050040 "BC_Decoder.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040041 "Blitter.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040042 "Clipper.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040043 "Context.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040044 "ETC_Decoder.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040045 "PixelProcessor.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040046 "QuadRasterizer.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040047 "Renderer.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040048 "SetupProcessor.cpp",
Saman Samif4d2a442019-05-21 15:04:41 -040049 "VertexProcessor.cpp",
Antonio Maioranoe06125c2020-04-03 13:58:36 -040050 # TODO: Write Build.gn for third_party/astc-encoder
Alexis Hetu1b900872020-02-24 12:09:16 -050051 "../../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 Hetu1b900872020-02-24 12:09:16 -050059 "../../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 Samif4d2a442019-05-21 15:04:41 -040062 ]
63
64 include_dirs = [
65 "..",
66 "../../include",
67 "../../third_party/SPIRV-Headers/include",
Antonio Maioranoe06125c2020-04-03 13:58:36 -040068 "../../third_party/astc-encoder/Source"
Saman Samif4d2a442019-05-21 15:04:41 -040069 ]
Jamie Madillfe23c662019-08-30 17:38:24 -040070
Nicolas Capensabc7a302020-03-03 10:35:53 -050071 defines = [
72 "SWIFTSHADER_ENABLE_ASTC", # TODO(b/150130101)
73 ]
74
Jamie Madillfe23c662019-08-30 17:38:24 -040075 deps = [
Ben Claytone693b622019-09-05 12:48:37 +010076 "../../third_party/marl:Marl_headers",
Jamie Madillfe23c662019-08-30 17:38:24 -040077 "../Pipeline:Pipeline_headers",
78 "../System:System_headers",
79 "../Vulkan:swiftshader_libvulkan_headers",
Jamie Madillfe23c662019-08-30 17:38:24 -040080 ]
81
82 public_deps = [
83 ":Device_headers",
84 ]
Saman Samif4d2a442019-05-21 15:04:41 -040085}