SQLite Android Bindings
Check-in [938b5766d5]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Move c/c++ code into the jni/sqlite/ sub-directory. To make it easier to copy into other projects.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 938b5766d5f897000ed81e4ae5081c355b12a03d
User & Date: dan 2013-12-25 19:03:22
Context
2013-12-25
19:13
Do not automatically delete database files in SEE-enabled builds. check-in: c45018804a user: dan tags: trunk
19:03
Move c/c++ code into the jni/sqlite/ sub-directory. To make it easier to copy into other projects. check-in: 938b5766d5 user: dan tags: trunk
18:56
Add a mising link to index.wiki. check-in: 8b4072a7db user: dan tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to jni/Android.mk.


1
2

3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)


LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA
LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL
LOCAL_CFLAGS += -U__APPLE__
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast
LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
LOCAL_CPPFLAGS += -Wno-conversion-null


ifeq ($(TARGET_ARCH), arm)
	LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
else
	LOCAL_CFLAGS += -DPACKED=""
endif

LOCAL_SRC_FILES:=                             \
	android_database_SQLiteCommon.cpp     \
	android_database_SQLiteConnection.cpp \
	android_database_SQLiteGlobal.cpp     \
	android_database_SQLiteDebug.cpp      \
	JNIHelp.cpp JniConstants.cpp

#
# For a SEE build, add the SEE sources to the tree and uncomment the first
# two of the following three lines.
#
#    LOCAL_SRC_FILES += sqlite3-see.c
#    LOCAL_CFLAGS    += -DSQLITE_HAS_CODEC
LOCAL_SRC_FILES += sqlite3.c

LOCAL_C_INCLUDES += nativehelper/

LOCAL_MODULE:= libsqliteX
LOCAL_LDLIBS += -ldl -llog 

include $(BUILD_SHARED_LIBRARY)

>

<
>

<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
<
1
2

3
4





































LOCAL_PATH:= $(call my-dir)

include $(LOCAL_PATH)/sqlite/Android.mk





































Name change from jni/ALog-priv.h to jni/sqlite/ALog-priv.h.

Added jni/sqlite/Android.mk.











































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)

# If using SEE, uncomment the following:
# LOCAL_CFLAGS += -DSQLITE_HAS_CODEC

LOCAL_CFLAGS += -DHAVE_CONFIG_H -DKHTML_NO_EXCEPTIONS -DGKWQ_NO_JAVA
LOCAL_CFLAGS += -DNO_SUPPORT_JS_BINDING -DQT_NO_WHEELEVENT -DKHTML_NO_XBL
LOCAL_CFLAGS += -U__APPLE__
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-int-to-pointer-cast
LOCAL_CFLAGS += -Wno-maybe-uninitialized -Wno-parentheses
LOCAL_CPPFLAGS += -Wno-conversion-null


ifeq ($(TARGET_ARCH), arm)
	LOCAL_CFLAGS += -DPACKED="__attribute__ ((packed))"
else
	LOCAL_CFLAGS += -DPACKED=""
endif

LOCAL_SRC_FILES:=                             \
	android_database_SQLiteCommon.cpp     \
	android_database_SQLiteConnection.cpp \
	android_database_SQLiteGlobal.cpp     \
	android_database_SQLiteDebug.cpp      \
	JNIHelp.cpp JniConstants.cpp

LOCAL_SRC_FILES += sqlite3.c

LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/nativehelper/

LOCAL_MODULE:= libsqliteX
LOCAL_LDLIBS += -ldl -llog 

include $(BUILD_SHARED_LIBRARY)

Name change from jni/JNIHelp.cpp to jni/sqlite/JNIHelp.cpp.

Name change from jni/JniConstants.cpp to jni/sqlite/JniConstants.cpp.

Name change from jni/README to jni/sqlite/README.

Name change from jni/android_database_SQLiteCommon.cpp to jni/sqlite/android_database_SQLiteCommon.cpp.

Name change from jni/android_database_SQLiteCommon.h to jni/sqlite/android_database_SQLiteCommon.h.

Name change from jni/android_database_SQLiteConnection.cpp to jni/sqlite/android_database_SQLiteConnection.cpp.

Name change from jni/android_database_SQLiteDebug.cpp to jni/sqlite/android_database_SQLiteDebug.cpp.

Name change from jni/android_database_SQLiteGlobal.cpp to jni/sqlite/android_database_SQLiteGlobal.cpp.

Name change from jni/nativehelper/JNIHelp.h to jni/sqlite/nativehelper/JNIHelp.h.

Name change from jni/nativehelper/JniConstants.h to jni/sqlite/nativehelper/JniConstants.h.

Name change from jni/nativehelper/ScopedLocalRef.h to jni/sqlite/nativehelper/ScopedLocalRef.h.

Name change from jni/nativehelper/jni.h to jni/sqlite/nativehelper/jni.h.

Name change from jni/sqlite3.c to jni/sqlite/sqlite3.c.

Name change from jni/sqlite3.h to jni/sqlite/sqlite3.h.