Merge pull request #85 from orbea/git
authornotaz <notasas@gmail.com>
Thu, 5 Apr 2018 20:58:22 +0000 (23:58 +0300)
committerGitHub <noreply@github.com>
Thu, 5 Apr 2018 20:58:22 +0000 (23:58 +0300)
libretro: Allow setting GIT_VERSION.

Makefile.libretro
jni/Android.mk

index 05e8bd8..1e07d50 100644 (file)
@@ -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
index bc81702..9252d9f 100644 (file)
@@ -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