You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This pr is a feature request.
I did Initial work to add pc files in static linkage.
I try few things also with aid of chatgpt, but without succeed. I don't have the knowledge yet.
I am working on this on my free time offline. (not on this PR).
This pr is add the framework flags in osx.
While the PR is generating the pc files in static linkage, all the 3rd flags that qt depends on it not there. Need more work to be done.
If someone have any suggestion or note, please write me here on this PR.
If someone want to take the code and continue the work, or doing some collaboration, I happy to help.
I understand more of the problem, and suggest a design for future task if it will be accepted here.
Currently qt generate the pc file in the generation phase using file(GENERATE) function. This function is limit in evaluate nested genex values, that why qt skip the nested genex values.
The problem with cmake, that genex can evaluate only in the generation phase, not in the configuration phase.
The functions export(TARGETS ...) and install(EXPORT ...) are fully evaluate. The export(TARGETS ...) is during the generation phase, but cannot create custom file, like pc file.
Because of the limitation of cmake, we need to run cmake twice to create pc file with static linkage:
My approach for fully automated pc file with static link flags.
Create on the generation the cmake file with fully evaluated flags with export(TARGETS ...)
With custom target that will run cmake again on the build time, run another cmake script that will read the exported cmake file from the generation phase, and generate the pc file. It will generate on his generation phase, on the build time from the first cmake.
Let me know what do you think about my approach.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pr is a feature request.
I did Initial work to add pc files in static linkage.
I try few things also with aid of chatgpt, but without succeed. I don't have the knowledge yet.
I am working on this on my free time offline. (not on this PR).
This pr is add the framework flags in osx.
While the PR is generating the pc files in static linkage, all the 3rd flags that qt depends on it not there. Need more work to be done.
If someone have any suggestion or note, please write me here on this PR.
If someone want to take the code and continue the work, or doing some collaboration, I happy to help.