aboutsummaryrefslogtreecommitdiff
path: root/src/rest/meson.build
blob: f994e0a3e54828cf2b40c856649b92b68d5ebb47 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
libgnunetrest_src = ['rest.c']

gnunetservicerest_src = ['gnunet-rest-server.c']


if gnunet_monolith == false
  libgnunetrest = library('gnunetrest',
          libgnunetrest_src,
          dependencies: [libgnunetutil_dep, mhd_dep],
          include_directories: [incdir, configuration_inc])
  libgnunetrest_dep = declare_dependency(link_with : libgnunetrest)
  executable ('gnunet-rest-server',
              gnunetservicerest_src,
              dependencies: [libgnunetrest_dep, libgnunetutil_dep, mhd_dep],
              include_directories: [incdir, configuration_inc])
else
  foreach p : libgnunetrest_src + gnunetservicerest_src
    gnunet_src += 'rest/' + p
  endforeach
endif