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