diff options
Diffstat (limited to 'src/lib/pq/meson.build')
-rw-r--r-- | src/lib/pq/meson.build | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/pq/meson.build b/src/lib/pq/meson.build new file mode 100644 index 000000000..b94cd012f --- /dev/null +++ b/src/lib/pq/meson.build | |||
@@ -0,0 +1,32 @@ | |||
1 | libgnunetpq_src = ['pq.c', | ||
2 | 'pq_connect.c', | ||
3 | 'pq_eval.c', | ||
4 | 'pq_event.c', | ||
5 | 'pq_exec.c', | ||
6 | 'pq_prepare.c', | ||
7 | 'pq_query_helper.c', | ||
8 | 'pq_result_helper.c'] | ||
9 | |||
10 | libgnunetpq = library('gnunetpq', | ||
11 | libgnunetpq_src, | ||
12 | soversion: '4', | ||
13 | version: '4.0.0', | ||
14 | dependencies: [libgnunetutil_dep, pq_dep], | ||
15 | include_directories: [incdir, configuration_inc], | ||
16 | install: true, | ||
17 | install_dir: get_option('libdir')) | ||
18 | libgnunetpq_dep = declare_dependency(link_with : libgnunetpq) | ||
19 | |||
20 | testpq = executable ('test_pq', | ||
21 | ['test_pq.c'], | ||
22 | dependencies: [libgnunetutil_dep, | ||
23 | pq_dep, | ||
24 | libgnunetpq_dep], | ||
25 | include_directories: [incdir, configuration_inc], | ||
26 | build_by_default: false, | ||
27 | install: false) | ||
28 | test('test_pq', testpq, | ||
29 | workdir: meson.current_build_dir(), | ||
30 | suite: ['pq']) | ||
31 | |||
32 | |||