about summary refs log tree commit diff
path: root/third_party/nix/src/libutil/meson.build
blob: 5fb3e4804bc3da12f4a704f2464865a96d9ced13 (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
58
59
60
61
62
63
64
65
src_inc += include_directories('.')

libutil_src = files(
    join_paths(meson.source_root(), 'src/libutil/affinity.cc'),
    join_paths(meson.source_root(), 'src/libutil/archive.cc'),
    join_paths(meson.source_root(), 'src/libutil/args.cc'),
    join_paths(meson.source_root(), 'src/libutil/compression.cc'),
    join_paths(meson.source_root(), 'src/libutil/config.cc'),
    join_paths(meson.source_root(), 'src/libutil/hash.cc'),
    join_paths(meson.source_root(), 'src/libutil/json.cc'),
    join_paths(meson.source_root(), 'src/libutil/serialise.cc'),
    join_paths(meson.source_root(), 'src/libutil/thread-pool.cc'),
    join_paths(meson.source_root(), 'src/libutil/util.cc'),
    join_paths(meson.source_root(), 'src/libutil/xml-writer.cc'))

libutil_headers = files(
    join_paths(meson.source_root(), 'src/libutil/affinity.hh'),
    join_paths(meson.source_root(), 'src/libutil/archive.hh'),
    join_paths(meson.source_root(), 'src/libutil/args.hh'),
    join_paths(meson.source_root(), 'src/libutil/compression.hh'),
    join_paths(meson.source_root(), 'src/libutil/config.hh'),
    join_paths(meson.source_root(), 'src/libutil/finally.hh'),
    join_paths(meson.source_root(), 'src/libutil/hash.hh'),
    join_paths(meson.source_root(), 'src/libutil/istringstream_nocopy.hh'),
    join_paths(meson.source_root(), 'src/libutil/json.hh'),
    join_paths(meson.source_root(), 'src/libutil/lazy.hh'),
    join_paths(meson.source_root(), 'src/libutil/lru-cache.hh'),
    join_paths(meson.source_root(), 'src/libutil/monitor-fd.hh'),
    join_paths(meson.source_root(), 'src/libutil/pool.hh'),
    join_paths(meson.source_root(), 'src/libutil/ref.hh'),
    join_paths(meson.source_root(), 'src/libutil/serialise.hh'),
    join_paths(meson.source_root(), 'src/libutil/sync.hh'),
    join_paths(meson.source_root(), 'src/libutil/thread-pool.hh'),
    join_paths(meson.source_root(), 'src/libutil/types.hh'),
    join_paths(meson.source_root(), 'src/libutil/util.hh'),
    join_paths(meson.source_root(), 'src/libutil/xml-writer.hh')
)

libutil_dep_list = [
    glog_dep,
    boost_dep,
    libbz2_dep,
    liblzma_dep,
    libbrotli_dep,
    openssl_dep,
    pthread_dep,
    libsodium_dep]

libutil_link_list = []
libutil_link_args = []

libutil_lib = library(
    'nixutil',
    install : true,
    install_mode : 'rwxr-xr-x',
    install_dir : libdir,
    include_directories : src_inc,
    sources : libutil_src,
    link_args : libutil_link_args,
    # cpp_args : [ '-E' ],
    dependencies : libutil_dep_list)

install_headers(
    libutil_headers,
    install_dir : join_paths(includedir, 'nix'))