Skip to content

Commit

Permalink
meson: refractor mconfig logic for selinux
Browse files Browse the repository at this point in the history
  • Loading branch information
WavyEbuilder committed Oct 27, 2024
1 parent 7d88201 commit 157a78a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ mconfig_data.set('DEFAULT_AUTO_RESTART', default_auto_restart)
mconfig_data.set('DEFAULT_START_TIMEOUT', default_start_timeout)
mconfig_data.set('DEFAULT_STOP_TIMEOUT', default_stop_timeout)
mconfig_data.set10('USE_INITGROUPS', use_initgroups)
mconfig_data.set10('SUPPORT_SELINUX', libselinux_dep.found())
if support_cgroups.auto() and platform == 'linux' or support_cgroups.enabled()
mconfig_data.set('SUPPORT_CGROUPS', '1')
endif
Expand All @@ -78,9 +79,6 @@ if use_utmpx.enabled() or (use_utmpx.auto() and compiler.has_header_symbol('utmp
else
mconfig_data.set('USE_UTMPX', '0')
endif
if support_selinux.auto() and libselinux_dep.found() and platform == 'linux' or support_selinux.enabled()
mconfig_data.set('SUPPORT_SELINUX', '1')
endif
configure_file(
input : 'build/mconfig.mesontemplate',
output : 'mconfig.h',
Expand Down

0 comments on commit 157a78a

Please sign in to comment.