MinGW: Fix static build using PCH
The value of NTDDI_VERSION is computed from _WIN32_WINNT. It makes sense to keep these two in sync. The value used to create the PCHs for _WIN32_WINNT is 0x601, and qwindowspointerhandler.cpp requires for MinGW 0x603. Since the precompile header value cannot be undefined while compiling the source file, it's better not to use the PCH for this particular source file. These problems surface in a static build, in a regular build for some reason the PCH for plugins is not used. Change-Id: Id724490deb9c695ac00b26cd300f9d2382019ea2 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
parent
df1309c83a
commit
27499d25fb
@ -54,7 +54,7 @@
|
||||
# define _WIN32_WINNT 0x601
|
||||
# endif
|
||||
# ifndef NTDDI_VERSION
|
||||
# define NTDDI_VERSION 0x06000000
|
||||
# define NTDDI_VERSION 0x06010000
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@ -198,3 +198,9 @@ qt_internal_extend_target(QWindowsIntegrationPlugin CONDITION MINGW AND QT_FEATU
|
||||
PUBLIC_LIBRARIES
|
||||
uuid
|
||||
)
|
||||
|
||||
# begin special case
|
||||
if (MINGW)
|
||||
set_source_files_properties(qwindowspointerhandler.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS ON)
|
||||
endif()
|
||||
# end special case
|
||||
|
Loading…
Reference in New Issue
Block a user