aboutsummaryrefslogtreecommitdiff
path: root/src/lib/json/meson.build
blob: d4c3b4528476049a9287793efbed56f21f691243 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
libgnunetjson_src = ['json.c',
                    'json_generator.c',
                    'json_helper.c',
                    'json_mhd.c',
                    'json_pack.c']

libgnunetjson = library('gnunetjson',
        libgnunetjson_src,
        soversion: '0',
        version: '0.0.0',
        dependencies: [libgnunetutil_dep, json_dep, mhd_dep, zlib_dep],
        include_directories: [incdir, configuration_inc],
        install: true,
        install_dir: get_option('libdir'))
libgnunetjson_dep = declare_dependency(link_with : libgnunetjson)
pkg.generate(libgnunetjson, url: 'https://www.gnunet.org',
             description : 'Library for JSON de/serialization')

testjson = executable ('test_json',
          ['test_json.c'],
          dependencies: [libgnunetutil_dep,
                         json_dep,
                         libgnunetjson_dep],
          include_directories: [incdir, configuration_inc],
          build_by_default: false,
          install: false)
testjson_mhd = executable ('test_json_mhd',
          ['test_json_mhd.c'],
          dependencies: [libgnunetutil_dep,
                         json_dep,
                         mhd_dep,
                         curl_dep,
                         zlib_dep,
                         libgnunetjson_dep],
          include_directories: [incdir, configuration_inc],
          build_by_default: false,
          install: false)
test('test_json', testjson,
   workdir: meson.current_build_dir(),
   suite: ['json'])
test('test_json_mhd', testjson_mhd,
   workdir: meson.current_build_dir(),
   suite: ['json'])