aboutsummaryrefslogtreecommitdiff
path: root/manual tests/1 wrap/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'manual tests/1 wrap/meson.build')
-rw-r--r--manual tests/1 wrap/meson.build13
1 files changed, 6 insertions, 7 deletions
diff --git a/manual tests/1 wrap/meson.build b/manual tests/1 wrap/meson.build
index 99ea260..aee358d 100644
--- a/manual tests/1 wrap/meson.build
+++ b/manual tests/1 wrap/meson.build
@@ -1,14 +1,13 @@
project('downloader', 'c')
-s = subproject('sqlite')
+cc = meson.get_compiler('c')
-libdl = find_library('dl', required : false)
+s = subproject('sqlite').get_variable('sqlite_dep')
+th = dependency('threads')
+
+libdl = cc.find_library('dl', required : false)
e = executable('dtest', 'main.c',
- include_directories : s.get_variable('sqinc'),
- link_args : ['-pthread'],
- c_args : '-pthread',
- dependencies : libdl,
- link_with : s.get_variable('sqlib'))
+ dependencies : [th, libdl, s])
test('dltest', e)