aboutsummaryrefslogtreecommitdiff
path: root/manual tests/1 wrap
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-02-04 20:35:06 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-02-04 20:35:06 +0200
commit1eaf6673b73be1393de61f0367d1fd352872b5cc (patch)
tree960662a4757868851211f750b28010e040f4ade7 /manual tests/1 wrap
parenta91b3fcdc5407bb881f76a53253d273b620c50fc (diff)
downloadmeson-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.c12
-rw-r--r--manual tests/1 wrap/meson.build11
-rw-r--r--manual tests/1 wrap/subprojects/sqlite.wrap10
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