[FFmpeg-devel] [PATCH] libavcodec/Makefile: add a makefile for Vulkan shaders

Lynne dev at lynne.ee
Sat Oct 12 00:17:57 EEST 2024


---
 libavcodec/Makefile        | 10 +---------
 libavcodec/vulkan/Makefile | 10 ++++++++++
 2 files changed, 11 insertions(+), 9 deletions(-)
 create mode 100644 libavcodec/vulkan/Makefile

diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 5df4b7cfc3..dd5d0de898 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -70,6 +70,7 @@ include $(SRC_PATH)/libavcodec/aac/Makefile
 include $(SRC_PATH)/libavcodec/hevc/Makefile
 include $(SRC_PATH)/libavcodec/opus/Makefile
 include $(SRC_PATH)/libavcodec/vvc/Makefile
+include $(SRC_PATH)/libavcodec/vulkan/Makefile
 -include $(SRC_PATH)/libavcodec/$(ARCH)/vvc/Makefile
 OBJS-$(CONFIG_AANDCTTABLES)            += aandcttab.o
 OBJS-$(CONFIG_AC3DSP)                  += ac3dsp.o ac3.o ac3tab.o
@@ -1376,12 +1377,3 @@ $(SUBDIR)pcm.o: $(SUBDIR)pcm_tables.h
 $(SUBDIR)qdm2.o: $(SUBDIR)qdm2_tables.h
 $(SUBDIR)sinewin.o: $(SUBDIR)sinewin_tables.h
 endif
-
-clean::
-	$(RM) $(CLEANSUFFIXES:%=libavcodec/vulkan/%)
-
-VULKAN = $(subst $(SRC_PATH)/,,$(wildcard $(SRC_PATH)/libavcodec/vulkan/*.comp))
-.SECONDARY: $(VULKAN:.comp=.c)
-libavcodec/vulkan/%.c: TAG = VULKAN
-libavcodec/vulkan/%.c: $(SRC_PATH)/libavcodec/vulkan/%.comp
-	$(M)$(SRC_PATH)/tools/source2c $< $@
diff --git a/libavcodec/vulkan/Makefile b/libavcodec/vulkan/Makefile
new file mode 100644
index 0000000000..96b4de0092
--- /dev/null
+++ b/libavcodec/vulkan/Makefile
@@ -0,0 +1,10 @@
+GEN_CLEANSUFFIXES = *.o *.c *.d
+
+clean::
+	$(RM) $(GEN_CLEANSUFFIXES:%=libavcodec/vulkan/%)
+
+VULKAN = $(subst $(SRC_PATH)/,,$(wildcard $(SRC_PATH)/libavcodec/vulkan/*.comp))
+.SECONDARY: $(VULKAN:.comp=.c)
+libavcodec/vulkan/%.c: TAG = VULKAN
+libavcodec/vulkan/%.c: $(SRC_PATH)/libavcodec/vulkan/%.comp
+	$(M)$(SRC_PATH)/tools/source2c $< $@
-- 
2.45.2.753.g447d99e1c3b


More information about the ffmpeg-devel mailing list