diff --git a/build/jni/Android.mk b/build/jni/Android.mk index dcb5385b339acfa05450daed317206d4899ece36..1d9d6d6002858a7af8f229a49cd48487e15a7b75 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)