This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch dev/dimmus/test
in repository efl.
View the commit online.
commit 6844192400b0162544258bce848775f445fd32e3
Author: dimmus <dmitri.chudi...@gmail.com>
AuthorDate: Mon Oct 7 14:38:35 2024 +0500
meson: change all implicit comparing with 'false' to 'not' usage
---
header_checks/meson.build | 8 ++++----
po/meson.build | 2 +-
src/bin/elementary/meson.build | 8 ++++----
src/bindings/meson.build | 4 ++--
src/generic/evas/meson.build | 2 +-
src/lib/ecore/meson.build | 4 ++--
src/lib/ecore_x/meson.build | 6 +++---
src/lib/eeze/meson.build | 12 ++++++------
src/lib/eina/meson.build | 4 ++--
src/lib/elementary/meson.build | 2 +-
src/lib/evas/common/meson.build | 2 +-
src/lib/evas/meson.build | 30 +++++++++++++++---------------
src/modules/ecore/meson.build | 2 +-
src/modules/ecore_evas/meson.build | 2 +-
src/modules/ecore_imf/meson.build | 4 ++--
src/modules/evas/image_loaders/meson.build | 2 +-
src/modules/evas/image_savers/meson.build | 2 +-
src/static_libs/vg_common/meson.build | 2 +-
18 files changed, 49 insertions(+), 49 deletions(-)
diff --git a/header_checks/meson.build b/header_checks/meson.build
index d9360fcc54..5180eb8c57 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -13,7 +13,7 @@ if get_option('native-arch-optimization')
endif
if check_native_header
- if cc.has_header(native_header) == false
+ if not cc.has_header(native_header)
error('Error, header '+native_header+' is required')
endif
@@ -218,11 +218,11 @@ if sys_windows
regexp = cc.find_library('regex',
has_headers: ['regex.h'],
required: true)
- if regexp.found() == false
+ if not regexp.found()
error('regex can not be found')
endif
else
- if cc.has_header_symbol('regex.h', 'regcomp') == false
+ if not cc.has_header_symbol('regex.h', 'regcomp')
error('regcomp can not be found')
endif
endif
@@ -235,7 +235,7 @@ config_h.set('VREV', '0')
#jpeg detection ... life is a bit more complex there
jpeg = dependency('libjpeg', required: false)
-if jpeg.found() == false
+if not jpeg.found()
jpeg = cc.find_library('jpeg')
endif
diff --git a/po/meson.build b/po/meson.build
index 5135bb66b9..a35c0768ea 100644
--- a/po/meson.build
+++ b/po/meson.build
@@ -14,7 +14,7 @@ if get_option('nls')
config_h.set('HAVE_GETTEXT', '1')
config_h.set('ENABLE_NLS', '1')
intl = cc.find_library('intl', required : false)
- if cc.compiles('#include <libintl.h>', dependencies : intl) == false
+ if not cc.compiles('#include <libintl.h>', dependencies : intl)
error('libintl.h not found')
endif
else
diff --git a/src/bin/elementary/meson.build b/src/bin/elementary/meson.build
index d9422c297f..c8e27041a6 100644
--- a/src/bin/elementary/meson.build
+++ b/src/bin/elementary/meson.build
@@ -167,11 +167,11 @@ elementary_test_src = [
]
link_args = []
-if sys_windows == false
+if not sys_windows
link_args += ['-rdynamic', '-fPIC']
package_c_args = package_c_args + ['-fPIC']
endif
-if sys_windows == false and sys_sun == false
+if not sys_windows and not sys_sun
link_args += ['-pie']
endif
@@ -199,7 +199,7 @@ elementary_config = executable('elementary_config',
link_args: link_args
)
-if sys_windows == false
+if not sys_windows
elementary_quicklaunch_src = [
'quicklaunch.c'
]
@@ -261,7 +261,7 @@ else
elm_prefs_cc_exe = [env, asan_option, 'EFL_RUN_IN_TREE=1', elm_prefs_cc.full_path()]
endif
-if sys_windows == false
+if not sys_windows
elementary_run_src = [
'run.c'
]
diff --git a/src/bindings/meson.build b/src/bindings/meson.build
index 466fa68478..609656d8ca 100644
--- a/src/bindings/meson.build
+++ b/src/bindings/meson.build
@@ -2,12 +2,12 @@
bindings = get_option('bindings')
bindings_order = ['lua', 'cxx', 'mono']
-if (get_option('dotnet') and not bindings.contains('mono'))
+if get_option('dotnet') and not bindings.contains('mono')
message('dotnet support requires the C# bindings')
bindings += ['mono']
endif
-if (bindings.contains('cxx') == false and bindings.contains('mono'))
+if not bindings.contains('cxx') and bindings.contains('mono')
subdirs = ['eina_cxx', 'eolian_cxx']
subdir('cxx/eina_cxx')
inc_dir = []
diff --git a/src/generic/evas/meson.build b/src/generic/evas/meson.build
index e09b7c52e5..a5a229805f 100644
--- a/src/generic/evas/meson.build
+++ b/src/generic/evas/meson.build
@@ -25,7 +25,7 @@ foreach loader : generic_loaders
generic_deps = []
generic_support = []
- if get_option('evas-loaders-disabler').contains(loader) == false
+ if not get_option('evas-loaders-disabler').contains(loader)
subdir(loader)
tmp = executable('evas_image_loader.'+loader,
diff --git a/src/lib/ecore/meson.build b/src/lib/ecore/meson.build
index 2eb5ee868f..d13a1017e6 100644
--- a/src/lib/ecore/meson.build
+++ b/src/lib/ecore/meson.build
@@ -182,7 +182,7 @@ else
ecore_src += files(['ecore_signal.c', 'ecore_exe_posix.c'])
endif
-if get_option('glib') and sys_windows == false
+if get_option('glib') and not sys_windows
ecore_ext_deps += dependency('glib-2.0')
ecore_ext_deps += dependency('gthread-2.0')
config_h.set('GLIB_INTEGRATION_ALWAYS', '1')
@@ -190,7 +190,7 @@ if get_option('glib') and sys_windows == false
endif
if get_option('g-mainloop')
- if get_option('glib') == false
+ if not get_option('glib')
error('g-mainloop enabled by glib not. Please enable with -Dglib=true')
else
config_h.set('USE_G_MAIN_LOOP', '1')
diff --git a/src/lib/ecore_x/meson.build b/src/lib/ecore_x/meson.build
index 1f7863bcaf..d5493d9844 100644
--- a/src/lib/ecore_x/meson.build
+++ b/src/lib/ecore_x/meson.build
@@ -72,17 +72,17 @@ if get_option('xinput22')
endif
x11 = dependency('x11', required: false)
-if x11.found() == false
+if not x11.found()
x11 = cc.find_library('X11', required: true)
endif
xcb = dependency('xcb', required: false)
-if xcb.found() == false
+if not xcb.found()
xcb = cc.find_library('xcb', required: true)
endif
x11_xcb = dependency('x11-xcb', required: false)
-if x11_xcb.found() == false
+if not x11_xcb.found()
x11_xcb = cc.find_library('X11-xcb', required: true)
endif
diff --git a/src/lib/eeze/meson.build b/src/lib/eeze/meson.build
index a9acaf1331..393d2cda6b 100644
--- a/src/lib/eeze/meson.build
+++ b/src/lib/eeze/meson.build
@@ -31,24 +31,24 @@ eeze_src = files(
if get_option('v4l2')
config_h.set('HAVE_V4L2', '1')
- if cc.has_header('linux/videodev2.h') == false
+ if not cc.has_header('linux/videodev2.h')
error('v4l2 headers not found')
endif
endif
if (get_option('libmount'))
libmount = dependency('mount')
- eeze_ext_deps += [libmount]
+ eeze_ext_deps += libmount
if libmount.version() == '2.19'
- eeze_src += files('eeze_disk_libmount.c')
+ eeze_src += files('eeze_disk_libmount.c')
elif libmount.version() < '2.19'
- eeze_src += files('eeze_disk_libmount_old.c')
+ eeze_src += files('eeze_disk_libmount_old.c')
elif libmount.version() > '2.19'
- eeze_src += files('eeze_disk_libmount_new.c')
+ eeze_src += files('eeze_disk_libmount_new.c')
endif
config_h.set('HAVE_EEZE_MOUNT', '1')
else
- eeze_src += files('eeze_disk_dummy.c')
+ eeze_src += files('eeze_disk_dummy.c')
endif
options_to_check = ['eject', 'mount', 'unmount']
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build
index 37839ef020..47a65a949f 100644
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -245,7 +245,7 @@ endif
if use_valgrind
valgrind = dependency('valgrind', required: false)
- if valgrind.found() == false
+ if not valgrind.found()
config_h.set('NVALGRIND', 1)
else
config_h.set('HAVE_VALGRIND', 1)
@@ -363,7 +363,7 @@ endif
#for the case that the iconv library is not part of libc but rather libiconv or smth. like that
iconv = dependency('iconv', required: false)
-if iconv.found() == false
+if not iconv.found()
iconv = cc.find_library('iconv', required: false)
endif
eina_ext_deps += [iconv]
diff --git a/src/lib/elementary/meson.build b/src/lib/elementary/meson.build
index f19ae9bbbf..32a026cd75 100644
--- a/src/lib/elementary/meson.build
+++ b/src/lib/elementary/meson.build
@@ -960,7 +960,7 @@ config_h.set_quoted('MODULES_PATH', dir_lib / 'modules')
config_h.set_quoted('ELEMENTARY_BASE_DIR', get_option('elementary-base-dir'))
config_h.set_quoted('ICON_DIR', dir_lib / 'icons')
-if sys_windows == false
+if not sys_windows
elm_options.set('ELM_UNIX', '1')
endif
diff --git a/src/lib/evas/common/meson.build b/src/lib/evas/common/meson.build
index d6f2bfb3d8..7ad5eaa305 100644
--- a/src/lib/evas/common/meson.build
+++ b/src/lib/evas/common/meson.build
@@ -88,7 +88,7 @@ if cpu_sse3
])
endif
-if cpu_neon and cpu_neon_intrinsics == false
+if cpu_neon and not cpu_neon_intrinsics
evas_src_opt += files([
'evas_op_copy/op_copy_neon.S'
])
diff --git a/src/lib/evas/meson.build b/src/lib/evas/meson.build
index b9321ccd43..12749da5ba 100644
--- a/src/lib/evas/meson.build
+++ b/src/lib/evas/meson.build
@@ -5,15 +5,15 @@
#
png = dependency('libpng')
-tiff = dependency('libtiff-4', required: get_option('evas-loaders-disabler').contains('tiff') == false)
+tiff = dependency('libtiff-4', required: not get_option('evas-loaders-disabler').contains('tiff'))
giflib = cc.find_library('gif')
-webp = dependency('libwebp', version: ['>=0.5.0'], required: get_option('evas-loaders-disabler').contains('webp') == false)
-webpdemux = dependency('libwebpdemux', version: ['>=0.5.0'], required: get_option('evas-loaders-disabler').contains('webp') == false)
-libopenjp2 = dependency('libopenjp2', required: get_option('evas-loaders-disabler').contains('jp2k') == false)
-libavif = dependency('libavif', required: get_option('evas-loaders-disabler').contains('avif') == false, version: '>= 0.8.2')
-heif= dependency('libheif', required: get_option('evas-loaders-disabler').contains('heif') == false)
-libjxl = dependency('libjxl', required: get_option('evas-loaders-disabler').contains('jxl') == false, version: '>= 0.6.2')
-libjxl_threads = dependency('libjxl_threads', required: get_option('evas-loaders-disabler').contains('jxl') == false, version: '>= 0.6.2')
+webp = dependency('libwebp', version: ['>=0.5.0'], required: not get_option('evas-loaders-disabler').contains('webp'))
+webpdemux = dependency('libwebpdemux', version: ['>=0.5.0'], required: not get_option('evas-loaders-disabler').contains('webp'))
+libopenjp2 = dependency('libopenjp2', required: not get_option('evas-loaders-disabler').contains('jp2k'))
+libavif = dependency('libavif', required: not get_option('evas-loaders-disabler').contains('avif'), version: '>= 0.8.2')
+heif= dependency('libheif', required: not get_option('evas-loaders-disabler').contains('heif'))
+libjxl = dependency('libjxl', required: not get_option('evas-loaders-disabler').contains('jxl'), version: '>= 0.6.2')
+libjxl_threads = dependency('libjxl_threads', required: not get_option('evas-loaders-disabler').contains('jxl'), version: '>= 0.6.2')
evas_image_loaders_file = [
['avif', 'shared', [libavif]],
@@ -49,7 +49,7 @@ evas_image_savers_file = [
['tiff', 'shared', [tiff]],
['webp', 'shared', [webp]],
]
-json = dependency('rlottie', required: get_option('evas-loaders-disabler').contains('json') == false)
+json = dependency('rlottie', required: not get_option('evas-loaders-disabler').contains('json'))
evas_vg_loaders_file = [
['eet', [eet]],
@@ -176,7 +176,7 @@ endif
if (get_option('hyphen'))
config_h.set('HAVE_HYPHEN', '1')
hyphen = dependency('hyphen', required : false)
- if hyphen.found() == false
+ if not hyphen.found()
evas_ext_none_static_deps += cc.find_library('hyphen')
endif
evas_ext_none_static_deps += hyphen
@@ -239,7 +239,7 @@ endif
evas_link = [ ]
evas_pub_deps = [eina, ecore, ector, emile]
-if cpu_sse3 or cpu_neon and cpu_neon_intrinsics == false
+if cpu_sse3 or cpu_neon and not cpu_neon_intrinsics
evas_opt = static_library('evas_opt',
sources: [evas_src_opt, pub_eo_file_target, priv_eo_file_target],
include_directories:
@@ -256,7 +256,7 @@ foreach loader_inst : evas_image_loaders_file
loader = loader_inst[0]
loader_type = loader_inst[1]
loader_deps = loader_inst[2]
- if get_option('evas-loaders-disabler').contains(loader) == false
+ if not get_option('evas-loaders-disabler').contains(loader)
if loader_type == 'static'
config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
file = meson.source_root() / 'src/modules/evas/image_loaders/' / loader / 'evas_image_load_'+loader+'.c'
@@ -275,7 +275,7 @@ foreach loader_inst : evas_image_savers_file
loader = loader_inst[0]
loader_type = loader_inst[1]
loader_deps = loader_inst[2]
- if get_option('evas-loaders-disabler').contains(loader) == false
+ if not get_option('evas-loaders-disabler').contains(loader)
if loader_type == 'static'
config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
file = meson.source_root() / 'src/modules/evas/image_savers' / loader / 'evas_image_save_'+loader+'.c'
@@ -294,7 +294,7 @@ foreach loader_inst : evas_vg_loaders_file
loader = loader_inst[0]
loader_deps = loader_inst[1]
- if (get_option('evas-loaders-disabler').contains(loader) == false)
+ if not get_option('evas-loaders-disabler').contains(loader)
file = meson.source_root() / 'src/modules/evas/vg_loaders' / loader / 'evas_vg_load_'+loader+'.c'
evas_static_list += [declare_dependency(
sources: file,
@@ -305,7 +305,7 @@ foreach loader_inst : evas_vg_loaders_file
endforeach
foreach loader : evas_vg_savers_file
- if (get_option('evas-loaders-disabler').contains(loader) == false)
+ if not get_option('evas-loaders-disabler').contains(loader)
file = meson.source_root() / 'src/modules/evas/vg_savers' / loader / 'evas_vg_save_'+loader+'.c'
evas_static_list += [declare_dependency(
sources: file,
diff --git a/src/modules/ecore/meson.build b/src/modules/ecore/meson.build
index d0439b6533..59532317f1 100644
--- a/src/modules/ecore/meson.build
+++ b/src/modules/ecore/meson.build
@@ -1,5 +1,5 @@
-if sys_windows == false and sys_osx == false
+if not sys_windows and not sys_osx
system_modules = [
'systemd',
diff --git a/src/modules/ecore_evas/meson.build b/src/modules/ecore_evas/meson.build
index 98849a203f..f4b48ebf67 100644
--- a/src/modules/ecore_evas/meson.build
+++ b/src/modules/ecore_evas/meson.build
@@ -7,7 +7,7 @@ engines = [
['x', ['x11']],
]
-if sys_windows == false
+if not sys_windows
engines += [['extn', []]]
else
engines += [['win32', []]]
diff --git a/src/modules/ecore_imf/meson.build b/src/modules/ecore_imf/meson.build
index db300afb12..2476caa295 100644
--- a/src/modules/ecore_imf/meson.build
+++ b/src/modules/ecore_imf/meson.build
@@ -14,9 +14,9 @@ foreach mod_name : mods
mod_src = []
mod_deps = []
- if loader_disabler.contains(mod_name) == false
+ if not loader_disabler.contains(mod_name)
if mod_name == 'ibus'
- if get_option('glib') == false
+ if not get_option('glib')
error('Need glib enabled if ibus is enabled')
endif
endif
diff --git a/src/modules/evas/image_loaders/meson.build b/src/modules/evas/image_loaders/meson.build
index 0942613732..8b6fe9c909 100644
--- a/src/modules/evas/image_loaders/meson.build
+++ b/src/modules/evas/image_loaders/meson.build
@@ -2,7 +2,7 @@ foreach loader_inst : evas_image_loaders_file
loader = loader_inst[0]
loader_type = loader_inst[1]
loader_deps = loader_inst[2]
- if get_option('evas-loaders-disabler').contains(loader) == false
+ if not get_option('evas-loaders-disabler').contains(loader)
if loader_type == 'shared'
config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
file = meson.source_root() / 'src/modules/evas/image_loaders' / loader / 'evas_image_load_'+loader+'.c'
diff --git a/src/modules/evas/image_savers/meson.build b/src/modules/evas/image_savers/meson.build
index a0b7168ab4..4ceec0eadb 100644
--- a/src/modules/evas/image_savers/meson.build
+++ b/src/modules/evas/image_savers/meson.build
@@ -2,7 +2,7 @@ foreach loader_inst : evas_image_savers_file
loader = loader_inst[0]
loader_type = loader_inst[1]
loader_deps = loader_inst[2]
- if get_option('evas-loaders-disabler').contains(loader) == false
+ if not get_option('evas-loaders-disabler').contains(loader)
if loader_type == 'shared'
config_h.set('BUILD_LOADER_'+loader.to_upper(), '1')
file = meson.source_root() / 'src/modules/evas/image_savers' / loader / 'evas_image_save_'+loader+'.c'
diff --git a/src/static_libs/vg_common/meson.build b/src/static_libs/vg_common/meson.build
index 9dfb47f897..2849e90015 100644
--- a/src/static_libs/vg_common/meson.build
+++ b/src/static_libs/vg_common/meson.build
@@ -5,7 +5,7 @@ vg_common_src = files([
'vg_common.h',
])
-if get_option('evas-loaders-disabler').contains('json') == false
+if not get_option('evas-loaders-disabler').contains('json')
config_h.set('BUILD_VG_LOADER_JSON', '1')
vg_common_src += files('vg_common_json.c')
endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.