From f0b5a6fe973edf2ccdaf18c554e1f8fbb140c0b4 Mon Sep 17 00:00:00 2001 From: Arkadiusz Hiler Date: Wed, 17 May 2023 18:29:51 +0300 Subject: [PATCH] Makefile.in: Bake in the vcs version into dxvk's version.h.in. --- Makefile.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile.in b/Makefile.in index 12786260..29142391 100644 --- a/Makefile.in +++ b/Makefile.in @@ -470,6 +470,11 @@ $(eval $(call rules-source,dxvk,$(SRCDIR)/dxvk)) $(eval $(call rules-meson,dxvk,32,CROSS)) $(eval $(call rules-meson,dxvk,64,CROSS)) +$(OBJ)/.dxvk-post-source: + sed -re 's#@VCS_TAG@#$(shell git -C $(SRCDIR)/dxvk describe --always --abbrev=15 --dirty=0)#' \ + $(SRCDIR)/dxvk/version.h.in > $(DXVK_SRC)/version.h.in + touch $@ + $(OBJ)/.dxvk-post-build64: mkdir -p "$(DST_DIR)"/lib64/wine/dxvk rm -f "$(DST_DIR)"/lib64/wine/dxvk/version && if test -e $(SRCDIR)/.git; then ( cd $(SRCDIR) && git submodule status -- dxvk ) > "$(DST_DIR)"/lib64/wine/dxvk/version; fi