aboutsummaryrefslogtreecommitdiff
path: root/src/topology/meson.build
blob: 3353698356c9f354ed0776480ad4b575e0cf375f (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
libgnunetfriends_src = ['friends.c']

gnunetdaemontopology_src = ['gnunet-daemon-topology.c']

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


if get_option('monolith') == false
  libgnunetfriends = library('gnunetfriends',
          libgnunetfriends_src,
          dependencies: libgnunetutil_dep,
          include_directories: [incdir, configuration_inc])
  libgnunetfriends_dep = declare_dependency(link_with : libgnunetfriends)
  executable ('gnunet-daemon-topology',
              gnunetdaemontopology_src,
              dependencies: [libgnunetfriends_dep,
                             libgnunetutil_dep,
                             libgnunetcore_dep,
                             libgnunetpeerinfo_dep,
                             libgnunetstatistics_dep,
                             libgnunettransport_dep,
                             libgnunetats_dep,
                             libgnunethello_dep],
              include_directories: [incdir, configuration_inc])
else
  foreach p : libgnunetfriends_src
    gnunet_src += 'topology/' + p
  endforeach
endif