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

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


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