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