summaryrefslogtreecommitdiff
path: root/components/external/SQLite-3.8.1
diff options
context:
space:
mode:
authorgeniusgogo <[email protected]>2013-12-22 21:11:58 +0800
committergeniusgogo <[email protected]>2013-12-22 21:22:47 +0800
commit26e0137f15cb00208f28dcb8493d8a0789360076 (patch)
treebde076155c6a8883356bb56dc22f6e76d7688f45 /components/external/SQLite-3.8.1
parentbe2f628160fa1262b6cc10df3823c5f984bc3c48 (diff)
Moved the configuration options to the SRC directory
Diffstat (limited to 'components/external/SQLite-3.8.1')
-rw-r--r--components/external/SQLite-3.8.1/SQLiteLib/README10
-rw-r--r--components/external/SQLite-3.8.1/make/Makefile2
-rw-r--r--components/external/SQLite-3.8.1/src/sqlite_config_rtthread.h62
-rw-r--r--components/external/SQLite-3.8.1/tool/mksqlite3c.tcl1
4 files changed, 71 insertions, 4 deletions
diff --git a/components/external/SQLite-3.8.1/SQLiteLib/README b/components/external/SQLite-3.8.1/SQLiteLib/README
index 6dc72c8880..3fcb18799f 100644
--- a/components/external/SQLite-3.8.1/SQLiteLib/README
+++ b/components/external/SQLite-3.8.1/SQLiteLib/README
@@ -10,6 +10,8 @@
* SQLite compile macro
*/
#define RT_USING_SQLITE
+2.
+ 关注SQLite目录下的src/sqlite_config_rtthread.h
#define SQLITE_MINIMUM_FILE_DESCRIPTOR 0
#define SQLITE_OMIT_LOAD_EXTENSION 1
#define SQLITE_OMIT_WAL
@@ -20,11 +22,11 @@
#define SQLITE_THREADSAFE 1
#define HAVE_READLINE 0
#define NDEBUG
- #define _HAVE_SQLITE_CONFIG_H
+ #define _HAVE_SQLITE_CONFIG_H
#define BUILD_sqlite
- #define SQLITE_OS_OTHER 1
- #define SQLITE_OS_RTT 1
-2.
+ #define SQLITE_OS_OTHER 1
+ #define SQLITE_OS_RTTHREAD 1
+3.
用test目录下的test10.c来进行测试.
推荐用mini2440bsp,因为板子的ram较大。
diff --git a/components/external/SQLite-3.8.1/make/Makefile b/components/external/SQLite-3.8.1/make/Makefile
index f8d829eee3..ba1b0b9eac 100644
--- a/components/external/SQLite-3.8.1/make/Makefile
+++ b/components/external/SQLite-3.8.1/make/Makefile
@@ -346,6 +346,8 @@ SRC += \
parse.h \
config.h \
sqlite3.h
+
+SRC += $(TOP)/src/sqlite_config_rtthread.h
# Source code to the test files.
#
diff --git a/components/external/SQLite-3.8.1/src/sqlite_config_rtthread.h b/components/external/SQLite-3.8.1/src/sqlite_config_rtthread.h
new file mode 100644
index 0000000000..5b4fb1858a
--- /dev/null
+++ b/components/external/SQLite-3.8.1/src/sqlite_config_rtthread.h
@@ -0,0 +1,62 @@
+#ifndef _SQLITE_CONFIG_RTTHREAD_H_
+#define _SQLITE_CONFIG_RTTHREAD_H_
+/*
+* SQLite compile macro
+*/
+#ifndef SQLITE_MINIMUM_FILE_DESCRIPTOR
+#define SQLITE_MINIMUM_FILE_DESCRIPTOR 0
+#endif
+
+#ifndef SQLITE_OMIT_LOAD_EXTENSION
+#define SQLITE_OMIT_LOAD_EXTENSION 1
+#endif
+
+//#ifndef #define SQLITE_OMIT_WAL
+#define SQLITE_OMIT_WAL
+//#endif
+
+#ifndef SQLITE_RTTHREAD_NO_WIDE
+#define SQLITE_RTTHREAD_NO_WIDE 1
+#endif
+
+#ifndef SQLITE_ENABLE_LOCKING_STYLE
+#define SQLITE_ENABLE_LOCKING_STYLE 0
+#endif
+
+#ifndef SQLITE_DISABLE_LOCKING_STYLE
+#define SQLITE_DISABLE_LOCKING_STYLE 1
+#endif
+
+#ifndef SQLITE_TEMP_STORE
+#define SQLITE_TEMP_STORE 1
+#endif
+
+#ifndef SQLITE_THREADSAFE
+#define SQLITE_THREADSAFE 1
+#endif
+
+#ifndef HAVE_READLINE
+#define HAVE_READLINE 0
+#endif
+
+#ifndef NDEBUG
+#define NDEBUG
+#endif
+
+#ifndef _HAVE_SQLITE_CONFIG_H
+#define _HAVE_SQLITE_CONFIG_H
+#endif
+
+#ifndef BUILD_sqlite
+#define BUILD_sqlite
+#endif
+
+#ifndef SQLITE_OS_OTHER
+#define SQLITE_OS_OTHER 1
+#endif
+
+#ifndef SQLITE_OS_RTTHREAD
+#define SQLITE_OS_RTTHREAD 1
+#endif
+
+#endif
diff --git a/components/external/SQLite-3.8.1/tool/mksqlite3c.tcl b/components/external/SQLite-3.8.1/tool/mksqlite3c.tcl
index 4b01a34f74..89d73a6641 100644
--- a/components/external/SQLite-3.8.1/tool/mksqlite3c.tcl
+++ b/components/external/SQLite-3.8.1/tool/mksqlite3c.tcl
@@ -228,6 +228,7 @@ proc copy_file {filename} {
# inlining opportunities.
#
foreach file {
+ sqlite_config_rtthread.h
sqlite3.h
sqliteInt.h