Skip to content

Commit

Permalink
libretro: Allow setting GIT_VERSION.
Browse files Browse the repository at this point in the history
  • Loading branch information
orbea authored and irixxxx committed Jul 4, 2020
1 parent 99dd1cb commit 2d52bde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2d52bde

Please sign in to comment.