[vlc-commits] [Git][videolan/vlc][master] qt: tell linker to link dwmapi

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Sun Aug 27 12:36:22 UTC 2023



Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC


Commits:
dd341252 by Fatih Uzunoglu at 2023-08-27T11:55:56+00:00
qt: tell linker to link dwmapi

functions from this library are used directly,
but library is not directly linked.

It only worked because Qt links dwmapi itself.

- - - - -


2 changed files:

- modules/gui/qt/Makefile.am
- modules/gui/qt/meson.build


Changes:

=====================================
modules/gui/qt/Makefile.am
=====================================
@@ -70,7 +70,7 @@ vlc_qt_check_LDADD += $(QT5_WAYLAND_LIBS)
 endif
 if HAVE_WIN32
 libqt_plugin_la_CXXFLAGS += $(LIBCOMCXXFLAGS)
-libqt_plugin_la_LIBADD += $(LIBCOM) -lcomctl32 -luuid -ld3d11
+libqt_plugin_la_LIBADD += $(LIBCOM) -lcomctl32 -luuid -ld3d11 -ldwmapi
 endif
 if UPDATE_CHECK
 libqt_plugin_la_CPPFLAGS += -DUPDATE_CHECK


=====================================
modules/gui/qt/meson.build
=====================================
@@ -604,6 +604,7 @@ if qt5_dep.found()
 
     if host_system == 'windows'
         qt_extra_deps += [
+            cc.find_library('dwmapi'),
             cc.find_library('comctl32'),
             cc.find_library('d3d11'),
         ]



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/dd3412524767791993298ea5854c3d59a74592f0
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