aboutsummaryrefslogtreecommitdiff
path: root/src/json/meson.build
blob: 98385163e399ab8c07abacc4b72e68c4817a7fad (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
libgnunetjson_src = ['json.c',
                    'json_generator.c',
                    'json_helper.c',
                    'json_mhd.c',
                    'json_pack.c']

if get_option('monolith')
  foreach p : libgnunetjson_src
    gnunet_src += 'json/' + p
  endforeach
  subdir_done()
endif

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')