1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

Generate a picture of module dependencies at configure time

This commit is contained in:
Paul Licameli
2020-10-17 05:26:15 -04:00
committed by Leland Lucius
parent 1f6efefdf6
commit 5844b2090a
4 changed files with 62 additions and 7 deletions

View File

@@ -1340,3 +1340,15 @@ if( NOT "${CMAKE_GENERATOR}" MATCHES "Xcode|Visual Studio*" )
endif()
endif()
# collect dependency information for third party libraries
list( APPEND GRAPH_EDGES "Audacity [shape=house]" )
foreach( LIBRARY ${LIBRARIES} )
if (NOT LIBRARY MATCHES "PUBLIC|PRIVATE|INTERFACE")
string( REGEX REPLACE ".*>.*:(.*)>" "\\1" LIBRARY "${LIBRARY}" )
string( REGEX REPLACE "^-(l|framework )" "" LIBRARY "${LIBRARY}" )
list( APPEND GRAPH_EDGES "\"${TARGET}\" -> \"${LIBRARY}\"" )
endif()
endforeach()
#propagate collected edgets to root CMakeLists.txt
set( GRAPH_EDGES "${GRAPH_EDGES}" PARENT_SCOPE )