mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-23 20:10:48 +08:00
33 lines
934 B
Plaintext
33 lines
934 B
Plaintext
|
#
|
||
|
# qmake configuration for win32-g++
|
||
|
#
|
||
|
# Written for MinGW-w64 / gcc 5.3 or higher
|
||
|
#
|
||
|
# Cross compile example for i686-w64-mingw32-g++:
|
||
|
# configure -xplatform win32-g++ -device-option CROSS_COMPILE=i686-w64-mingw32-
|
||
|
#
|
||
|
|
||
|
include(../common/g++-win32.conf)
|
||
|
include(../common/windows-desktop.conf)
|
||
|
|
||
|
# modifications to g++-win32.conf
|
||
|
|
||
|
QMAKE_CC = $${CROSS_COMPILE}gcc
|
||
|
QMAKE_CFLAGS += -fno-keep-inline-dllexport
|
||
|
QMAKE_CFLAGS_WARN_ON += -Wextra
|
||
|
|
||
|
QMAKE_CXX = $${CROSS_COMPILE}g++
|
||
|
QMAKE_CXXFLAGS += -fno-keep-inline-dllexport
|
||
|
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
|
||
|
QMAKE_CXXFLAGS_EXCEPTIONS_ON += -mthreads
|
||
|
|
||
|
QMAKE_LINK = $${CROSS_COMPILE}g++
|
||
|
QMAKE_LINK_C = $${CROSS_COMPILE}gcc
|
||
|
|
||
|
QMAKE_CFLAGS_LTCG = -flto
|
||
|
QMAKE_CXXFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
|
||
|
QMAKE_LFLAGS_LTCG = $$QMAKE_CFLAGS_LTCG
|
||
|
QMAKE_LFLAGS_EXCEPTIONS_ON += -mthreads
|
||
|
|
||
|
load(qt_config)
|