]> git.proxmox.com Git - mirror_lxc.git/blob - src/lxc/meson.build
meson: Add remaining scripts
[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 'lsm/selinux.c',
40 'storage/btrfs.c',
41 'storage/btrfs.h',
42 'storage/dir.c',
43 'storage/dir.h',
44 'storage/loop.c',
45 'storage/loop.h',
46 'storage/lvm.c',
47 'storage/lvm.h',
48 'storage/nbd.c',
49 'storage/nbd.h',
50 'storage/overlay.c',
51 'storage/overlay.h',
52 'storage/rbd.c',
53 'storage/rbd.h',
54 'storage/rsync.c',
55 'storage/rsync.h',
56 'storage/storage.c',
57 'storage/storage.h',
58 'storage/storage_utils.c',
59 'storage/storage_utils.h',
60 'storage/zfs.c',
61 'storage/zfs.h',
62 'af_unix.c',
63 'af_unix.h',
64 'api_extensions.h',
65 'attach.c',
66 'attach.h',
67 'attach_options.h',
68 'caps.c',
69 'caps.h',
70 'commands.c',
71 'commands.h',
72 'commands_utils.c',
73 'commands_utils.h',
74 'compiler.h',
75 'conf.c',
76 'conf.h',
77 'confile.c',
78 'confile.h',
79 'confile_utils.c',
80 'confile_utils.h',
81 'criu.c',
82 'criu.h',
83 'error.c',
84 'error.h',
85 'error_utils.h',
86 'execute.c',
87 'file_utils.c',
88 'file_utils.h',
89 'freezer.c',
90 'hlist.h',
91 'initutils.c',
92 'initutils.h',
93 'list.h',
94 'log.c',
95 'log.h',
96 'lxc.h',
97 'lxccontainer.c',
98 'lxccontainer.h',
99 'lxclock.c',
100 'lxclock.h',
101 'lxcseccomp.h',
102 'macro.h',
103 'mainloop.c',
104 'mainloop.h',
105 'memory_utils.h',
106 'monitor.c',
107 'monitor.h',
108 'mount_utils.c',
109 'mount_utils.h',
110 'namespace.c',
111 'namespace.h',
112 'network.c',
113 'network.h',
114 'nl.c',
115 'nl.h',
116 'parse.c',
117 'parse.h',
118 'process_utils.c',
119 'process_utils.h',
120 'rexec.c',
121 'rexec.h',
122 'ringbuf.c',
123 'ringbuf.h',
124 'rtnl.c',
125 'rtnl.h',
126 'seccomp.c',
127 'start.c',
128 'start.h',
129 'state.c',
130 'state.h',
131 'string_utils.c',
132 'string_utils.h',
133 'sync.c',
134 'sync.h',
135 'syscall_numbers.h',
136 'syscall_wrappers.h',
137 'terminal.c',
138 'terminal.h',
139 'utils.c',
140 'utils.h',
141 'uuid.c',
142 'uuid.h')
143
144 liblxc_static = static_library(
145 'lxc_static',
146 liblxc_sources + include_sources + netns_ifaddrs_sources,
147 install: false,
148 include_directories: liblxc_includes,
149 dependencies: [threads],
150 c_args: '-fvisibility=default')
151
152 lxc_functions = configure_file(
153 configuration: conf,
154 input: 'lxc.functions.in',
155 output: 'lxc.functions',
156 install: true,
157 install_dir: lxcdatadir)