aboutsummaryrefslogtreecommitdiff
path: root/src/regex/meson.build
blob: 31bb9c3e4edc1e97847900a65eef01aeddcdf54c (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
libgnunetregex_src = ['regex_api_announce.c',
                     'regex_api_search.c']
libgnunetregexblock_src = ['regex_block_lib.c']

gnunetserviceregex_src = ['gnunet-service-regex.c',
                          'regex_internal_dht.c',
                          'regex_internal.c']


if gnunet_monolith == false
  libgnunetregex = library('gnunetregex',
          libgnunetregex_src,
          dependencies: libgnunetutil_dep,
          include_directories: [incdir, configuration_inc])
  libgnunetregex_dep = declare_dependency(link_with : libgnunetregex)
  libgnunetregexblock = library('gnunetregexblock',
          libgnunetregexblock_src,
          dependencies: libgnunetutil_dep,
          include_directories: [incdir, configuration_inc])
  libgnunetregexblock_dep = declare_dependency(link_with : libgnunetregexblock)
  executable ('gnunet-service-regex',
              gnunetserviceregex_src,
              dependencies: [libgnunetregex_dep, libgnunetutil_dep,
                             libgnunetdht_dep,
                             libgnunetstatistics_dep,
                             libgnunetregex_dep,
                             libgnunetregexblock_dep],
              include_directories: [incdir, configuration_inc])
else
  foreach p : libgnunetregex_src + gnunetserviceregex_src
    gnunet_src += 'regex/' + p
  endforeach
endif