b89d63515b
syncqt.pl adds an extra dependency on perl when building Qt. Modern C++ provides the convenient cross-platform way to access a filesystem and to use regular expressions, so we may replace the perl script with C++ application. The syncqt executable is built at configure time and installed as QtCore tool. It's running at configure time to deliver the required header files for IDE to build a consistent code model and at the build time to keep tracking changes in header files and generate the missing aliases without reconfiguring. 'syncqt' only parses header files from a CMake build tree, so the resulting Qt installation only contains interfacing headers that belong to the platform that Qt is built for. 'sync.profile' files are not used as the 'source of truth' for sync qt procedure anymore, all the necessary information is taken from either CMake files at configure time or from the module header files while parsing them. syncqt.pl is still in place since it's required as fallback solution for a smooth transition to the new syncqt implementation for all qt repositories. This patchset only enables the C++ based syncqt for 'qtbase' repository. From the performance perspective C++ version works faster then perl script, also the configure time is reduced significally on subsequent reconfigurations - up x2 times faster when re-configuring repository, but it also takes time to compile the tool itself the first time. Numbers for qtbase: syncqt.pl syncqt.cpp initial: 0m16,035s 0m20,413s reconfig: 0m6,819s 0m3,725s The syncing procedure can be run separately for each module using <ModuleName>_sync_headers targets. The 'sync_headers' target can be used to sync all the modules at once. Task-number: QTBUG-87480 Task-number: QTBUG-103196 Change-Id: I8c938bcaf88a8713b39bbfd66d9e7ef12b2c3523 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> |
||
---|---|---|
.. | ||
mockplugins | ||
test_add_big_resource | ||
test_add_binary_resources_delayed_file | ||
test_add_resource_options | ||
test_add_resources_big_resources | ||
test_add_resources_binary_generated | ||
test_add_resources_delayed_file | ||
test_build_simple_widget_app | ||
test_concurrent_module | ||
test_dbus_module | ||
test_dependent_modules | ||
test_egl_lib | ||
test_generating_cpp_exports | ||
test_global_promotion | ||
test_import_plugins | ||
test_interface | ||
test_interface_link_libraries | ||
test_json_plugin_includes | ||
test_moc_macro_target | ||
test_multiple_find_package | ||
test_opengl_lib | ||
test_platform_defs_include | ||
test_plugin_shared_static_flavor | ||
test_plugins | ||
test_private_includes | ||
test_private_targets | ||
test_QFINDTESTDATA | ||
test_qt_extract_metatypes | ||
test_QT_TESTCASE_BUILDDIR | ||
test_QTBUG-63422 | ||
test_qtmainwin_library | ||
test_static_resources | ||
test_testlib_definitions | ||
test_testlib_no_link_gui | ||
test_testlib_no_link_widgets | ||
test_umbrella_config | ||
test_versionless_targets | ||
test_widgets_app_deployment | ||
test_wrap_cpp_and_resources | ||
test_wrap_cpp_options | ||
test(needsquoting)dirname | ||
tst_qaddpreroutine | ||
CMakeLists.txt | ||
test_plugin_shared_static_flavor.cmake |