Skip to content

Commit

Permalink
Merge pull request libretro#85 from orbea/git
Browse files Browse the repository at this point in the history
libretro: Allow setting GIT_VERSION.
  • Loading branch information
notaz authored Apr 5, 2018
2 parents 8d40ae5 + cdb923c commit 6ee3a0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile.libretro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ CFLAGS ?=
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
2 changes: 1 addition & 1 deletion jni/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)"
GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown)"
ifneq ($(GIT_VERSION)," unknown")
LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
Expand Down

0 comments on commit 6ee3a0f

Please sign in to comment.