summaryrefslogtreecommitdiff
path: root/libsqlite3/libsqlite3/buildfile
diff options
context:
space:
mode:
Diffstat (limited to 'libsqlite3/libsqlite3/buildfile')
-rw-r--r--libsqlite3/libsqlite3/buildfile25
1 files changed, 19 insertions, 6 deletions
diff --git a/libsqlite3/libsqlite3/buildfile b/libsqlite3/libsqlite3/buildfile
index c915442..0b52040 100644
--- a/libsqlite3/libsqlite3/buildfile
+++ b/libsqlite3/libsqlite3/buildfile
@@ -17,15 +17,20 @@ clang_msvc = ($c.id == 'clang' && $c.target.system == 'win32-msvc')
# the official documentation.
#
# Note that we "prefix" them to what might have been specified by the user so
-# that it is possible to override the defaults by specifying them as =0 (it's
-# also the reason we use cc.* instead of c.*, the former comes first).
+# that it is possible to override the defaults by specifying them as =0.
#
-# PREUPDATE_HOOK is required by SESSION
+# PREUPDATE_HOOK is required by SESSION.
+#
+# GEOPOLY (alternative interface to the R-Tree extension) is always enabled by
+# upstream together with RTREE.
+#
+# ROWID_IN_VIEW restores some legacy behavior.
#
# Note that if disabling any previously-released features, then will need to
# increment abi_major.
#
-cc.poptions =+ \
+c.poptions =+ \
+ -DSQLITE_ALLOW_ROWID_IN_VIEW=1 \
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
-DSQLITE_ENABLE_DBPAGE_VTAB=1 \
-DSQLITE_ENABLE_DBSTAT_VTAB=1 \
@@ -35,8 +40,10 @@ cc.poptions =+ \
-DSQLITE_ENABLE_FTS3_TOKENIZER=1 \
-DSQLITE_ENABLE_FTS4=1 \
-DSQLITE_ENABLE_FTS5=1 \
+ -DSQLITE_ENABLE_GEOPOLY=1 \
-DSQLITE_ENABLE_JSON1=1 \
-DSQLITE_ENABLE_LOAD_EXTENSION=1 \
+ -DSQLITE_ENABLE_MATH_FUNCTIONS=1 \
-DSQLITE_ENABLE_PREUPDATE_HOOK=1 \
-DSQLITE_ENABLE_RTREE=1 \
-DSQLITE_ENABLE_SESSION=1 \
@@ -52,12 +59,16 @@ cc.poptions =+ \
-DSQLITE_THREADSAFE=1 \
-DSQLITE_USE_URI=1
+# Raise the maximum number of attached databases from 10 up to the limit.
+#
+c.poptions =+ -DSQLITE_MAX_ATTACHED=125
+
if! $windows
{
# Note that the upstream package normally defines a number of other HAVE_*
# macros, which we currently don't care about.
#
- cc.poptions =+ -DHAVE_USLEEP=1
+ c.poptions =+ -DHAVE_USLEEP=1
# SQLITE_THREADSAFE requres -lpthread
# SQLITE_ENABLE_LOAD_EXTENSION requires -ldl
@@ -73,7 +84,9 @@ if! $windows
# We also assume these are implementation dependencies (so there is no
# c.export.libs listing them).
#
- c.libs += -lpthread -lm
+ # Note that we use -pthread instead of -lpthread for efficiency.
+ #
+ c.libs += -pthread -lm
if! $bsd
c.libs += -ldl