2023-06-13 17:48:39 +02:00
|
|
|
From 4004f593210513e2283c866c179389d565825ed3 Mon Sep 17 00:00:00 2001
|
2016-09-19 22:18:45 +02:00
|
|
|
From: Martchus <martchus@gmx.net>
|
|
|
|
Date: Sun, 18 Sep 2016 14:25:40 +0200
|
2022-09-09 19:02:45 +02:00
|
|
|
Subject: [PATCH 15/32] Rename qtmain to qt5main
|
2016-09-19 22:18:45 +02:00
|
|
|
|
|
|
|
Prevents conflict with mingw-w64-qt4 package
|
|
|
|
---
|
2018-05-23 20:56:49 +02:00
|
|
|
mkspecs/common/g++-win32.conf | 2 +-
|
2020-04-02 12:52:46 +02:00
|
|
|
mkspecs/features/create_cmake.prf | 8 ++++----
|
2019-06-14 19:09:09 +02:00
|
|
|
mkspecs/features/win32/windows.prf | 4 ++--
|
2016-09-19 22:18:45 +02:00
|
|
|
src/winmain/winmain.pro | 2 +-
|
2020-04-02 12:52:46 +02:00
|
|
|
4 files changed, 8 insertions(+), 8 deletions(-)
|
2016-09-19 22:18:45 +02:00
|
|
|
|
2018-05-23 20:56:49 +02:00
|
|
|
diff --git a/mkspecs/common/g++-win32.conf b/mkspecs/common/g++-win32.conf
|
2021-08-26 21:24:07 +02:00
|
|
|
index 793ff540a1..4f3bb7e764 100644
|
2018-05-23 20:56:49 +02:00
|
|
|
--- a/mkspecs/common/g++-win32.conf
|
|
|
|
+++ b/mkspecs/common/g++-win32.conf
|
2021-08-26 21:24:07 +02:00
|
|
|
@@ -83,7 +83,7 @@ QMAKE_LIBS_OPENGL = -lglu32 -lopengl32 -lgdi32 -luser32
|
2018-05-23 20:56:49 +02:00
|
|
|
QMAKE_LIBS_OPENGL_ES2 = -l$${LIBEGL_NAME} -l$${LIBGLESV2_NAME} -ld3d9 -ldxguid -lgdi32 -luser32
|
|
|
|
QMAKE_LIBS_OPENGL_ES2_DEBUG = -l$${LIBEGL_NAME} -l$${LIBGLESV2_NAME} -ld3d9 -ldxguid -lgdi32 -luser32
|
|
|
|
QMAKE_LIBS_COMPAT = -ladvapi32 -lshell32 -lcomdlg32 -luser32 -lgdi32 -lws2_32
|
|
|
|
-QMAKE_LIBS_QT_ENTRY = -lmingw32 -lqtmain
|
|
|
|
+QMAKE_LIBS_QT_ENTRY = -lmingw32 -lqt5main
|
|
|
|
|
|
|
|
QMAKE_IDL = $${CROSS_COMPILE}widl
|
|
|
|
QMAKE_LIB = $${CROSS_COMPILE}ar -rc
|
2016-09-19 22:18:45 +02:00
|
|
|
diff --git a/mkspecs/features/create_cmake.prf b/mkspecs/features/create_cmake.prf
|
2022-09-09 19:02:45 +02:00
|
|
|
index 64639f177d..6cd94f8058 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/mkspecs/features/create_cmake.prf
|
|
|
|
+++ b/mkspecs/features/create_cmake.prf
|
2022-09-09 19:02:45 +02:00
|
|
|
@@ -336,14 +336,14 @@ mac {
|
2020-04-02 12:52:46 +02:00
|
|
|
}
|
2016-09-19 22:18:45 +02:00
|
|
|
|
2020-04-02 12:52:46 +02:00
|
|
|
mingw {
|
2020-01-28 21:12:38 +01:00
|
|
|
- CMAKE_WINMAIN_FILE_LOCATION_DEBUG = libqtmain$${QT_LIBINFIX}$${debug_suffix}.a
|
2016-09-19 22:18:45 +02:00
|
|
|
- CMAKE_WINMAIN_FILE_LOCATION_RELEASE = libqtmain$${QT_LIBINFIX}.a
|
2020-01-28 21:12:38 +01:00
|
|
|
+ CMAKE_WINMAIN_FILE_LOCATION_DEBUG = libqt5main$${QT_LIBINFIX}$${debug_suffix}.a
|
2016-09-19 22:18:45 +02:00
|
|
|
+ CMAKE_WINMAIN_FILE_LOCATION_RELEASE = libqt5main$${QT_LIBINFIX}.a
|
|
|
|
|
2020-04-02 12:52:46 +02:00
|
|
|
CMAKE_IMPLIB_FILE_LOCATION_DEBUG = lib$${CMAKE_QT_STEM}$${debug_suffix}.a
|
|
|
|
CMAKE_IMPLIB_FILE_LOCATION_RELEASE = lib$${CMAKE_QT_STEM}.a
|
|
|
|
} else {
|
|
|
|
- CMAKE_WINMAIN_FILE_LOCATION_DEBUG = qtmain$${QT_LIBINFIX}$${debug_suffix}.lib
|
|
|
|
- CMAKE_WINMAIN_FILE_LOCATION_RELEASE = qtmain$${QT_LIBINFIX}.lib
|
|
|
|
+ CMAKE_WINMAIN_FILE_LOCATION_DEBUG = qt5main$${QT_LIBINFIX}$${debug_suffix}.lib
|
|
|
|
+ CMAKE_WINMAIN_FILE_LOCATION_RELEASE = qt5main$${QT_LIBINFIX}.lib
|
|
|
|
|
|
|
|
CMAKE_IMPLIB_FILE_LOCATION_DEBUG = $${CMAKE_QT_STEM}$${debug_suffix}.lib
|
|
|
|
CMAKE_IMPLIB_FILE_LOCATION_RELEASE = $${CMAKE_QT_STEM}.lib
|
2016-09-19 22:18:45 +02:00
|
|
|
diff --git a/mkspecs/features/win32/windows.prf b/mkspecs/features/win32/windows.prf
|
2019-06-14 19:09:09 +02:00
|
|
|
index 272170d428..17f3ef9c2d 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/mkspecs/features/win32/windows.prf
|
|
|
|
+++ b/mkspecs/features/win32/windows.prf
|
2019-06-14 19:09:09 +02:00
|
|
|
@@ -5,8 +5,8 @@ contains(TEMPLATE, ".*app") {
|
2016-09-19 22:18:45 +02:00
|
|
|
mingw:DEFINES += QT_NEEDS_QMAIN
|
|
|
|
|
|
|
|
qt:for(entryLib, $$list($$unique(QMAKE_LIBS_QT_ENTRY))) {
|
|
|
|
- isEqual(entryLib, -lqtmain) {
|
2019-06-14 19:09:09 +02:00
|
|
|
- lib = $$QT.core.libs/$${QMAKE_PREFIX_STATICLIB}qtmain$$QT_LIBINFIX$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB
|
|
|
|
+ isEqual(entryLib, -lqt5main) {
|
|
|
|
+ lib = $$QT.core.libs/$${QMAKE_PREFIX_STATICLIB}qt5main$$QT_LIBINFIX$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB
|
|
|
|
PRE_TARGETDEPS += $$lib
|
|
|
|
QMAKE_LIBS += $$lib
|
|
|
|
} else {
|
2016-09-19 22:18:45 +02:00
|
|
|
diff --git a/src/winmain/winmain.pro b/src/winmain/winmain.pro
|
2019-12-13 01:00:48 +01:00
|
|
|
index 1f54c846ec..162e7a4b1b 100644
|
2016-09-19 22:18:45 +02:00
|
|
|
--- a/src/winmain/winmain.pro
|
|
|
|
+++ b/src/winmain/winmain.pro
|
|
|
|
@@ -2,7 +2,7 @@
|
|
|
|
!win32:error("$$_FILE_ is intended only for Windows!")
|
|
|
|
|
|
|
|
TEMPLATE = lib
|
|
|
|
-TARGET = qtmain
|
|
|
|
+TARGET = qt5main
|
|
|
|
DESTDIR = $$QT.core.libs
|
|
|
|
|
|
|
|
CONFIG += static
|
|
|
|
--
|
2023-06-13 17:48:39 +02:00
|
|
|
2.41.0
|
2016-09-19 22:18:45 +02:00
|
|
|
|