meson: Simplify if statements

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2022-05-30 15:33:33 -04:00
parent 73fdf87ccb
commit fb15f1c0da
No known key found for this signature in database
GPG Key ID: C638974D64792D67
6 changed files with 12 additions and 12 deletions

View File

@ -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'],
]

View File

@ -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'],

View File

@ -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'],
]

View File

@ -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

View File

@ -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,

View File

@ -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,