libretro: Allow setting GIT_VERSION.

This commit is contained in:
orbea
2018-04-03 10:41:26 -07:00
committed by kub
parent 99dd1cbcc3
commit 2d52bde825
2 changed files with 3 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ CFLAGS += -I platform/libretro/libretro-common/include/vfs
STATIC_LINKING:= 0
TARGET_NAME := picodrive
LIBM := -lm
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif

View File

@@ -52,8 +52,8 @@ SOURCES_C := $(LIBRETRO_DIR)/libretro.c \
COREFLAGS := $(addprefix -D,$(DEFINES)) -fno-strict-aliasing
GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
GIT_VERSION := $(shell git rev-parse --short HEAD || echo unknown)
ifneq ($(GIT_VERSION),"unknown")
COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif