diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2015-02-04 20:35:06 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2015-02-04 20:35:06 +0200 |
commit | 1eaf6673b73be1393de61f0367d1fd352872b5cc (patch) | |
tree | 960662a4757868851211f750b28010e040f4ade7 /manual tests/1 wrap | |
parent | a91b3fcdc5407bb881f76a53253d273b620c50fc (diff) | |
download | meson-1eaf6673b73be1393de61f0367d1fd352872b5cc.zip meson-1eaf6673b73be1393de61f0367d1fd352872b5cc.tar.gz meson-1eaf6673b73be1393de61f0367d1fd352872b5cc.tar.bz2 |
Moved files.
Diffstat (limited to 'manual tests/1 wrap')
-rw-r--r-- | manual tests/1 wrap/main.c | 12 | ||||
-rw-r--r-- | manual tests/1 wrap/meson.build | 11 | ||||
-rw-r--r-- | manual tests/1 wrap/subprojects/sqlite.wrap | 10 |
3 files changed, 33 insertions, 0 deletions
diff --git a/manual tests/1 wrap/main.c b/manual tests/1 wrap/main.c new file mode 100644 index 0000000..39d3a9a --- /dev/null +++ b/manual tests/1 wrap/main.c @@ -0,0 +1,12 @@ +#include<sqlite3.h> +#include<stdio.h> + +int main(int argc, char **argv) { + sqlite3 *db; + if(sqlite3_open(":memory:", &db) != SQLITE_OK) { + printf("Sqlite failed.\n"); + return 1; + } + sqlite3_close(db); + return 0; +} diff --git a/manual tests/1 wrap/meson.build b/manual tests/1 wrap/meson.build new file mode 100644 index 0000000..afdda34 --- /dev/null +++ b/manual tests/1 wrap/meson.build @@ -0,0 +1,11 @@ +project('downloader', 'c') + +s = subproject('sqlite') + +e = executable('dtest', 'main.c', +include_directories : s.get_variable('sqinc'), +link_args : ['-pthread', '-ldl'], +c_args : '-pthread', +link_with : s.get_variable('sqlib')) + +test('dltest', e) diff --git a/manual tests/1 wrap/subprojects/sqlite.wrap b/manual tests/1 wrap/subprojects/sqlite.wrap new file mode 100644 index 0000000..879a170 --- /dev/null +++ b/manual tests/1 wrap/subprojects/sqlite.wrap @@ -0,0 +1,10 @@ +[mesonwrap] +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://dl.dropboxusercontent.com/u/37517477/sqlite-meson.tar.gz +patch_filename = sqlite-meson.tar.gz +patch_hash = 8c9d00702d5fe4a6bf25a36b821a332f6b2dfd117c66fe818b88b23d604635e9 |