QtWidgets: use NO_PCH_SOURCES instead of manual no-pch handling

This is how all other libraries handle this, so use it here, too.

Amends 0c8b98774c and
09d1196281.

Pick-to: 6.6 6.5
Change-Id: Id3b8fa1b834e2bebe5e6ddc1f67e43c66ccd9aab
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
bb10
Marc Mutz 2023-08-04 23:04:53 +02:00
parent 81685b0ac0
commit a631fef20f
1 changed files with 2 additions and 9 deletions

View File

@ -66,6 +66,8 @@ qt_internal_add_module(Widgets
Qt::GuiPrivate
PRECOMPILED_HEADER
"kernel/qt_widgets_pch.h"
NO_PCH_SOURCES
compat/removed_api.cpp
GENERATE_CPP_EXPORTS
)
@ -245,15 +247,6 @@ set(qstyle_resource_files
"styles/images/viewlist-32.png"
)
set(widgets_no_pch_sources
compat/removed_api.cpp
)
foreach(src ${widgets_no_pch_sources})
qt_update_ignore_pch_source(Widgets ${src})
endforeach()
qt_internal_add_resource(Widgets "qstyle"
PREFIX
"/qt-project.org/styles/commonstyle"