shared: conditionalize build of apparmor-util.c in meson
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user