Option to print all needed environment variables for manual cmake/build
As reported at https://bugs.kde.org/show_bug.cgi?id=394196
Sometimes one wants to build or rebuild a KDE module without using kdesrc-build. It would be helpful if kdesrc-build had an option like "--printenv" which prints all needed environment variables needed to run a manual build. E.g.:
CMAKE_PREFIX_PATH=...
...=...
This would be helpful to understand what kdesrc-build does under the hood and it could be used in a sourced bash script to setup those variables consistently.
I like the idea of being able to introspect what kdesrc-build is doing (e.g. using the --query
option that exists already). Just need to figure out how to do it...