Hi all,
I'd like to introduce a CMAKE library dependency trace tool to you. This python script can
* Search a specific library's dependent libraries and to-be-linked libraries in a list of repo paths. * Draw a diagram to show the link relationship. * Give some other information about: * Include paths * Source files * Compile definitions
The main feature of diagram is similar with [CMakeGraphVizOptions]https://cmake.org/cmake/help/latest/module/CMakeGraphVizOptions.html#cmakegraphvizoptions, the differences are:
* The new tool can focus on certain library with specific trace depth like 1, 2 and n. * The new tool is not runtime, it is a static search and can search all libraries whose runtime build may be silenced. * The new tool makes the diagram more colourful to be more readable.
With this tool, I hope you can get and check the structure of CMAKE library more quickly when developing the code and libraries. I have proposed a patch in tf-m-tools repo: [library dependency trace tool]https://review.trustedfirmware.org/c/TF-M/tf-m-tools/+/12019.
This tool may not be convenient for everyone of you so here I beg for your feedbacks to make it better. Thanks.
Best Regards Jianliang Shen
tf-m@lists.trustedfirmware.org