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 04551274746038b83f073035b6865774743f3801
Author: dimmus <dmitri.chudi...@gmail.com>
AuthorDate: Mon Oct 7 14:28:19 2024 +0500

    meson: remove all implicit comparing to 'true'
---
 header_checks/meson.build                     | 12 ++++++------
 services/dbus/meson.build                     |  2 +-
 services/systemd/meson.build                  |  2 +-
 src/bin/edje/meson.build                      |  2 +-
 src/examples/ecore/meson.build                |  2 +-
 src/generic/evas/gst/meson.build              |  2 +-
 src/generic/evas/meson.build                  |  2 +-
 src/lib/ecore/meson.build                     |  8 ++++----
 src/lib/ecore_audio/meson.build               |  2 +-
 src/lib/ecore_con/meson.build                 |  6 +++---
 src/lib/ecore_file/meson.build                |  6 +++---
 src/lib/ecore_win32/meson.build               |  2 +-
 src/lib/ecore_x/meson.build                   |  2 +-
 src/lib/ector/software/meson.build            |  2 +-
 src/lib/eina/meson.build                      | 14 +++++++-------
 src/lib/eio/meson.build                       |  8 ++++----
 src/lib/elementary/meson.build                |  2 +-
 src/lib/emotion/meson.build                   |  2 +-
 src/lib/evas/common/meson.build               |  4 ++--
 src/lib/evas/meson.build                      |  2 +-
 src/modules/ecore_buffer/meson.build          |  4 ++--
 src/modules/ecore_buffer/x11_dri3/meson.build |  2 +-
 src/modules/emotion/meson.build               |  2 +-
 src/modules/evas/engines/meson.build          |  2 +-
 src/static_libs/draw/meson.build              |  2 +-
 25 files changed, 48 insertions(+), 48 deletions(-)

diff --git a/header_checks/meson.build b/header_checks/meson.build
index 5f504c051b..d9360fcc54 100644
--- a/header_checks/meson.build
+++ b/header_checks/meson.build
@@ -159,7 +159,7 @@ m = cc.find_library('m')
 dl = cc.find_library('dl', required: false)
 rt = cc.find_library('rt', required: false)
 
-if sys_sun == true
+if sys_sun
   malloc = cc.find_library('malloc', required: true)
   socket = cc.find_library('socket', required: true)
 endif
@@ -183,7 +183,7 @@ foreach function : function_checks
   if function.length() > 2
     foreach library : function[2]
       lib = cc.find_library(library, required : false)
-      if lib.found() == true
+      if lib.found()
         dependencies += lib
       endif
     endforeach
