From c9b7122a08cf37a915774fbeb7e4f4b8bf4bdbea Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 2 Nov 2020 03:07:56 +0100 Subject: [PATCH] Add git_version switch - to disable Git version, do ./configure --disable-git_version --- Makefile.common | 3 ++- qb/config.params.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 5c28989e68..b8b2c27784 100644 --- a/Makefile.common +++ b/Makefile.common @@ -156,8 +156,8 @@ endif ifeq ($(TARGET), retroarch_3ds) OBJ += frontend/drivers/platform_ctr.o endif - # Git Version +ifeq ($(HAVE_GIT_VERSION), 1) GIT_VERSION_CACHEDIR = $(if $(OBJDIR),$(OBJDIR),$(CURDIR)) GIT_VERSION_CACHEFILE = $(GIT_VERSION_CACHEDIR)/git-version.cache @@ -185,6 +185,7 @@ ifneq ($(GIT_VERSION),) # Enable version_git.o? DEFINES += -DHAVE_GIT_VERSION -DGIT_VERSION=$(GIT_VERSION) OBJ += version_git.o endif +endif # General object files ifeq ($(HAVE_DR_MP3), 1) diff --git a/qb/config.params.sh b/qb/config.params.sh index aa017fe5c2..7d2f75200d 100644 --- a/qb/config.params.sh +++ b/qb/config.params.sh @@ -187,3 +187,4 @@ C89_METAL=no HAVE_NETWORK_VIDEO=no HAVE_STEAM=no # Enable Steam build HAVE_ODROIDGO2=no # ODROID-GO Advance rotation support (requires librga) +HAVE_GIT_VERSION=yes # Git version support