Skip to content

Commit d8123c7

Browse files
committed
Introduce sqlite
See #644
1 parent 76cbe37 commit d8123c7

File tree

8 files changed

+308241
-0
lines changed

8 files changed

+308241
-0
lines changed

third_party/BUILD.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
include third_party/double-conversion/BUILD.mk
22
include third_party/mbedtls/BUILD.mk
3+
include third_party/sqlite/BUILD.mk
34
include third_party/stb/BUILD.mk
45

56
.PHONY: o/$(MODE)/third_party
67
o/$(MODE)/third_party: \
78
o/$(MODE)/third_party/double-conversion \
89
o/$(MODE)/third_party/mbedtls \
10+
o/$(MODE)/third_party/sqlite \
911
o/$(MODE)/third_party/stb \
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
DESCRIPTION
2+
3+
mbedtls is a tls library created by arm limited
4+
5+
ORIGIN
6+
7+
https://github.com/jart/cosmopolitan/tree/master/third_party/mbedtls
8+
2024-11-28
9+
10+
LICENSE
11+
12+
Apache 2.0
13+
14+
LOCAL CHANGES
15+
16+
- jart's x86-64 performance enhancements (see cosmopolitan)

third_party/sqlite/BUILD.mk

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
2+
#── vi: set noet ft=make ts=8 sw=8 fenc=utf-8 :vi ────────────────────┘
3+
4+
PKGS += THIRD_PARTY_SQLITE
5+
6+
o/$(MODE)/third_party/sqlite/sqlite.a: \
7+
o/$(MODE)/third_party/sqlite/sqlite3.o \
8+
9+
o/$(MODE)/third_party/sqlite/shell: \
10+
o/$(MODE)/third_party/sqlite/shell.o \
11+
o/$(MODE)/third_party/sqlite/sqlite3.o \
12+
13+
o/$(MODE)/third_party/sqlite/shell.o \
14+
o/$(MODE)/third_party/sqlite/sqlite3.o: \
15+
private CFLAGS += \
16+
-mgcc \
17+
-DSQLITE_CORE \
18+
-DSQLITE_OS_UNIX \
19+
-DHAVE_USLEEP \
20+
-DHAVE_READLINK \
21+
-DHAVE_FCHOWN \
22+
-DHAVE_LOCALTIME_R \
23+
-DHAVE_LSTAT \
24+
-DHAVE_GMTIME_R \
25+
-DHAVE_FDATASYNC \
26+
-DHAVE_STRCHRNUL \
27+
-DHAVE_LOCALTIME_R \
28+
-DHAVE_MALLOC_USABLE_SIZE \
29+
-DSQLITE_HAVE_C99_MATH_FUNCS \
30+
-DSQLITE_ENABLE_STMT_SCANSTATUS \
31+
-DSQLITE_ENABLE_FTS5 \
32+
-DSQLITE_ENABLE_RTREE \
33+
-DSQLITE_SOUNDEX \
34+
-DSQLITE_ENABLE_GEOPOLY \
35+
-DSQLITE_ENABLE_MATH_FUNCTIONS \
36+
-USQLITE_ENABLE_FTS3 \
37+
-DSQLITE_ENABLE_FTS5 \
38+
-DSQLITE_ENABLE_DBSTAT_VTAB \
39+
-DSQLITE_ENABLE_DBPAGE_VTAB \
40+
-DSQLITE_ENABLE_STMTVTAB \
41+
-DSQLITE_ENABLE_BYTECODE_VTAB \
42+
-DSQLITE_ENABLE_EXPLAIN_COMMENTS \
43+
-DSQLITE_HAVE_ZLIB \
44+
-DSQLITE_INTROSPECTION_PRAGMAS \
45+
-DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION \
46+
-DSQLITE_ENABLE_STMT_SCANSTATUS \
47+
-DSQLITE_DQS=0 \
48+
49+
o/$(MODE)/third_party/sqlite/shell.o \
50+
o/$(MODE)/third_party/sqlite/sqlite3.o: \
51+
third_party/sqlite/BUILD.mk
52+
53+
.PHONY: o/$(MODE)/third_party/sqlite
54+
o/$(MODE)/third_party/sqlite: \
55+
o/$(MODE)/third_party/sqlite/shell \
56+
o/$(MODE)/third_party/sqlite/sqlite.a \
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
DESCRIPTION
2+
3+
SQLite is the world's most popular database
4+
5+
ORIGIN
6+
7+
https://www.sqlite.org/2024/sqlite-amalgamation-3470100.zip
8+
9+
LICENSE
10+
11+
Public domain or MIT
12+
13+
LOCAL CHANGES
14+
15+
- Renamed <zlib.h> to <third_party/zlib/zlib.h>

0 commit comments

Comments
 (0)