qt5base-lts/tests/auto/cmake/test_generating_cpp_exports
Alexey Edelev e1fe816d46 Implement generating of private cpp exports
Add the generating of private cpp exports for Qt modules.

Add the GENERATE_PRIVATE_CPP_EXPORTS option to qt_internal_add_module
that is the manual switch for private exports generator. Existing
modules in qtbase doesn't follow any strict convention of using
private cpp export. So there is no clue how to detect if generating of
the private exports is required or not for the module.

Use autogenerated private cpp exports in QtNetwork module.

CPP_EXPORT_HEADER_NAME argument of the qt_internal_add_module function
is replaced by the CPP_EXPORT_HEADER_BASE_NAME and has a different
meaning. The provided name is used as a base name for the private and
non-private headers that contains cpp exports. Header files suffixes
are constant: .h and _p.h for the non-private and private header files
accordingly.

Pick-to: 6.2
Task-number: QTBUG-90492
Change-Id: Icf11304e00379fb8521a865965c19b974e01e62f
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2021-08-27 11:01:47 +02:00
..
test_autogenerating_cpp_exports Implement generating of a module cpp export header 2021-06-24 20:40:49 +02:00
test_autogenerating_cpp_exports_custom_name Implement generating of private cpp exports 2021-08-27 11:01:47 +02:00
.cmake.conf Implement generating of a module cpp export header 2021-06-24 20:40:49 +02:00
CMakeLists.txt Implement generating of a module cpp export header 2021-06-24 20:40:49 +02:00