diff --git a/doc/ja/meson.build b/doc/ja/meson.build index 0992606b2..c7a644120 100644 --- a/doc/ja/meson.build +++ b/doc/ja/meson.build @@ -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'], ] diff --git a/doc/ko/meson.build b/doc/ko/meson.build index b6a43c57f..bd01f6088 100644 --- a/doc/ko/meson.build +++ b/doc/ko/meson.build @@ -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'], diff --git a/doc/meson.build b/doc/meson.build index 9a12140ee..af773975c 100644 --- a/doc/meson.build +++ b/doc/meson.build @@ -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'], ] diff --git a/meson.build b/meson.build index 1f229c22d..fd549b30f 100644 --- a/meson.build +++ b/meson.build @@ -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 ', 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 diff --git a/src/lxc/pam/meson.build b/src/lxc/pam/meson.build index 24abbe0ca..77f6154dd 100644 --- a/src/lxc/pam/meson.build +++ b/src/lxc/pam/meson.build @@ -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, diff --git a/src/lxc/tools/meson.build b/src/lxc/tools/meson.build index fbe186948..12deb24b1 100644 --- a/src/lxc/tools/meson.build +++ b/src/lxc/tools/meson.build @@ -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,