From 3488a47c415d6b93936f89bec596d9b51c2cf5aa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 25 May 2021 18:37:51 +0200 Subject: [PATCH] subprojects/sqlite3.wrap: add SQLite wrap --- src/lib/sqlite/meson.build | 4 +++- subprojects/.gitignore | 1 + subprojects/sqlite3.wrap | 12 ++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 subprojects/sqlite3.wrap diff --git a/src/lib/sqlite/meson.build b/src/lib/sqlite/meson.build index 9de67fcfa..2db7fc8ae 100644 --- a/src/lib/sqlite/meson.build +++ b/src/lib/sqlite/meson.build @@ -1,5 +1,7 @@ if enable_database - sqlite_dep = dependency('sqlite3', version: '>= 3.7.3', required: get_option('sqlite')) + sqlite_dep = dependency('sqlite3', version: '>= 3.7.3', + fallback: ['sqlite3', 'sqlite3_dep'], + required: get_option('sqlite')) else sqlite_dep = dependency('', required: false) endif diff --git a/subprojects/.gitignore b/subprojects/.gitignore index e6f228fa3..a4c73fa2b 100644 --- a/subprojects/.gitignore +++ b/subprojects/.gitignore @@ -1,3 +1,4 @@ /packagecache/ /googletest-*/ +/sqlite-*/ diff --git a/subprojects/sqlite3.wrap b/subprojects/sqlite3.wrap new file mode 100644 index 000000000..4d51dc053 --- /dev/null +++ b/subprojects/sqlite3.wrap @@ -0,0 +1,12 @@ +[wrap-file] +directory = sqlite-amalgamation-3340100 +source_url = https://www.sqlite.org/2021/sqlite-amalgamation-3340100.zip +source_filename = sqlite-amalgamation-3340100.zip +source_hash = e0b1c0345fe4338b936e17da8e1bd88366cd210e576834546977f040c12a8f68 +patch_url = https://wrapdb.mesonbuild.com/v1/projects/sqlite3/3.34.1/1/get_zip +patch_filename = sqlite3-3.34.1-1-wrap.zip +patch_hash = cba9e47bdb4c02f88fadaae8deab357218d32562c6b86ce7ba0c72f107044360 + +[provide] +sqlite3 = sqlite3_dep +