[QBS] qtmain with non default name.
Philip A Reimer
antreimer at gmail.com
Thu Jan 29 18:59:39 CET 2015
To have qt4 and qt5 co-installable qtmain is being renamed to qt5main. This
works for qmake and cmake by replacing qtmain with qt5main in a couple
files.
grep -r "qt5main" /usr/i686-w64-mingw32/lib/qt
/usr/i686-w64-mingw32/lib/qt/mkspecs/features/win32/windows.prf:
isEqual(entryLib, -lqt5main): {
/usr/i686-w64-mingw32/lib/qt/mkspecs/features/create_cmake.prf:
CMAKE_WINMAIN_FILE_LOCATION_DEBUG = libqt5main$${QT_LIBINFIX}.a
/usr/i686-w64-mingw32/lib/qt/mkspecs/features/create_cmake.prf:
CMAKE_WINMAIN_FILE_LOCATION_RELEASE = libqt5main$${QT_LIBINFIX}.a
/usr/i686-w64-mingw32/lib/qt/mkspecs/win32-g++/qmake.conf:QMAKE_LIBS_QT_ENTRY
= -lmingw32 -lqt5main
I noticed that more of the libs are extracted from prl files would it be
possible to do the same with qtmain?
grep -r "qt5main" /usr/i686-w64-mingw32/lib/*.prl
/usr/i686-w64-mingw32/lib/qt5main.prl:QMAKE_PRL_TARGET = libqt5main
These are the relevent qbs source files
qt.gitorious.org/qt-labs/qbs/source/src/lib/qtprofilesetup/qtprofilesetup.cpp
qt.gitorious.org/qt-labs/qbs/source/src/lib/qtprofilesetup/qtmoduleinfo.cpp
Affected toolchains:
https://aur.archlinux.org/packages/mingw-w64-qt5-base
http://pkgs.fedoraproject.org/cgit/mingw-qt5-qtbase.git/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150129/62b05ce0/attachment.html>
More information about the Qbs
mailing list