mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-06 08:23:57 +00:00
meson: Simplify if statements
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
73fdf87ccb
commit
fb15f1c0da
@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
if want_mans == true
|
||||
if want_mans
|
||||
PAGES = [
|
||||
['lxc', '7'],
|
||||
['lxc.conf', '5'],
|
||||
@ -12,7 +12,7 @@ if want_mans == true
|
||||
['lxc-usernsexec', '1'],
|
||||
]
|
||||
|
||||
if want_tools == true
|
||||
if want_tools
|
||||
PAGES += [
|
||||
['lxc-attach', '1'],
|
||||
['lxc-autostart', '1'],
|
||||
@ -40,7 +40,7 @@ if want_mans == true
|
||||
]
|
||||
endif
|
||||
|
||||
if want_pam_cgroup == true
|
||||
if want_pam_cgroup
|
||||
PAGES += [
|
||||
['pam_cgfs', '8'],
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
if want_mans == true
|
||||
if want_mans
|
||||
PAGES = [
|
||||
['lxc', '7'],
|
||||
['lxc.conf', '5'],
|
||||
@ -11,7 +11,7 @@ if want_mans == true
|
||||
['lxc-usernsexec', '1'],
|
||||
]
|
||||
|
||||
if want_tools == true
|
||||
if want_tools
|
||||
PAGES += [
|
||||
['lxc-attach', '1'],
|
||||
['lxc-autostart', '1'],
|
||||
|
@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
if want_mans == true
|
||||
if want_mans
|
||||
PAGES = [
|
||||
['lxc', '7'],
|
||||
['lxc.conf', '5'],
|
||||
@ -12,7 +12,7 @@ if want_mans == true
|
||||
['lxc-usernsexec', '1'],
|
||||
]
|
||||
|
||||
if want_tools == true
|
||||
if want_tools
|
||||
PAGES += [
|
||||
['lxc-attach', '1'],
|
||||
['lxc-autostart', '1'],
|
||||
@ -40,7 +40,7 @@ if want_mans == true
|
||||
]
|
||||
endif
|
||||
|
||||
if want_pam_cgroup == true
|
||||
if want_pam_cgroup
|
||||
PAGES += [
|
||||
['pam_cgfs', '8'],
|
||||
]
|
||||
|
@ -186,7 +186,7 @@ add_project_arguments(cc.get_supported_arguments(possible_cc_flags), language: '
|
||||
|
||||
# Feature detection
|
||||
## I/O uring.
|
||||
if wants_io_uring == true
|
||||
if wants_io_uring
|
||||
liburing = dependency('liburing')
|
||||
if cc.has_function('io_uring_prep_poll_add', prefix: '#include <liburing.h>', dependencies: liburing) == false
|
||||
error('liburing version does not support IORING_POLL_ADD_MULTI')
|
||||
@ -584,7 +584,7 @@ liblxc_dependencies = [
|
||||
libapparmor,
|
||||
]
|
||||
|
||||
if wants_io_uring == true
|
||||
if wants_io_uring
|
||||
liblxc_dependencies += [liburing]
|
||||
endif
|
||||
|
||||
|
@ -16,7 +16,7 @@ pam_cgfs_sources = files(
|
||||
'../string_utils.c',
|
||||
'../string_utils.h') + include_sources
|
||||
|
||||
if want_pam_cgroup == true
|
||||
if want_pam_cgroup
|
||||
pam_cgfs = shared_module(
|
||||
'pam_cgfs',
|
||||
include_directories: pam_cgfs_includes,
|
||||
|
@ -175,7 +175,7 @@ tools_lxc_unshare_sources = files(
|
||||
tools_lxc_wait_sources = files(
|
||||
'lxc_wait.c') + tools_common_sources
|
||||
|
||||
if want_tools == true
|
||||
if want_tools
|
||||
public_programs += executable(
|
||||
'lxc-attach',
|
||||
tools_lxc_attach_sources,
|
||||
|
Loading…
Reference in New Issue
Block a user