diff --git a/platforms/libretro/jni/Android.mk b/platforms/libretro/jni/Android.mk index cedf166..a06f500 100644 --- a/platforms/libretro/jni/Android.mk +++ b/platforms/libretro/jni/Android.mk @@ -8,9 +8,15 @@ include $(CORE_DIR)/Makefile.common COREFLAGS := -DHAVE_STDINT_H -DHAVE_INTTYPES_H -D__LIBRETRO__ -DGEARCOLECO_DISABLE_DISASSEMBLER +GIT_VERSION ?= " $(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)" +ifneq ($(GIT_VERSION)," unknown") + COREFLAGS += -DEMULATOR_BUILD=\"$(GIT_VERSION)\" +endif + include $(CLEAR_VARS) LOCAL_MODULE := retro -LOCAL_SRC_FILES := $(SOURCES_CXX) +LOCAL_SRC_FILES := $(SOURCES_CXX) $(SOURCES_C) +LOCAL_CFLAGS := $(COREFLAGS) LOCAL_CXXFLAGS := $(COREFLAGS) LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR)/link.T LOCAL_LDLIBS := -llog