diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-07-30 19:17:09 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-07-31 14:29:45 +0200 |
commit | 9c0f448f5a4e2e96e9b801c751c0a145c0eb6dad (patch) | |
tree | 504356a5fa4c369cdcb1c862518e99911f301d7c /cmake/QtBaseGlobalTargets.cmake | |
parent | 26c742c1e1c96740646bb1896df52bad2fbe105d (diff) |
CMake: Fix generated content of prl files (again)
Apply the same kind of transformations to the contents of the prl
files as we do for pri files. Mainly, transform system library paths
that are absolute, into link flags to make them relocatable across
systems.
Also change the Qt frameworks to be linked via the -framework flags
instead of via absolute paths.
Implementation notes
Move the common required functions for both QtFinishPrlFile and
QtGenerateLibPri into a common QtGenerateLibHelpers.cmake file.
Make sure it's listed as a dependency for the custom commands.
Also make sure to pass the necessary input values like possible
library prefixes and suffixes, as well as the link flag.
Task-number: QTBUG-85240
Task-number: QTBUG-85801
Change-Id: I36f24207f92a1d2ed3ed2d81bb96e4e62d927b6e
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake/QtBaseGlobalTargets.cmake')
-rw-r--r-- | cmake/QtBaseGlobalTargets.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake index fd3a1ea3bb..1e5de239d6 100644 --- a/cmake/QtBaseGlobalTargets.cmake +++ b/cmake/QtBaseGlobalTargets.cmake @@ -360,6 +360,7 @@ qt_copy_or_install(FILES cmake/QtFileConfigure.txt.in cmake/QtGenerateExtPri.cmake cmake/QtGenerateLibPri.cmake + cmake/QtGenerateLibHelpers.cmake cmake/QtPlatformSupport.cmake cmake/QtPlatformAndroid.cmake cmake/QtPostProcess.cmake |