diff options
author | 2023-10-10 14:33:42 +0000 | |
---|---|---|
committer | 2023-10-10 14:33:42 +0000 | |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/manual tests/1 wrap | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/manual tests/1 wrap')
-rw-r--r-- | meson/manual tests/1 wrap/main.c | 12 | ||||
-rw-r--r-- | meson/manual tests/1 wrap/meson.build | 13 | ||||
-rw-r--r-- | meson/manual tests/1 wrap/subprojects/sqlite.wrap | 10 |
3 files changed, 35 insertions, 0 deletions
diff --git a/meson/manual tests/1 wrap/main.c b/meson/manual tests/1 wrap/main.c new file mode 100644 index 000000000..df6abe434 --- /dev/null +++ b/meson/manual tests/1 wrap/main.c @@ -0,0 +1,12 @@ +#include<sqlite3.h> +#include<stdio.h> + +int main(void) { + sqlite3 *db; + if(sqlite3_open(":memory:", &db) != SQLITE_OK) { + printf("Sqlite failed.\n"); + return 1; + } + sqlite3_close(db); + return 0; +} diff --git a/meson/manual tests/1 wrap/meson.build b/meson/manual tests/1 wrap/meson.build new file mode 100644 index 000000000..aee358d88 --- /dev/null +++ b/meson/manual tests/1 wrap/meson.build @@ -0,0 +1,13 @@ +project('downloader', 'c') + +cc = meson.get_compiler('c') + +s = subproject('sqlite').get_variable('sqlite_dep') +th = dependency('threads') + +libdl = cc.find_library('dl', required : false) + +e = executable('dtest', 'main.c', + dependencies : [th, libdl, s]) + +test('dltest', e) diff --git a/meson/manual tests/1 wrap/subprojects/sqlite.wrap b/meson/manual tests/1 wrap/subprojects/sqlite.wrap new file mode 100644 index 000000000..6d14949e6 --- /dev/null +++ b/meson/manual tests/1 wrap/subprojects/sqlite.wrap @@ -0,0 +1,10 @@ +[wrap-file] +directory = sqlite-amalgamation-3080802 + +source_url = http://sqlite.com/2015/sqlite-amalgamation-3080802.zip +source_filename = sqlite-amalgamation-3080802.zip +source_hash = 5ebeea0dfb75d090ea0e7ff84799b2a7a1550db3fe61eb5f6f61c2e971e57663 + +patch_url = https://wrapdb.mesonbuild.com/v1/projects/sqlite/3080802/5/get_zip +patch_filename = sqlite-3080802-5-wrap.zip +patch_hash = d66469a73fa1344562d56a1d7627d5d0ee4044a77b32d16cf4bbb85741d4c9fd |