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

Lynne git at videolan.org
Tue Oct 15 18:48:04 EEST 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Fri Oct 11 09:30:03 2024 +0200| [4e861ad8e02c941361e5b1fe4a290155270d23d0] | committer: Lynne

libavcodec/Makefile: add a makefile for Vulkan shaders

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4e861ad8e02c941361e5b1fe4a290155270d23d0
---

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

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 $< $@



More information about the ffmpeg-cvslog mailing list