]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
meson: Simplify if statements
authorStéphane Graber <stgraber@ubuntu.com>
Mon, 30 May 2022 19:33:33 +0000 (15:33 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 30 May 2022 20:00:11 +0000 (16:00 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
doc/ja/meson.build
doc/ko/meson.build
doc/meson.build
meson.build
src/lxc/pam/meson.build
src/lxc/tools/meson.build

index 0992606b20183496efcf6e7c8a4b90e2cf0ba83d..c7a6441201d8cca5ccb873c6ec5490fff4626a75 100644 (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'],
         ]
index b6a43c57fea12944ca97c71f56695dcb64a024fc..bd01f60884d29f89d71adf0e81304b68b6f8a50c 100644 (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'],
index 9a12140eeefa86ee1e2f4830c385bd2821b0908e..af773975cbc9b040a2fa8b4f22719c84ce1b3818 100644 (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'],
         ]
index 1f229c22daefe533bf7edd076f498cc5f565b623..fd549b30f35b059d42dc6248676dab58a74d59bd 100644 (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
 
index 24abbe0ca569606dd5253037f6ab453367b815b2..77f6154dd5b962936d28b52b028807c561ef1357 100644 (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,
index fbe18694859a406e2cb455488e6192570878b188..12deb24b1e184156e913ecae0a6c830c34ebbd07 100644 (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,