]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/oom/meson.build
install-file: make fs_make_very_read_only() static
[thirdparty/systemd.git] / src / oom / meson.build
CommitLineData
db9ecf05 1# SPDX-License-Identifier: LGPL-2.1-or-later
61ff7397 2
f1b98127
ZJS
3systemd_oomd_sources = files(
4 'oomd-manager-bus.c',
f1b98127 5 'oomd-manager.c',
f1b98127 6 'oomd-util.c',
2f492a73
ZJS
7 'oomd.c',
8)
61ff7397 9
2c2c3daa
YW
10executables += [
11 libexec_template + {
12 'name' : 'systemd-oomd',
13 'dbus' : true,
14 'conditions' : ['ENABLE_OOMD'],
15 'sources' : systemd_oomd_sources,
16 'dependencies' : libatomic,
17 },
18 executable_template + {
19 'name' : 'oomctl',
20 'public' : true,
21 'conditions' : ['ENABLE_OOMD'],
22 'sources' : files('oomctl.c'),
23 },
130c87b1
YW
24 test_template + {
25 'sources' : files(
26 'test-oomd-util.c',
27 'oomd-util.c',
28 ),
29 'dependencies' : libatomic,
30 },
2c2c3daa 31]
5c616ecf 32
61ff7397 33if conf.get('ENABLE_OOMD') == 1
5c616ecf
AZ
34 install_data('org.freedesktop.oom1.conf',
35 install_dir : dbuspolicydir)
36
87e2baff
AZ
37 install_data('org.freedesktop.oom1.service',
38 install_dir : dbussystemservicedir)
39
225d08b8 40 if install_sysconfdir_samples
d7aa78c3 41 install_data('oomd.conf',
6495361c 42 install_dir : pkgconfigfiledir)
d7aa78c3 43 endif
61ff7397 44endif