From 967276f3ba1ea2779f17e69d89c3d362db9a8248 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Wed, 29 Jan 2014 20:34:00 +0100 Subject: [PATCH] Fix git revision for android --- src/Android.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Android.mk b/src/Android.mk index 8f7c729..81136e5 100644 --- a/src/Android.mk +++ b/src/Android.mk @@ -11,11 +11,13 @@ LOCAL_PATH:= $(call my-dir) +HEAD_COMMIT = `git rev-parse --short HEAD` + include $(CLEAR_VARS) LOCAL_MODULE := iodine LOCAL_SRC_FILES := tun.c dns.c read.c encoding.c login.c base32.c base64.c base64u.c base128.c md5.c common.c iodine.c client.c util.c -LOCAL_CFLAGS := -c -DANDROID -DLINUX -DIFCONFIGPATH=\"/system/bin/\" -Wall +LOCAL_CFLAGS := -c -DANDROID -DLINUX -DIFCONFIGPATH=\"/system/bin/\" -Wall -DGITREVISION=\"$(HEAD_COMMIT)\" LOCAL_LDLIBS := -lz include $(BUILD_EXECUTABLE)