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:
committed by
Leland Lucius
parent
1f6efefdf6
commit
5844b2090a
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user