From e2f82f61510ac8cea86a32d269df346e24c55c3a Mon Sep 17 00:00:00 2001 From: Mike Yuan Date: Tue, 12 Nov 2024 19:30:38 +0100 Subject: various: check meson feature flag early Prompted by https://github.com/systemd/systemd/pull/35110#discussion_r1835885340 --- src/hibernate-resume/meson.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/hibernate-resume/meson.build') 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', -- cgit v1.2.3