aboutsummaryrefslogtreecommitdiff
path: root/src/identity/meson.build
blob: 9c1199d5f400fefc94e09982d5a195c3f95d3fc0 (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
libgnunetidentity_src = ['identity_api.c',
                         'identity_api_lookup.c',
                         'identity_api_suffix_lookup.c']

gnunetserviceidentity_src = ['gnunet-service-identity.c']

configure_file(input : 'identity.conf.in',
               output : 'identity.conf',
               configuration : cdata,
               install: true,
               install_dir: pkgcfgdir)


if get_option('monolith') == false
  libgnunetidentity = library('gnunetidentity',
          libgnunetidentity_src,
          dependencies: [libgnunetutil_dep, sodium_dep],
          include_directories: [incdir, configuration_inc])
  libgnunetidentity_dep = declare_dependency(link_with : libgnunetidentity)
  executable ('gnunet-service-identity',
              gnunetserviceidentity_src,
              dependencies: [libgnunetidentity_dep,
                             libgnunetutil_dep,
                             libgnunetstatistics_dep],
              include_directories: [incdir, configuration_inc])
else
  foreach p : libgnunetidentity_src + gnunetserviceidentity_src
    gnunet_src += 'identity/' + p
  endforeach
endif