[vlc-devel] [PATCH v2 04/13] contrib: dxvahd: do the extraction, building and installation the normal way

Steve Lhomme robux4 at ycbcr.xyz
Tue Jul 7 08:29:25 CEST 2020


Don't bypass steps and compile from the tarballs dir to the installation folder
---
 contrib/src/dxvahd/rules.mak | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/contrib/src/dxvahd/rules.mak b/contrib/src/dxvahd/rules.mak
index a1974443786..a8233f9b978 100644
--- a/contrib/src/dxvahd/rules.mak
+++ b/contrib/src/dxvahd/rules.mak
@@ -7,8 +7,6 @@ else
 IDL_INCLUDES = -I/`echo $(MSYSTEM) | tr A-Z a-z`/$(BUILD)/include
 endif
 
-DST_DXVAHD_H = $(PREFIX)/include/dxvahd.h
-
 ifdef HAVE_WIN32
 PKGS += dxvahd
 endif
@@ -18,9 +16,12 @@ endif
 $(TARBALLS)/dxvahd.idl: $(SRC)/dxvahd/dxvahd.idl
 	cp $< $@
 
-$(DST_DXVAHD_H): $(TARBALLS)/dxvahd.idl .sum-dxvahd
-	mkdir -p -- "$(PREFIX)/include/"
-	$(WIDL) -DBOOL=WINBOOL -I$(PREFIX)/include $(IDL_INCLUDES) -h -o $@ $<
+dxvahd: $(TARBALLS)/dxvahd.idl .sum-dxvahd
+	mkdir -p $@
+	cp $(TARBALLS)/dxvahd.idl $@
 
-.dxvahd: $(DST_DXVAHD_H)
+.dxvahd: dxvahd
+	cd $< && $(WIDL) -DBOOL=WINBOOL -I$(PREFIX)/include $(IDL_INCLUDES) -h -o dxvahd.h dxvahd.idl
+	mkdir -p -- "$(PREFIX)/include/"
+	cd $< && cp dxvahd.h "$(PREFIX)/include/"
 	touch $@
-- 
2.26.2



More information about the vlc-devel mailing list