[vlc-devel] [PATCH] contrib: qt: install libqtmain.a for docs/
Alexandre Janniaux
ajanni at videolabs.io
Mon Mar 1 15:52:59 UTC 2021
It allows the QtGL example to be built with the following commandline:
unidan at DESKTOP-A5FN7E8:~/vlc/doc/libvlc/QtGL$ env \
PKG_CONFIG_SYSROOT_DIR=/ \
PKG_CONFIG_LIBDIR=$(realpath ../../../build-win64/contrib/x86_64-w64-mingw32/lib/pkgconfig/) \
PKG_CONFIG_PATH=$(realpath ../../../build-win64/install-win64/home/unidan/vlc/build-win64/win64/_win32/lib/pkgconfig/) \
../../../build-win64/contrib/x86_64-w64-mingw32/lib/qt5/bin/qmake
where the path in install-win64 is made of the --prefix value forwarded
to the configure script and installed by
$(MAKE) DESTDIR=$(top_srcdir)/build-win64/install-win64
---
contrib/src/qt/rules.mak | 3 +++
1 file changed, 3 insertions(+)
diff --git a/contrib/src/qt/rules.mak b/contrib/src/qt/rules.mak
index 7977cef014..7ed62c14aa 100644
--- a/contrib/src/qt/rules.mak
+++ b/contrib/src/qt/rules.mak
@@ -129,4 +129,7 @@ endif
sed -i -e "s#\$\$QT_MODULE_INCLUDE_BASE#$(PREFIX)/lib/qt5/include#g" $(PREFIX)/lib/qt5/mkspecs/modules/qt_lib_bootstrap_private.pri
# Install a qmake with correct paths set
cd $< && $(MAKE) sub-qmake-qmake-aux-pro-install_subtargets install_mkspecs
+ # Install libqtmain for potentially other targets, eg. docs/ samples
+ $(MAKE) -C "$</src/winmain" all
+ $(MAKE) -C "$</src/winmain" install
touch $@
--
2.30.1
More information about the vlc-devel
mailing list