From cdb923c40d4816469c2161b0f5127c2cfd8ec706 Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 3 Apr 2018 10:41:26 -0700 Subject: [PATCH] libretro: Allow setting GIT_VERSION. --- Makefile.libretro | 2 +- jni/Android.mk | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index 05e8bd8da..1e07d50f4 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -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 diff --git a/jni/Android.mk b/jni/Android.mk index bc8170266..9252d9f98 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -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