about summary refs log tree commit diff
path: root/third_party/nix/src/libmain/meson.build
blob: ec510ee2e5b85c5aba6d2356fa62079661a1e461 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Nix lib store build file
#============================================================================




# src files
#============================================================================

src_inc += include_directories('.')

libmain_src = files(
    join_paths(meson.source_root(), 'src/libmain/common-args.cc'),
    join_paths(meson.source_root(), 'src/libmain/shared.cc'),
    join_paths(meson.source_root(), 'src/libmain/stack.cc'))

libmain_headers = files(
    join_paths(meson.source_root(), 'src/libmain/common-args.hh'),
    join_paths(meson.source_root(), 'src/libmain/shared.hh'))




# dependancies
#============================================================================

libmain_dep_list = [
    pthread_dep,
    openssl_dep,
    libsodium_dep]





# Link args
#============================================================================

libmain_link_list = [
    libutil_lib,
    libstore_lib
]

libmain_link_args = []




# compiler args
#============================================================================

libstore_cxx_args = []




# targets
#============================================================================




# build
#============================================================================

libmain_lib = library(
    'nixmain',
    install : true,
    install_mode : 'rwxr-xr-x',
    install_dir : libdir,
    include_directories : src_inc,
    link_with : libmain_link_list,
    sources : libmain_src,
    link_args : libmain_link_args,
    dependencies : libmain_dep_list)

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