shared: conditionalize build of apparmor-util.c in meson

This commit is contained in:
Mike Yuan
2026-02-16 09:44:53 +01:00
parent 3ac675dff3
commit 89769fb4ad
2 changed files with 4 additions and 4 deletions
-3
View File
@@ -1,7 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-or-later */
#if HAVE_APPARMOR
#include <syslog.h>
#include "alloc-util.h"
@@ -67,4 +65,3 @@ bool mac_apparmor_use(void) {
return (cached_use = true);
}
#endif
+4 -1
View File
@@ -3,7 +3,6 @@
shared_sources = files(
'acl-util.c',
'acpi-fpdt.c',
'apparmor-util.c',
'ask-password-agent.c',
'ask-password-api.c',
'async.c',
@@ -279,6 +278,10 @@ if conf.get('HAVE_LIBIDN2') == 1
shared_sources += files('idn-util.c')
endif
if conf.get('HAVE_APPARMOR') == 1
shared_sources += files('apparmor-util.c')
endif
generate_ip_protocol_list = files('generate-ip-protocol-list.sh')
ip_protocol_list_txt = custom_target(
input : [generate_ip_protocol_list, ipproto_sources],