aboutsummaryrefslogtreecommitdiff
path: root/src/service/regex/meson.build
blob: 3c25a51488de166e64e6cfd2fd79747ffcfc75df (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
libgnunetregex_src = ['regex_api_announce.c',
                     'regex_api_search.c']
gnunetserviceregex_src = ['gnunet-service-regex.c',
                          'regex_internal_dht.c',
                          'regex_internal.c']

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


if get_option('monolith')
  foreach p : libgnunetregex_src + gnunetserviceregex_src
    gnunet_src += 'regex/' + p
  endforeach
endif

libgnunetregex = library('gnunetregex',
        libgnunetregex_src,
        soversion: '3',
        version: '3.0.1',
        dependencies: libgnunetutil_dep,
        include_directories: [incdir, configuration_inc],
        install: true,
        install_dir: get_option('libdir'))
pkg.generate(libgnunetregex, url: 'https://www.gnunet.org',
             description : 'Provides API for accessing the regex service')
libgnunetregex_dep = declare_dependency(link_with : libgnunetregex)

executable ('gnunet-service-regex',
            gnunetserviceregex_src,
            dependencies: [libgnunetregex_dep, libgnunetutil_dep,
                           libgnunetdht_dep,
                           libgnunetstatistics_dep,
                           libgnunetregex_dep,
                           libgnunetregexblock_dep],
            include_directories: [incdir, configuration_inc],
            install: true,
            install_dir: get_option('libdir')/'gnunet'/'libexec')
executable ('gnunet-daemon-regexprofiler',
            ['gnunet-daemon-regexprofiler.c',
              'regex_internal.c',
              'regex_internal_dht.c',
              'regex_test_lib.c',
              'regex_test_graph.c',
              'regex_test_random.c'],
            dependencies: [libgnunetregex_dep, libgnunetutil_dep,
                           libgnunetdht_dep,
                           libgnunetstatistics_dep,
                           libgnunetregex_dep,
                           libgnunetregexblock_dep],
            include_directories: [incdir, configuration_inc],
            install: true,
            install_dir: get_option('libdir')/'gnunet'/'libexec')