Skip to content

Commit b22d3f0

Browse files
committed
Generate the blit_texture.frag.inl file at build time
Bug: b/533517706
1 parent 8f4e28a commit b22d3f0

2 files changed

Lines changed: 12 additions & 57 deletions

File tree

base/cvd/cuttlefish/host/graphics_detector/shaders/BUILD.bazel

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,22 @@ cf_cc_binary(
99
srcs = ["generate_shader_embed.cpp"],
1010
)
1111

12+
genrule(
13+
name = "blit_texture.frag.inl",
14+
srcs = [
15+
"blit_texture.frag",
16+
"blit_texture.frag.spv",
17+
],
18+
outs = ["blit_texture.frag.inl"],
19+
cmd = "$(location :generate_shader_embed) $(location :blit_texture.frag) $(location :blit_texture.frag.spv) kBlitTextureFrag $@",
20+
tools = [":generate_shader_embed"],
21+
)
22+
1223
cf_cc_library(
1324
name = "graphics_detector_shaders",
1425
clang_format_enabled = False,
1526
textual_hdrs = [
16-
"blit_texture.frag.inl",
27+
":blit_texture.frag.inl",
1728
"blit_texture.vert.inl",
1829
"blit_texture_highp.frag.inl",
1930
"blit_texture_lowp.frag.inl",

base/cvd/cuttlefish/host/graphics_detector/shaders/blit_texture.frag.inl

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)