summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-08-30 21:38:50 +0300
committerKonstantin Käfer <mail@kkaefer.com>2018-09-05 12:26:15 +0200
commit679d66f36d0034978211e7cba00392b24e8576df (patch)
treeca25c290776b655e649f1728cc0fed9bcde7fcd2 /scripts
parent0e95e8f6b241ee8b30635a986f2c503f21997dd7 (diff)
downloadqtlocation-mapboxgl-679d66f36d0034978211e7cba00392b24e8576df.tar.gz
[build] use vendored SQLite for LTO benefits + custom compile flags
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vendor/sqlite.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/vendor/sqlite.sh b/scripts/vendor/sqlite.sh
new file mode 100755
index 0000000000..6038a5f108
--- /dev/null
+++ b/scripts/vendor/sqlite.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+source "$(dirname "${BASH_SOURCE[0]}")/common.sh"
+
+NAME=sqlite
+VERSION=3.24.0
+ROOT=sqlite-amalgamation-3240000
+
+download "https://www.sqlite.org/2018/$ROOT.zip"
+init
+extract_zip "$ROOT/sqlite3.*"
+mkdir -p include src
+mv sqlite3.h include
+mv sqlite3.c src
+file_list include src -name "*.h" -o -name "*.c"