aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/meson.build
blob: 286965b14ace63e81c31c3a609ab3352f4f67282 (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
libgnunetdatastore_src = ['datastore_api.c']

gnunetservicedatastore_src = ['gnunet-service-datastore.c']

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

if get_option('monolith') == false
  libgnunetdatastore = library('gnunetdatastore',
          libgnunetdatastore_src,
          dependencies: [libgnunetutil_dep,
                         libgnunetstatistics_dep,
                         libgnunetdatacache_dep],
          include_directories: [incdir, configuration_inc])
  libgnunetdatastore_dep = declare_dependency(link_with : libgnunetdatastore)
  executable ('gnunet-service-datastore',
              gnunetservicedatastore_src,
              dependencies: [libgnunetdatastore_dep,
                             libgnunetutil_dep,
                             libgnunetstatistics_dep,
                             libgnunetdatacache_dep],
              include_directories: [incdir, configuration_inc])
else
  foreach p : libgnunetdatastore_src + gnunetservicedatastore_src
    gnunet_src += 'datastore/' + p
  endforeach
endif