summaryrefslogtreecommitdiffstats
path: root/src/hibernate-resume/meson.build
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-11-12 19:30:38 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2024-11-13 00:21:33 +0100
commite2f82f61510ac8cea86a32d269df346e24c55c3a (patch)
treeedd148a7b06208fe91b92d71fca48ebd8a32b5c4 /src/hibernate-resume/meson.build
parentrun0: when changing privileges to non-root, do not show superhero emoji (diff)
downloadsystemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.tar.xz
systemd-e2f82f61510ac8cea86a32d269df346e24c55c3a.zip
various: check meson feature flag early
Prompted by https://github.com/systemd/systemd/pull/35110#discussion_r1835885340
Diffstat (limited to 'src/hibernate-resume/meson.build')
-rw-r--r--src/hibernate-resume/meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hibernate-resume/meson.build b/src/hibernate-resume/meson.build
index 5bcd8e02a8..ce3430d2c3 100644
--- a/src/hibernate-resume/meson.build
+++ b/src/hibernate-resume/meson.build
@@ -1,9 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
+if conf.get('ENABLE_HIBERNATE') != 1
+ subdir_done()
+endif
+
executables += [
generator_template + {
'name' : 'systemd-hibernate-resume-generator',
- 'conditions' : ['ENABLE_HIBERNATE'],
'sources' : files(
'hibernate-resume-generator.c',
'hibernate-resume-config.c',
@@ -11,7 +14,6 @@ executables += [
},
libexec_template + {
'name' : 'systemd-hibernate-resume',
- 'conditions' : ['ENABLE_HIBERNATE'],
'sources' : files(
'hibernate-resume.c',
'hibernate-resume-config.c',