[vlc-commits] contrib: dxvahd: do the extraction, building and installation the normal way

Steve Lhomme git at videolan.org
Thu Jul 9 14:23:31 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Jul  6 11:27:34 2020 +0200| [d72cb48e9fd9c351ebdcbe7eaf8d4a33f29c46c5] | committer: Steve Lhomme

contrib: dxvahd: do the extraction, building and installation the normal way

Don't bypass steps and compile from the tarballs dir to the installation folder

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d72cb48e9fd9c351ebdcbe7eaf8d4a33f29c46c5
---

 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 a197444378..a8233f9b97 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 $@



More information about the vlc-commits mailing list