@@ -214,7 +214,7 @@ if sys_linux and config_h.has('HAVE_LISTXATTR') and config_h.has('HAVE_SETXATTR'
 endif
 
 regexp = []
-if sys_windows == true
+if sys_windows
    regexp = cc.find_library('regex',
                             has_headers: ['regex.h'],
                             required: true)
@@ -239,17 +239,17 @@ if jpeg.found() == false
   jpeg = cc.find_library('jpeg')
 endif
 
-if sys_bsd == true
+if sys_bsd
   config_h.set('HAVE_NOTIFY_KEVENT', '1')
 endif
 
-if sys_osx == true
+if sys_osx
   config_h.set('HAVE_NOTIFY_COCOA', '1')
 endif
 config_h.set('SIZEOF_INT', cc.sizeof('int'))
 config_h.set('SIZEOF_LONG', cc.sizeof('long'))
 
-if sys_windows == true
+if sys_windows
   config_h.set('HAVE_NOTIFY_WIN32', '1')
   config_h.set10('HAVE_DDRAW_H', true)
 endif
diff --git a/services/dbus/meson.build b/services/dbus/meson.build
index 29fe392411..0ecd4608bf 100644
--- a/services/dbus/meson.build
+++ b/services/dbus/meson.build
@@ -5,7 +5,7 @@ org_enlightenment_ethumb_service_config = configuration_data()
 org_enlightenment_ethumb_service_config.set('prefix', dir_prefix)
 
 systemd_dbus_prefix = '# '
-if get_option('systemd') == true
+if get_option('systemd')
   systemd_dbus_prefix = ''
 endif
 org_enlightenment_ethumb_service_config.set('systemd_dbus_prefix',
diff --git a/services/systemd/meson.build b/services/systemd/meson.build
index e6a8c4cfe7..a2d54682d2 100644
--- a/services/systemd/meson.build
+++ b/services/systemd/meson.build
@@ -1,4 +1,4 @@
-if get_option('systemd') == true
+if get_option('systemd')
   sys_dep = dependency('systemd', required: false)
   if sys_dep.found()
     sys_dir = sys_dep.get_pkgconfig_variable('systemduserunitdir')
diff --git a/src/bin/edje/meson.build b/src/bin/edje/meson.build
index 4d2a164dde..9bc30b35bf 100644
--- a/src/bin/edje/meson.build
+++ b/src/bin/edje/meson.build
@@ -42,7 +42,7 @@ if meson.is_cross_build()
   edje_cc_exe = [_edje_cc]
   edje_depends = []
 else
-  if sys_windows == true
+  if sys_windows
     edje_cc_exe = [edje_cc]
   else
     edje_cc_exe = [env, asan_option, 'EFL_RUN_IN_TREE=1', edje_cc]
diff --git a/src/examples/ecore/meson.build b/src/examples/ecore/meson.build
index 37430ae26a..5f2ca12b8e 100644
--- a/src/examples/ecore/meson.build
+++ b/src/examples/ecore/meson.build
@@ -22,7 +22,7 @@ foreach example : examples
   executable(example, example + '.c', dependencies: [eina, ecore, ecore_file])
 endforeach
 
-if get_option('gstreamer') == true
+if get_option('gstreamer')
   examples = [
     'ecore_pipe_gstreamer_example',
   ]
diff --git a/src/generic/evas/gst/meson.build b/src/generic/evas/gst/meson.build
index c324ef4702..3531db108b 100644
--- a/src/generic/evas/gst/meson.build
+++ b/src/generic/evas/gst/meson.build
@@ -3,7 +3,7 @@ generic_src = files([
 ])
 
 generic_deps = []
-if get_option('gstreamer') == true
+if get_option('gstreamer')
   generic_deps += dependency('gstreamer-1.0')
 endif
 generic_support = ['264','3g2','3gp','3gp2','3gpp','3gpp2','3p2','asf','avi','bdm','bdmv','clpi','cpi','dv','fla','flv','m1v','m2t','m2v','m4v','mkv','mov','mp2','mp2ts','mp4','mpe','mpeg','mpg','mpl','mpls','mts','mxf','nut','nuv','ogg','ogm','ogv','qt','rm','rmj','rmm','rms','rmx','rmvb','rv','swf','ts','webm','weba','wmv']
diff --git a/src/generic/evas/meson.build b/src/generic/evas/meson.build
index 50bd0d0231..e09b7c52e5 100644
--- a/src/generic/evas/meson.build
+++ b/src/generic/evas/meson.build
@@ -1,6 +1,6 @@
 generic_loaders = [ 'pdf', 'ps', 'raw', 'rsvg', 'xcf' ]
 
-if get_option('gstreamer') == true
+if get_option('gstreamer')
   generic_loaders += [ 'gst' ]
 endif
 
diff --git a/src/lib/ecore/meson.build b/src/lib/ecore/meson.build
index 175e830d1e..2eb5ee868f 100644
--- a/src/lib/ecore/meson.build
+++ b/src/lib/ecore/meson.build
@@ -2,7 +2,7 @@ ecore_deps = []
 ecore_pub_deps = [eina, eo, efl]
 ecore_ext_deps = [intl, m, buildsystem]
 
-if sys_sun == true
+if sys_sun
    ecore_deps += [malloc]
 endif
 
@@ -175,21 +175,21 @@ ecore_src = files([
   'efl_core_command_line.c',
 ])
 
-if sys_windows == true
+if sys_windows
   #nothing for now ... needs testing
   ecore_src += files(['ecore_exe_win32.c'])
 else
   ecore_src += files(['ecore_signal.c', 'ecore_exe_posix.c'])
 endif
 
-if get_option('glib') == true and sys_windows == false
+if get_option('glib') and sys_windows == false
   ecore_ext_deps += dependency('glib-2.0')
   ecore_ext_deps += dependency('gthread-2.0')
   config_h.set('GLIB_INTEGRATION_ALWAYS', '1')
   config_h.set('HAVE_GLIB', '1')
 endif
 
-if get_option('g-mainloop') == true
+if get_option('g-mainloop')
   if get_option('glib') == false
     error('g-mainloop enabled by glib not. Please enable with -Dglib=true')
   else
diff --git a/src/lib/ecore_audio/meson.build b/src/lib/ecore_audio/meson.build
index f2b2bb6ea9..559e45defe 100644
--- a/src/lib/ecore_audio/meson.build
+++ b/src/lib/ecore_audio/meson.build
@@ -72,7 +72,7 @@ if get_option('pulseaudio')
   config_h.set('HAVE_PULSE', '1')
 endif
 
-if sys_windows == true
+if sys_windows
   ecore_audio_src += files([
     'ecore_audio_obj_out_wasapi.c'
   ])
diff --git a/src/lib/ecore_con/meson.build b/src/lib/ecore_con/meson.build
index cbe42364ae..b1d15b9a1d 100644
--- a/src/lib/ecore_con/meson.build
+++ b/src/lib/ecore_con/meson.build
@@ -1,7 +1,7 @@
 ecore_con_deps = [buildsystem, eldbus, eet]
 ecore_con_pub_deps = [eina, eo, efl, ecore]
 ecore_con_ext_deps = [buildsystem_simple, dl, http_parser]
-if sys_windows == true
+if sys_windows
   ipv6 = true
 else
   ipv6 = cc.compiles('''
@@ -45,7 +45,7 @@ pub_eo_files = [
   'efl_net_ip_address.eo',
 ]
 
-if sys_windows == true
+if sys_windows
 pub_eo_files += [
   'efl_net_socket_windows.eo',
   'efl_net_dialer_windows.eo',
@@ -150,7 +150,7 @@ ecore_con_src = files([
   'efl_net_ip_address.c'
 ])
 
-if sys_windows == true
+if sys_windows
   ecore_con_src += files([
     'efl_net_socket_windows.c',
     'efl_net_dialer_windows.c',
diff --git a/src/lib/ecore_file/meson.build b/src/lib/ecore_file/meson.build
index 659ecd4851..9063050c62 100644
--- a/src/lib/ecore_file/meson.build
+++ b/src/lib/ecore_file/meson.build
@@ -10,11 +10,11 @@ ecore_file_src = files([
   'ecore_file_private.h'
 ])
 
-if sys_windows == true
+if sys_windows
   ecore_file_src += files([ 'ecore_file_monitor_win32.c'])
-elif sys_linux == true
+elif sys_linux
   ecore_file_src += files([ 'ecore_file_monitor_inotify.c'])
-elif sys_bsd == true
+elif sys_bsd
   ecore_file_src += files([ 'ecore_file_monitor_kevent.c'])
 else
   ecore_file_src += files([ 'ecore_file_monitor_poll.c'])
diff --git a/src/lib/ecore_win32/meson.build b/src/lib/ecore_win32/meson.build
index b105dbae91..9cd3d68c2c 100644
--- a/src/lib/ecore_win32/meson.build
+++ b/src/lib/ecore_win32/meson.build
@@ -3,7 +3,7 @@ ecore_win32_pub_deps = []
 ecore_win32_ext_deps = []
 ecore_win32_src = []
 
-if sys_windows == true
+if sys_windows
   ecore_win32_deps += [evil, eina, ecore, ecore_input]
   ecore_win32_pub_deps += []
   ecore_win32_ext_deps += []
diff --git a/src/lib/ecore_x/meson.build b/src/lib/ecore_x/meson.build
index c62ec4df99..1f7863bcaf 100644
--- a/src/lib/ecore_x/meson.build
+++ b/src/lib/ecore_x/meson.build
@@ -101,7 +101,7 @@ int main () {
 }
     ''',
       dependencies : [x_lib, x11]
-    ) == true
+    )
     config_h.set('ECORE_'+ecore_x_check[0].to_upper(), '1')
   else
     error('extension '+ecore_x_check[0]+' not found for X11')
diff --git a/src/lib/ector/software/meson.build b/src/lib/ector/software/meson.build
index 88345196ec..584d9d1d03 100644
--- a/src/lib/ector/software/meson.build
+++ b/src/lib/ector/software/meson.build
@@ -38,7 +38,7 @@ foreach eo_file : pub_eo_files
 endforeach
 
 
-if cpu_sse3 == true
+if cpu_sse3
   ector_opt = static_library('ector_opt',
     sources: pub_eo_file_target + [ 'ector_software_gradient_sse3.c' ],
     dependencies: ector_pub_deps + [triangulator, freetype, draw, m] + ector_deps,
diff --git a/src/lib/eina/meson.build b/src/lib/eina/meson.build
index 8d2aefc92f..37839ef020 100644
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -3,11 +3,11 @@ eina_pub_deps = [thread_dep, m]
 eina_pc_deps = [m, rt, dl, thread_dep] #special case, this array is taken to drag in external deps to efl-one
 eina_ext_deps = eina_pc_deps
 
-if sys_windows == true
+if sys_windows
    eina_pub_deps += [evil]
 endif
 
-if sys_sun == true
+if sys_sun
    eina_deps += [socket]
 endif
 
@@ -201,7 +201,7 @@ eina_src = files([
 'eina_sha.c',
 ]) + eina_mp_sources
 
-if sys_windows == true
+if sys_windows
   eina_src += files('eina_file_win32.c', 'eina_win32_dllmain.c', 'eina_thread_win32.c')
 else
   eina_src += files('eina_file_posix.c', 'eina_thread_posix.c')
@@ -272,7 +272,7 @@ if default_mempool
    eina_config.set('EINA_DEFAULT_MEMPOOL', '1')
 endif
 
-if get_option('systemd') == true
+if get_option('systemd')
   config_h.set('HAVE_SYSTEMD', '1')
 endif
 
@@ -285,7 +285,7 @@ if cc.has_header_symbol('pthread.h', 'pthread_barrier_init')
    eina_config.set('EINA_HAVE_PTHREAD_BARRIER', '1')
 endif
 
-if sys_linux == true
+if sys_linux
    pthread_np_header_file = 'pthread.h'
    pthread_setname_np_api = 'pthread_setname_np'
    pthread_args = '-D_GNU_SOURCE'
@@ -334,7 +334,7 @@ if cc.has_header_symbol('pthread.h', 'pthread_spin_init')
    eina_config.set('EINA_HAVE_POSIX_SPINLOCK', '1')
 endif
 
-if sys_osx == true
+if sys_osx
    if cc.has_header_symbol('libkern/OSAtomic.h', 'OSSpinLockTry')
      eina_config.set('EINA_HAVE_OSX_SPINLOCK', 1)
    endif
@@ -372,7 +372,7 @@ execinfo = cc.find_library('execinfo', required: false)
 eina_ext_deps += [execinfo]
 
 eina_c_args = [package_c_args, '-DEINA_BUILD']
-if sys_windows == true
+if sys_windows
    bcrypt = cc.find_library('bcrypt', required: true)
    eina_ext_deps += [bcrypt]
    if iconv.found()
diff --git a/src/lib/eio/meson.build b/src/lib/eio/meson.build
index 4f672b5fd2..402e1d9fa0 100644
--- a/src/lib/eio/meson.build
+++ b/src/lib/eio/meson.build
@@ -52,14 +52,14 @@ eio_src = files([
 
 linker_args = []
 
-if sys_windows == true
+if sys_windows
   eio_src += files(['eio_monitor_win32.c'])
-elif sys_osx == true
+elif sys_osx
   eio_src += files(['eio_monitor_cocoa.c'])
   linker_args = [['-framework', 'CoreServices']]
-elif sys_linux == true
+elif sys_linux
   eio_src += files(['eio_monitor_inotify.c'])
-elif sys_bsd == true
+elif sys_bsd
   eio_src += files(['eio_monitor_kevent.c'])
 endif
 
diff --git a/src/lib/elementary/meson.build b/src/lib/elementary/meson.build
index f91f57efd9..f19ae9bbbf 100644
--- a/src/lib/elementary/meson.build
+++ b/src/lib/elementary/meson.build
@@ -1002,7 +1002,7 @@ if get_option('cocoa')
   elementary_deps += ecore_cocoa
 endif
 
-if sys_windows == true
+if sys_windows
   config_h.set('HAVE_ELEMENTARY_WIN32', '1')
   elementary_deps += ecore_win32
 endif
diff --git a/src/lib/emotion/meson.build b/src/lib/emotion/meson.build
index 19764dafa5..412ff8369e 100644
--- a/src/lib/emotion/meson.build
+++ b/src/lib/emotion/meson.build
@@ -43,7 +43,7 @@ emotion_deps = [ecore, eet, evas, eio, emile, buildsystem]
 emotion_pub_deps = [eina, eo, efl]
 emotion_ext_deps = [buildsystem_simple]
 
-if get_option('eeze') == true
+if get_option('eeze')
   emotion_deps += [eeze]
 endif
 
diff --git a/src/lib/evas/common/meson.build b/src/lib/evas/common/meson.build
index e2df18bf06..d6f2bfb3d8 100644
--- a/src/lib/evas/common/meson.build
+++ b/src/lib/evas/common/meson.build
@@ -82,13 +82,13 @@ evas_src += files([
   'region.h'
 ])
 
-if cpu_sse3 == true
+if cpu_sse3
   evas_src_opt +=  files([
     'evas_op_blend/op_blend_master_sse3.c'
   ])
 endif
 
-if cpu_neon == true and cpu_neon_intrinsics == false
+if cpu_neon and cpu_neon_intrinsics == false
   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 1ee256ad73..b9321ccd43 100644
--- a/src/lib/evas/meson.build
+++ b/src/lib/evas/meson.build
@@ -239,7 +239,7 @@ endif
 evas_link = [ ]
 evas_pub_deps = [eina, ecore, ector, emile]
 
-if  cpu_sse3 == true or cpu_neon == true and cpu_neon_intrinsics == false
+if  cpu_sse3 or cpu_neon and cpu_neon_intrinsics == false
   evas_opt = static_library('evas_opt',
     sources: [evas_src_opt, pub_eo_file_target, priv_eo_file_target],
     include_directories:
diff --git a/src/modules/ecore_buffer/meson.build b/src/modules/ecore_buffer/meson.build
index 1982c7bcd7..a7ec53bb65 100644
--- a/src/modules/ecore_buffer/meson.build
+++ b/src/modules/ecore_buffer/meson.build
@@ -5,7 +5,7 @@ subdir('shm')
 #common dri packages
 libtbm = dependency('libtbm', required: false)
 
-if libtbm.found() == true
+if libtbm.found()
   libdri2 = dependency('libdri2', required: false)
   if libdri2.found()
     subdir('x11_dri2')
@@ -16,7 +16,7 @@ if libtbm.found() == true
   x11_xcb = dependency('x11_xcb', required: false)
   xcb_sync = dependency('xcb_sync', required: false)
   xcb_dri3 = dependency('xkb_dri3', required: false)
-  if xshmfence.found() == true and xcb.found() == true and x11_xcb.found() and xcb_sync.found() and xkb_dri3.found()
+  if xshmfence.found() and xcb.found() and x11_xcb.found() and xcb_sync.found() and xkb_dri3.found()
     subdir('x11_dri3')
   endif
 endif
diff --git a/src/modules/ecore_buffer/x11_dri3/meson.build b/src/modules/ecore_buffer/x11_dri3/meson.build
index cc665f4404..e9fdbd0beb 100644
--- a/src/modules/ecore_buffer/x11_dri3/meson.build
+++ b/src/modules/ecore_buffer/x11_dri3/meson.build
@@ -1,4 +1,4 @@
-if dependency('libtbm', required: false).found() == true and dependency('libdrm', required: false).found()
+if dependency('libtbm', required: false).found() and dependency('libdrm', required: false).found()
   ecore_buffer_x11_dri3_mod = shared_module('module',
     'ecore_buffer_x11_dri3.c',
     name_prefix: '',
diff --git a/src/modules/emotion/meson.build b/src/modules/emotion/meson.build
index 41c8830178..0da4739918 100644
--- a/src/modules/emotion/meson.build
+++ b/src/modules/emotion/meson.build
@@ -5,7 +5,7 @@ foreach emotion_loader : emotion_loaders
   generic_deps = []
   mod_install_dir = dir_lib / 'emotion/modules' / emotion_loader / version_name
 
-  if get_option('gstreamer') == true
+  if get_option('gstreamer')
     subdir(emotion_loader)
     module_files += mod_install_dir / 'lib'+emotion_loader+'.'+sys_mod_extension
     config_h.set('EMOTION_BUILD_'+emotion_loader.to_upper(), 1)
diff --git a/src/modules/evas/engines/meson.build b/src/modules/evas/engines/meson.build
index a316e45a54..131bb96afe 100644
--- a/src/modules/evas/engines/meson.build
+++ b/src/modules/evas/engines/meson.build
@@ -6,7 +6,7 @@ engines = [
  ['wayland_shm', ['wl']],
 ]
 
-if sys_windows == true
+if sys_windows
  engines += [
    ['software_ddraw', []],
    ['software_gdi', []],
diff --git a/src/static_libs/draw/meson.build b/src/static_libs/draw/meson.build
index 2497b5cafc..1afcb10b95 100644
--- a/src/static_libs/draw/meson.build
+++ b/src/static_libs/draw/meson.build
@@ -9,7 +9,7 @@ draw_src = [
 
 draw_opt_lib = [ ]
 
-if cpu_sse3 == true
+if cpu_sse3
   draw_opt = static_library('draw_opt',
     sources: [ 'draw_main_sse2.c' ],
     include_directories: config_dir + [include_directories('../../lib')],

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to