diff options
author | Twinaphex | 2016-12-09 23:37:14 +0100 |
---|---|---|
committer | GitHub | 2016-12-09 23:37:14 +0100 |
commit | a25a25f9a1327a996fe4ff37d3bfb7e3c15d174e (patch) | |
tree | 4eda9f76f094d1253f9782c9dd6cd8a22b01228d /jni | |
parent | fe3ecfc7e1207ec895bfc939447a9916b42af561 (diff) | |
parent | ccfbb241f4d1a2dbefe684e747c1920da498cbfe (diff) | |
download | snesemu-a25a25f9a1327a996fe4ff37d3bfb7e3c15d174e.tar.gz snesemu-a25a25f9a1327a996fe4ff37d3bfb7e3c15d174e.tar.bz2 snesemu-a25a25f9a1327a996fe4ff37d3bfb7e3c15d174e.zip |
Merge pull request #22 from GregorR/libretro-git-version
Use git version as library_version
Diffstat (limited to 'jni')
-rw-r--r-- | jni/Android.mk | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/jni/Android.mk b/jni/Android.mk index 68b2017..b890e2f 100644 --- a/jni/Android.mk +++ b/jni/Android.mk @@ -1,4 +1,8 @@ LOCAL_PATH := $(call my-dir) +GIT_VERSION := " $(shell git rev-parse --short HEAD || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + LOCAL_CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\" +endif include $(CLEAR_VARS) |