Debian Codegraph @

src/gpu/graphite/BUILD.bazel

raw
1 load("//bazel:skia_rules.bzl", "skia_cc_library", "skia_filegroup", "split_srcs_and_hdrs")
2
3 package(
4 default_applicable_licenses = ["//:license"],
5 )
6
7 licenses(["notice"])
8
9 GRAPHITE_FILES = [
10 "AtlasProvider.cpp",
11 "AtlasProvider.h",
12 "Attribute.h",
13 "BackendSemaphore.cpp",
14 "BackendSemaphorePriv.h",
15 "BackendTexture.cpp",
16 "BackendTexturePriv.h",
17 "Buffer.cpp",
18 "Buffer.h",
19 "BufferManager.cpp",
20 "BufferManager.h",
21 "BuiltInCodeSnippetID.h",
22 "Caps.cpp",
23 "Caps.h",
24 "ClientMappedBufferManager.cpp",
25 "ClientMappedBufferManager.h",
26 "ClipAtlasManager.cpp",
27 "ClipAtlasManager.h",
28 "ClipStack.cpp",
29 "ClipStack.h",
30 "CommandBuffer.cpp",
31 "CommandBuffer.h",
32 "CommandTypes.h",
33 "ComputePathAtlas.cpp",
34 "ComputePathAtlas.h",
35 "ComputePipeline.cpp",
36 "ComputePipeline.h",
37 "ComputePipelineDesc.h",
38 "ComputeTypes.h",
39 "Context.cpp",
40 "ContextOptionsPriv.h",
41 "ContextPriv.h",
42 "ContextUtils.cpp",
43 "ContextUtils.h",
44 "DebugUtils.h",
45 "DescriptorData.h",
46 "Device.cpp",
47 "Device.h",
48 "DrawAtlas.cpp",
49 "DrawAtlas.h",
50 "DrawCommands.h",
51 "DrawContext.cpp",
52 "DrawContext.h",
53 "DrawList.cpp",
54 "DrawList.h",
55 "DrawListBase.h",
56 "DrawOrder.h",
57 "DrawParams.h",
58 "DrawPass.cpp",
59 "DrawPass.h",
60 "DrawTypes.h",
61 "DrawWriter.cpp",
62 "DrawWriter.h",
63 "GlobalCache.cpp",
64 "GlobalCache.h",
65 "GpuWorkSubmission.cpp",
66 "GpuWorkSubmission.h",
67 "GraphicsPipeline.cpp",
68 "GraphicsPipeline.h",
69 "GraphicsPipelineDesc.h",
70 "GraphicsPipelineHandle.h",
71 "GraphiteResourceKey.cpp",
72 "GraphiteResourceKey.h",
73 "ImageFactories.cpp",
74 "Image_Base_Graphite.cpp",
75 "Image_Base_Graphite.h",
76 "Image_Graphite.cpp",
77 "Image_Graphite.h",
78 "Image_YUVA_Graphite.cpp",
79 "Image_YUVA_Graphite.h",
80 "InternalDrawTypeFlags.h",
81 "KeyContext.cpp",
82 "KeyContext.h",
83 "KeyHelpers.cpp",
84 "KeyHelpers.h",
85 "Log.h",
86 "PaintParams.cpp",
87 "PaintParams.h",
88 "PaintParamsKey.cpp",
89 "PaintParamsKey.h",
90 "PathAtlas.cpp",
91 "PathAtlas.h",
92 "PipelineCreationTask.h",
93 "PipelineData.h",
94 "PipelineManager.cpp",
95 "PipelineManager.h",
96 "ProxyCache.cpp",
97 "ProxyCache.h",
98 "QueueManager.cpp",
99 "QueueManager.h",
100 "RasterPathAtlas.cpp",
101 "RasterPathAtlas.h",
102 "RasterPathUtils.cpp",
103 "RasterPathUtils.h",
104 "ReadSwizzle.h",
105 "Recorder.cpp",
106 "RecorderOptionsPriv.h",
107 "RecorderPriv.h",
108 "Recording.cpp",
109 "RecordingPriv.h",
110 "RenderPassDesc.cpp",
111 "RenderPassDesc.h",
112 "Renderer.cpp",
113 "Renderer.h",
114 "RendererProvider.cpp",
115 "RendererProvider.h",
116 "Resource.cpp",
117 "Resource.h",
118 "ResourceCache.cpp",
119 "ResourceCache.h",
120 "ResourceProvider.cpp",
121 "ResourceProvider.h",
122 "ResourceTypes.h",
123 "RuntimeEffectDictionary.cpp",
124 "RuntimeEffectDictionary.h",
125 "Sampler.cpp",
126 "Sampler.h",
127 "ScratchResourceManager.cpp",
128 "ScratchResourceManager.h",
129 "SerializationUtils.cpp",
130 "SerializationUtils.h",
131 "ShaderCodeDictionary.cpp",
132 "ShaderCodeDictionary.h",
133 "ShaderInfo.cpp",
134 "ShaderInfo.h",
135 "SharedContext.cpp",
136 "SharedContext.h",
137 "SpecialImage_Graphite.cpp",
138 "SpecialImage_Graphite.h",
139 "Surface_Graphite.cpp",
140 "Surface_Graphite.h",
141 "Texture.cpp",
142 "Texture.h",
143 "TextureFormat.cpp",
144 "TextureFormat.h",
145 "TextureInfo.cpp",
146 "TextureInfoPriv.h",
147 "TextureProxy.cpp",
148 "TextureProxy.h",
149 "TextureProxyView.h",
150 "TextureUtils.cpp",
151 "TextureUtils.h",
152 "ThreadSafeResourceProvider.cpp",
153 "ThreadSafeResourceProvider.h",
154 "PrecompileContext.cpp",
155 "PrecompileContextPriv.h",
156 "Uniform.h",
157 "UniformManager.cpp",
158 "UniformManager.h",
159 "UniquePaintParamsID.h",
160 "UploadBufferManager.cpp",
161 "UploadBufferManager.h",
162 "YUVABackendTextures.cpp",
163 ]
164
165 split_srcs_and_hdrs(
166 name = "_graphite",
167 files = GRAPHITE_FILES,
168 )
169
170 skia_filegroup(
171 name = "precompile_srcs",
172 srcs = [
173 "PrecompileInternal.h",
174 "PublicPrecompile.cpp",
175 ],
176 visibility = [
177 "//src/gpu/graphite/precompile:__pkg__",
178 ],
179 )
180
181 skia_cc_library(
182 name = "graphite",
183 srcs = [
184 ":_graphite_srcs",
185 "//src/gpu/graphite/compute:compute_srcs",
186 "//src/gpu/graphite/geom:geom_srcs",
187 "//src/gpu/graphite/render:render_srcs",
188 "//src/gpu/graphite/task:task_srcs",
189 "//src/gpu/graphite/text:text_srcs",
190 "//src/sksl:sksl_graphite_modules_hdrs",
191 "//src/sksl:sksl_graphite_modules_srcs",
192 "//src/text/gpu:gpu_hdrs",
193 "//src/text/gpu:gpu_srcs",
194 ],
195 hdrs = [
196 ":_graphite_hdrs",
197 "//include/gpu:shared_gpu_hdrs",
198 "//include/gpu/graphite:public_hdrs",
199 "//src/gpu/graphite/compute:compute_hdrs",
200 "//src/gpu/graphite/geom:geom_hdrs",
201 "//src/gpu/graphite/render:render_hdrs",
202 "//src/gpu/graphite/task:task_hdrs",
203 "//src/gpu/graphite/text:text_hdrs",
204 ],
205 defines = [
206 "SK_GRAPHITE",
207 ],
208 visibility = [
209 "//src/gpu/graphite/mtl:__pkg__",
210 "//src/gpu/graphite/precompile:__pkg__",
211 "//src/gpu/graphite/vk:__pkg__",
212 ],
213 deps = [
214 "//:core",
215 "//src/base",
216 "//src/core:core_priv",
217 "//src/gpu",
218 "//src/sksl/codegen:gpu",
219 ],
220 )
221
222 skia_cc_library(
223 name = "graphite_TEST_UTIL",
224 testonly = True,
225 srcs = [
226 ":_graphite_srcs",
227 "//src/gpu/graphite/compute:compute_srcs",
228 "//src/gpu/graphite/geom:geom_srcs",
229 "//src/gpu/graphite/render:render_srcs",
230 "//src/gpu/graphite/task:task_srcs",
231 "//src/gpu/graphite/text:text_srcs",
232 "//src/sksl:sksl_graphite_modules_hdrs",
233 "//src/sksl:sksl_graphite_modules_srcs",
234 "//src/text/gpu:gpu_hdrs",
235 "//src/text/gpu:gpu_srcs",
236 ],
237 hdrs = [
238 ":_graphite_hdrs",
239 "//include/gpu:shared_gpu_hdrs",
240 "//include/gpu/graphite:public_hdrs",
241 "//src/gpu/graphite/compute:compute_hdrs",
242 "//src/gpu/graphite/geom:geom_hdrs",
243 "//src/gpu/graphite/render:render_hdrs",
244 "//src/gpu/graphite/task:task_hdrs",
245 "//src/gpu/graphite/text:text_hdrs",
246 ],
247 defines = [
248 "SK_GRAPHITE",
249 "GPU_TEST_UTILS",
250 ],
251 visibility = [
252 "//dm:__pkg__",
253 "//src/gpu/graphite/mtl:__pkg__",
254 "//src/gpu/graphite/precompile:__pkg__",
255 "//src/gpu/graphite/vk:__pkg__",
256 "//tools:__subpackages__",
257 ],
258 deps = [
259 "//:core",
260 "//src/base",
261 "//src/core:core_priv",
262 "//src/gpu",
263 "//src/sksl/codegen:gpu",
264 ],
265 )