subprojects/sqlite3.wrap: add SQLite wrap

This commit is contained in:
Max Kellermann 2021-05-25 18:37:51 +02:00
parent fd82d67678
commit 3488a47c41
3 changed files with 16 additions and 1 deletions

View File

@ -1,5 +1,7 @@
if enable_database 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 else
sqlite_dep = dependency('', required: false) sqlite_dep = dependency('', required: false)
endif endif

View File

@ -1,3 +1,4 @@
/packagecache/ /packagecache/
/googletest-*/ /googletest-*/
/sqlite-*/

12
subprojects/sqlite3.wrap Normal file
View File

@ -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