]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/meson.build
78b873f24fa8be109c82601c29f55c04f11c26ea
[mirror_lxc.git] / src / lxc / meson.build
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 liblxcfs_attach_file = configure_file(
4 configuration: dummy_config_data,
5 input: 'attach_options.h',
6 output: 'attach_options.h',
7 install: true,
8 install_dir: lxcinclude
9 )
10
11 liblxcfs_header_file = configure_file(
12 configuration: dummy_config_data,
13 input: 'lxccontainer.h',
14 output: 'lxccontainer.h',
15 install: true,
16 install_dir: lxcinclude
17 )
18
19 liblxcfs_version_file = configure_file(
20 configuration: version_data,
21 input: 'version.h.in',
22 output: 'version.h',
23 install: true,
24 install_dir: lxcinclude
25 )
26
27 liblxc_sources = files(
28 'cgroups/cgfsng.c',
29 'cgroups/cgroup.c',
30 'cgroups/cgroup.h',
31 'cgroups/cgroup2_devices.c',
32 'cgroups/cgroup2_devices.h',
33 'cgroups/cgroup_utils.c',
34 'cgroups/cgroup_utils.h',
35 'lsm/apparmor.c',
36 'lsm/lsm.c',
37 'lsm/lsm.h',
38 'lsm/nop.c',
39 'storage/btrfs.c',
40 'storage/btrfs.h',
41 'storage/dir.c',
42 'storage/dir.h',
43 'storage/loop.c',
44 'storage/loop.h',
45 'storage/lvm.c',
46 'storage/lvm.h',
47 'storage/nbd.c',
48 'storage/nbd.h',
49 'storage/overlay.c',
50 'storage/overlay.h',
51 'storage/rbd.c',
52 'storage/rbd.h',
53 'storage/rsync.c',
54 'storage/rsync.h',
55 'storage/storage.c',
56 'storage/storage.h',
57 'storage/storage_utils.c',
58 'storage/storage_utils.h',
59 'storage/zfs.c',
60 'storage/zfs.h',
61 'af_unix.c',
62 'af_unix.h',
63 'api_extensions.h',
64 'attach.c',
65 'attach.h',
66 'attach_options.h',
67 'caps.c',
68 'caps.h',
69 'commands.c',
70 'commands.h',
71 'commands_utils.c',
72 'commands_utils.h',
73 'compiler.h',
74 'conf.c',
75 'conf.h',
76 'confile.c',
77 'confile.h',
78 'confile_utils.c',
79 'confile_utils.h',
80 'criu.c',
81 'criu.h',
82 'error.c',
83 'error.h',
84 'error_utils.h',
85 'execute.c',
86 'file_utils.c',
87 'file_utils.h',
88 'freezer.c',
89 'hlist.h',
90 'initutils.c',
91 'initutils.h',
92 'list.h',
93 'log.c',
94 'log.h',
95 'lxc.h',
96 'lxccontainer.c',
97 'lxccontainer.h',
98 'lxclock.c',
99 'lxclock.h',
100 'lxcseccomp.h',
101 'macro.h',
102 'mainloop.c',
103 'mainloop.h',
104 'memory_utils.h',
105 'monitor.c',
106 'monitor.h',
107 'mount_utils.c',
108 'mount_utils.h',
109 'namespace.c',
110 'namespace.h',
111 'network.c',
112 'network.h',
113 'nl.c',
114 'nl.h',
115 'parse.c',
116 'parse.h',
117 'process_utils.c',
118 'process_utils.h',
119 'rexec.c',
120 'rexec.h',
121 'ringbuf.c',
122 'ringbuf.h',
123 'rtnl.c',
124 'rtnl.h',
125 'start.c',
126 'start.h',
127 'state.c',
128 'state.h',
129 'string_utils.c',
130 'string_utils.h',
131 'sync.c',
132 'sync.h',
133 'syscall_numbers.h',
134 'syscall_wrappers.h',
135 'terminal.c',
136 'terminal.h',
137 'utils.c',
138 'utils.h',
139 'uuid.c',
140 'uuid.h')
141
142 if want_seccomp and libseccomp.found()
143 liblxc_sources += files('seccomp.c')
144 endif
145
146 if want_selinux and libselinux.found()
147 liblxc_sources += files('lsm/selinux.c')
148 endif
149
150 if sanitize == 'none'
151 liblxc_static = static_library(
152 'lxc_static',
153 liblxc_sources + include_sources + netns_ifaddrs_sources,
154 install: true,
155 include_directories: liblxc_includes,
156 dependencies: [threads],
157 c_args: '-fvisibility=default')
158 endif
159
160 lxc_functions = configure_file(
161 configuration: conf,
162 input: 'lxc.functions.in',
163 output: 'lxc.functions',
164 install: true,
165 install_dir: lxcdatadir)