From 4e861ad8e02c941361e5b1fe4a290155270d23d0 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 11 Oct 2024 09:30:03 +0200 Subject: [PATCH] libavcodec/Makefile: add a makefile for Vulkan shaders --- 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 $< $@