Qt Base (Core, Gui, Widgets, Network, ...)
Go to file
Alexey Edelev f98fd70529 Add the 'exceptions' feature
The feature allows enabling/disabling exceptions for the Qt builds.
The feature is disabled by default.

This commit reworks the way the exception flags are set for Qt targets.
Instead of setting them per-target, flags now are set for the
QtPlatformCommonInternal target, which transitively propagates the flag
to other Qt targets. To disable/enable exception flags the newly
introduced property _qt_internal_use_exceptions can be used. The flags
enabling/disabling now can happen any time, but not only at target
creation time. The property has 3 states: TRUE, FALSE, DEFAULT(or
empty). If the property is not set or is set to DEFAULT, the exceptions
feature value is used to set the required exceptions flags. Otherwise
the flags are set according to the property value.

The logic of EXCEPTION argument of the various qt_internal_add_
functions was also updated. If the argument is not provided, the
_qt_internal_use_exceptions property value is set to DEFAULT, which
gives the control on the exception flags to the feature. If the
argument is provided, the exceptions are enabled by setting the
_qt_internal_use_exceptions property to TRUE.

Task-number: QTBUG-118901
Change-Id: I83e3bf52d48a3d16977cce849c9b0765c34f1f21
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2024-08-12 14:56:16 +02:00
.github/workflows Repair github action workflow 2021-11-10 18:57:33 +01:00
LICENSES Update license rule to Unicode-3.0 2024-08-12 12:10:07 +02:00
bin CMake: Generate a config.redo script in per-repo build dirs 2024-07-30 16:12:19 +02:00
cmake Add the 'exceptions' feature 2024-08-12 14:56:16 +02:00
coin Coin: Prefer publickey in QNX emulator ssh 2024-08-05 17:33:13 +00:00
config.tests Fix ARM NEON detection on MSVC arm64 2024-08-12 12:10:08 +02:00
dist Remove dist/README 2024-02-29 15:35:57 +01:00
doc Doc: Fix Qt Creator link issues 2024-08-05 19:33:13 +02:00
examples Doc: Update \externalpage entries for Qt Creator documentation 2024-08-02 14:18:19 +02:00
lib
libexec CMake: Generate a config.redo script in per-repo build dirs 2024-07-30 16:12:19 +02:00
mkspecs visionOS: Add UIApplicationSceneManifest to qmake Info.plist template 2024-08-09 00:16:35 +02:00
qmake Doc: Update \externalpage entries for Qt Creator documentation 2024-08-02 14:18:19 +02:00
src CMake: qt_add_ui: Add sources to target_sources 2024-08-12 12:56:16 +00:00
tests Add the 'exceptions' feature 2024-08-12 14:56:16 +02:00
util Extract emoji data from Unicode files 2024-08-06 10:00:08 +02:00
.cmake.conf Bump accepted Apple OS SDK versions 2024-08-09 00:16:35 +02:00
.gitattributes
.gitignore Git ignore Visual Studio CMake build directories 2023-11-24 23:42:05 +01:00
.lgtm.yml
.tag
CMakeLists.txt cmake: add _extra_files IDE target from heuristics 2024-04-12 08:36:01 +08:00
config_help.txt CMake: Add a way to use system/bundled 3rdparty libs in bulk 2024-06-18 07:05:30 +02:00
configure Do not assume FHS in scripts 2024-06-25 11:44:00 +02:00
configure.bat configure.bat: Fix errors on Windows 2024-03-05 11:56:24 +01:00
configure.cmake Add the 'exceptions' feature 2024-08-12 14:56:16 +02:00
dependencies.yaml
licenseRule.json Add exception for build system file licensing 2024-08-12 12:10:07 +02:00
qt_cmdline.cmake CMake: Add a way to use system/bundled 3rdparty libs in bulk 2024-06-18 07:05:30 +02:00