enable sqlite3 options for performance improvements
This commit is contained in:
parent
9d94a8fed5
commit
f29cc3ee72
2 changed files with 15 additions and 2 deletions
|
@ -5,6 +5,12 @@ LOCAL_PATH := $(TOP_PATH)
|
||||||
LOCAL_SRC_FILES := sqlite3.c
|
LOCAL_SRC_FILES := sqlite3.c
|
||||||
LOCAL_MODULE := sqlite3_static
|
LOCAL_MODULE := sqlite3_static
|
||||||
LOCAL_MODULE_FILENAME := libsqlite3
|
LOCAL_MODULE_FILENAME := libsqlite3
|
||||||
LOCAL_CFLAGS := -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 -D_FILE_OFFSET_BITS=64
|
LOCAL_CFLAGS := \
|
||||||
|
-DSQLITE_BYTEORDER=1234 \
|
||||||
|
-DSQLITE_DIRECT_OVERFLOW_READ \
|
||||||
|
-DSQLITE_ENABLE_ATOMIC_WRITE \
|
||||||
|
-DSQLITE_ENABLE_BATCH_ATOMIC_WRITE \
|
||||||
|
-DSQLITE_ENABLE_FTS4 \
|
||||||
|
-DSQLITE_ENABLE_FTS5 \
|
||||||
|
-D_FILE_OFFSET_BITS=64
|
||||||
include $(BUILD_STATIC_LIBRARY)
|
include $(BUILD_STATIC_LIBRARY)
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
LOCAL_MODULE := sqlite3_static
|
||||||
|
LOCAL_SRC_FILES := libs/$(TARGET_ARCH_ABI)/libsqlite3.a
|
||||||
|
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
|
||||||
|
include $(PREBUILT_STATIC_LIBRARY)
|
Loading…
Reference in a new issue