qtdeclarative/tests/auto/qml/qmltc_qprocess
Sami Shalayel 01d84ffc74 qmltc: export generated classes
Add QMLTC_EXPORT_MACRO_NAME and QMLTC_EXPORT_FILE_NAME arguments to
qt_add_qml_module() that allows the user to export qmltc-generated code
from its library. The qmltc-generated code will include the header-file
specified in QMLTC_EXPORT_FILE_NAME and will be exported with the macro
specified by QMLTC_EXPORT_MACRO_NAME.
Leave both options unspecified to not export the code generated by
qmltc.

Describe the options in the documentation and write a test to see if the
class really has an export macro in the generated code:
1) tst_qmltc_qprocess will test if the macro and the header are correctly
inserted in the generated code.
2) tst_qmltc_{no,}diskcache will test if the generated code can still be
   used from a static library.

Fixes: QTBUG-106840
Task-number: QTBUG-96040
Change-Id: I554f03bcdf043e8114e42f51a7289a5c00de4f89
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
2023-02-02 18:11:07 +01:00
..
cpptypes add QML_UNCREATABLE in the tests 2023-02-02 10:24:37 +01:00
data QML: Turn singleton/type mismatch into a run time type error 2023-01-27 10:42:06 +01:00
CMakeLists.txt Retire the qt_parse_all_arguments 2023-01-20 16:40:42 +01:00
tst_qmltc_qprocess.cpp qmltc: export generated classes 2023-02-02 18:11:07 +01:00