Skip to content

Commit f6d9e92

Browse files
committed
Generate the blit_texture_lowp.frag.inl file at build time
1 parent ed9b8e6 commit f6d9e92

2 files changed

Lines changed: 12 additions & 59 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
@@ -42,14 +42,25 @@ genrule(
4242
tools = [":generate_shader_embed"],
4343
)
4444

45+
genrule(
46+
name = "blit_texture_lowp.frag.inl",
47+
srcs = [
48+
"blit_texture_lowp.frag",
49+
"blit_texture_lowp.frag.spv",
50+
],
51+
outs = ["blit_texture_lowp.frag.inl"],
52+
cmd = "$(location :generate_shader_embed) $(location :blit_texture_lowp.frag) $(location :blit_texture_lowp.frag.spv) kBlitTextureLowpFrag $@",
53+
tools = [":generate_shader_embed"],
54+
)
55+
4556
cf_cc_library(
4657
name = "graphics_detector_shaders",
4758
clang_format_enabled = False,
4859
textual_hdrs = [
4960
":blit_texture.frag.inl",
5061
":blit_texture.vert.inl",
5162
":blit_texture_highp.frag.inl",
52-
"blit_texture_lowp.frag.inl",
63+
":blit_texture_lowp.frag.inl",
5364
"blit_texture_mediump.frag.inl",
5465
],
5566
)

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

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

0 commit comments

Comments
 (0)