summaryrefslogtreecommitdiffstats
path: root/cmake/QtBuildGnHelpers.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CMake: Fix compiler flag passing to GNMoss Heim2025-05-121-10/+21
| | | | | | | | | | | | | | Sometimes we want to pass a group of compiler flags in CMake without risking them being mangled by deduplication. CMake does this by appending a "SHELL:" marker to the front of the group. Make sure these flag groups are correctly forwarded to GN. While we are here, fix an issue with variable quoting and make GN generation steps depend explicitly on cmake/QtBuildGnHelpers.cmake. Change-Id: I5827880236b9ae1e0cdc47a6f3bcdc3f8c298ea4 Pick-to: 6.9 Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CMake cleanup: Make recover_framework_build available in scriptAlexandru Croitor2024-06-271-2/+16
| | | | | | Change-Id: I44c448985d8157db34e40001e54e79f4651892df Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu> Reviewed-by: Michal Klocek <michal.klocek@qt.io>
* CMake cleanup: Refactor BUILD.gn logicMichal Klocek2024-06-211-0/+100
We have some helper functions to create BUILD.gn, which run in cmake script mode. Increase readability and factor out these functions. Be explicit on setting variables on target and directory scopes. Clean up logic a bit. Use naming convention as in qtbase/cmake. Change-Id: I202c6e5ecb778c800b4aae8f1aa371eaedf6c7c1 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>