diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-28 08:28:11 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-11-03 08:58:01 +0100 |
commit | 3597752f58a237dfb8fec897822bb78e46905955 (patch) | |
tree | 0174d1099dedbbc31fc77129578d85cb7cf67b88 /sources/shiboken6/tests/minimalbinding | |
parent | 1a63e46e7e7bdd4d12eada16c028743fb88a9a12 (diff) |
shiboken6: Add --lean-header option
Add an option that causes shiboken to generate forward
declarations instead of includes where possible into the
module header. This works since SbkType<> template
specializations work with forward declarations. Includes are
only required for certain classes (with enums, inner classes).
[ChangeLog][shiboken6] An option --lean-header to generate
forward declarations instead of includes into the module
header has been added. This considerably reduces the
dependencies but may require additional includes to be
specified for injected code.
Pick-to: 6.4
Fixes: PYSIDE-2099
Change-Id: I01f639e4ccce5ca25016dc2d52562abcc489a5ab
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'sources/shiboken6/tests/minimalbinding')
-rw-r--r-- | sources/shiboken6/tests/minimalbinding/minimal-binding.txt.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/minimalbinding/minimal-binding.txt.in b/sources/shiboken6/tests/minimalbinding/minimal-binding.txt.in index 85b139676..101567070 100644 --- a/sources/shiboken6/tests/minimalbinding/minimal-binding.txt.in +++ b/sources/shiboken6/tests/minimalbinding/minimal-binding.txt.in @@ -13,3 +13,4 @@ typesystem-path = @CMAKE_CURRENT_SOURCE_DIR@ enable-parent-ctor-heuristic use-isnull-as-nb_nonzero +lean-headers |