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