From 0714e0dd8fde2744fca9a3f1085f79e7eb7ba1e9 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka <valenok@gmail.com> Date: Mon, 4 Nov 2013 21:15:01 +0000 Subject: [PATCH] Updated Android build --- build/jni/Android.mk | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/build/jni/Android.mk b/build/jni/Android.mk index dcb5385b3..1d9d6d600 100644 --- a/build/jni/Android.mk +++ b/build/jni/Android.mk @@ -1,6 +1,12 @@ LOCAL_PATH := $(call my-dir)/../.. include $(CLEAR_VARS) -LOCAL_CFLAGS := -std=c99 -O2 -W -Wall -pthread -pipe $(COPT) + +# To build with lua support, uncomment two lines below: +#LUA_SOURCES := build/lua_5.2.1.c build/sqlite3.c build/lsqlite3.c +#LUA_FLAGS := -I$(LOCAL_PATH)/build -DTHREADSAFE=1 -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DUSE_LUA -DUSE_LUA_SQLITE3 -DLUA_COMPAT_ALL -D"getlocaledecpoint() ='.'" + +LOCAL_CFLAGS := -std=c99 -O2 -W -Wall -pthread -pipe $(LUA_FLAGS) $(COPT) LOCAL_MODULE := mongoose -LOCAL_SRC_FILES := main.c mongoose.c +LOCAL_SRC_FILES := build/main.c mongoose.c $(LUA_SOURCES) + include $(BUILD_EXECUTABLE) -- GitLab