forked from WiseLibs/better-sqlite3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c97e061
commit d5b9de5
Showing
7 changed files
with
65 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env sh | ||
|
||
VERSION="3250100" | ||
YEAR="2018" | ||
|
||
echo "downloading source..." | ||
DEPS="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | ||
TEMP="$DEPS/temp" | ||
rm -rf "$TEMP" | ||
mkdir -p "$TEMP" | ||
curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/temp.zip" || exit 1 | ||
echo "extracting source..." | ||
unzip "$TEMP/temp.zip" -d "$TEMP" > /dev/null || exit 1 | ||
cd "$TEMP/sqlite-src-$VERSION" | ||
|
||
echo "configuring amalgamation..." | ||
sh configure > /dev/null || exit 1 | ||
|
||
echo "building amalgamation..." | ||
make sqlite3.c > /dev/null || exit 1 | ||
|
||
echo "generating tarball..." | ||
tar czf "$DEPS/sqlite3.tar.gz" sqlite3.c sqlite3.h sqlite3ext.h || exit 1 | ||
|
||
echo "cleaning up..." | ||
cd - > /dev/null | ||
rm -rf "$TEMP" | ||
MAJOR=`expr "${VERSION:0:1}" + 0` | ||
MINOR=`expr "${VERSION:1:2}" + 0` | ||
PATCH=`expr "${VERSION:3:2}" + 0` | ||
sed -Eie "s/version [0-9]+\.[0-9]+\.[0-9]+/version $MAJOR.$MINOR.$PATCH/g" "$DEPS/../docs/compilation.md" | ||
echo "done!" |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
# SQLite3 compilation options | ||
|
||
The following [compilation options](https://www.sqlite.org/compile.html) are used in this distribution of SQLite3. | ||
This distribution currently uses SQLite3 **version 3.25.1** with the following [compilation options](https://www.sqlite.org/compile.html). | ||
|
||
- SQLITE_THREADSAFE=0 | ||
- SQLITE_DEFAULT_MEMSTATUS=0 | ||
- SQLITE_LIKE_DOESNT_MATCH_BLOBS | ||
- SQLITE_OMIT_DEPRECATED | ||
- SQLITE_OMIT_TRACE | ||
- SQLITE_OMIT_COMPLETE | ||
- SQLITE_OMIT_GET_TABLE | ||
- SQLITE_OMIT_DESERIALIZE | ||
- SQLITE_OMIT_TCL_VARIABLE | ||
- SQLITE_OMIT_AUTHORIZATION | ||
- SQLITE_OMIT_PROGRESS_CALLBACK | ||
- SQLITE_DEFAULT_CACHE_SIZE=-16000 | ||
- SQLITE_DEFAULT_FOREIGN_KEYS=1 | ||
- SQLITE_DEFAULT_WAL_SYNCHRONOUS=1 | ||
- SQLITE_MAX_ATTACHED=125 | ||
- SQLITE_MAX_LENGTH=2147483647 | ||
- SQLITE_MAX_SQL_LENGTH=1073741824 | ||
- SQLITE_USE_URI=1 | ||
- SQLITE_ENABLE_COLUMN_METADATA | ||
- SQLITE_ENABLE_UPDATE_DELETE_LIMIT | ||
- SQLITE_ENABLE_FTS4 | ||
- SQLITE_ENABLE_FTS5 | ||
- SQLITE_ENABLE_JSON1 | ||
- SQLITE_ENABLE_RTREE | ||
- SQLITE_INTROSPECTION_PRAGMAS | ||
- SQLITE_SOUNDEX | ||
- SQLITE_DEFAULT_FOREIGN_KEYS=1 | ||
- SQLITE_DEFAULT_WAL_SYNCHRONOUS=1 | ||
- SQLITE_DEFAULT_CACHE_SIZE=-16000 | ||
- SQLITE_LIKE_DOESNT_MATCH_BLOBS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters