aboutsummaryrefslogtreecommitdiff
path: root/src/hello/meson.build
blob: 04d5a6bef6cdc2da91fa3b3ac1819ca7cbc5bf49 (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
libgnunethello_src = ['hello.c',
                      'address.c',
                      'hello-ng.c',
                      'hello-uri.c']

gnunethello_src = ['gnunet-hello.c']


if get_option('monolith')
  foreach p : libgnunethello_src
    gnunet_src += 'hello/' + p
  endforeach
  subdir_done()
endif

libgnunethello = library('gnunethello',
        libgnunethello_src,
        soversion: '0',
        version: '0.1.0',
        dependencies: libgnunetutil_dep,
        include_directories: [incdir, configuration_inc],
        install: true,
        install_dir: get_option('libdir'))
libgnunethello_dep = declare_dependency(link_with : libgnunethello)
pkg.generate(libgnunethello, url: 'https://www.gnunet.org',
             description : 'Helper library for handling GNUnet HELLO messages')


executable ('gnunet-hello',
            gnunethello_src,
            dependencies: [libgnunethello_dep, libgnunetutil_dep],
            include_directories: [incdir, configuration_inc],
            install: true,
            install_dir: get_option('bindir'))