[vlc-commits] [Git][videolan/vlc][master] configure: remove usage of mingwex

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 18 11:21:43 UTC 2024



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2c2f154f by Steve Lhomme at 2024-10-18T11:06:22+00:00
configure: remove usage of mingwex

We don't use the mingw32 library anymore with modern mingw-w64.
We also don't use use opendir in Windows builds.

- - - - -


2 changed files:

- configure.ac
- meson.build


Changes:

=====================================
configure.ac
=====================================
@@ -713,13 +713,6 @@ dnl Check for broken versions of mingw-runtime compatability library
         CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=0"
     ])
 
-    dnl Check for the need to include the mingwex lib for mingw32
-    VLC_SAVE_FLAGS
-    AC_CHECK_LIB([mingwex], [opendir],
-        AC_CHECK_LIB([mingw32], [opendir],,
-            [VLC_ADD_LIBS([libvlccore],[-lmingwex])])
-    )
-    VLC_RESTORE_FLAGS
     ], [
         AC_MSG_RESULT([Not compiling with mingw])
     ])


=====================================
meson.build
=====================================
@@ -316,7 +316,6 @@ endif
 have_mingw = false
 have_win_desktop = false
 have_win_store = false
-mingw_libs = []
 libcom_cppflags = []
 
 if host_system == 'windows'
@@ -409,16 +408,6 @@ ucrt_version_test = '''
             vlc_conf_prefix = vlc_conf_prefix + '#define @0@ @1@\n'.format(d.get(0), d.get(1))
         endforeach
 
-        # Check for the need to link to the mingwex lib for MinGW-w64 32bit
-        mingwex_lib = cc.find_library('mingwex', required: false)
-
-        if mingwex_lib.found() and not cc.find_library('mingw32', required: false).found()
-            mingw_libs += mingwex_lib
-        endif
-
-        # TODO: enable when meson 0.63 is required
-        # add_project_dependencies(mingw_libs, language: ['c', 'cpp'])
-
         # fno-strict-aliasing is necessary for WRL and IID_PPV_ARGS to work safely
         # MSVC doesn't have this option but doesn't do pointer aliasing, so it
         # should work too



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c2f154fd39eac2a2e7f8d0669c05746c9e4afc0

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/2c2f154fd39eac2a2e7f8d0669c05746c9e4afc0
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list