enable sqlite3 options for performance improvements
This commit is contained in:
parent
3f43579b89
commit
637cab527c
2 changed files with 15 additions and 2 deletions
|
@ -5,6 +5,12 @@ LOCAL_PATH := $(TOP_PATH)
|
|||
LOCAL_SRC_FILES := sqlite3.c
|
||||
LOCAL_MODULE := sqlite3_static
|
||||
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)
|
||||
|
||||
|
|
|
@ -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