1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 16:10:06 +02:00

Distinguish nodes in modules.dot.svg that depend directly on wxBase

This commit is contained in:
Paul Licameli 2021-02-28 14:34:17 -05:00
parent 1f71ef4300
commit 26217c22f1

View File

@ -339,7 +339,7 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
endif () endif ()
if (LIBTYPE STREQUAL "MODULE") if (LIBTYPE STREQUAL "MODULE")
set( SHAPE "box" ) set( ATTRIBUTES "shape=box" )
set_target_property_all( ${TARGET} ${DIRECTORY_PROPERTY} "${_MODDIR}" ) set_target_property_all( ${TARGET} ${DIRECTORY_PROPERTY} "${_MODDIR}" )
set_target_properties( ${TARGET} set_target_properties( ${TARGET}
PROPERTIES PROPERTIES
@ -347,7 +347,7 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
FOLDER "modules" # for IDE organization FOLDER "modules" # for IDE organization
) )
else() else()
set( SHAPE "octagon" ) set( ATTRIBUTES "shape=octagon" )
set_target_property_all( ${TARGET} ${DIRECTORY_PROPERTY} "${_EXEDIR}" ) set_target_property_all( ${TARGET} ${DIRECTORY_PROPERTY} "${_EXEDIR}" )
set_target_properties( ${TARGET} set_target_properties( ${TARGET}
PROPERTIES PROPERTIES
@ -356,6 +356,10 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
) )
endif() endif()
if( "wxBase" IN_LIST IMPORT_TARGETS )
string( APPEND ATTRIBUTES " style=filled" )
endif()
export_symbol_define( export_symbol "${TARGET}" ) export_symbol_define( export_symbol "${TARGET}" )
import_symbol_define( import_symbol "${TARGET}" ) import_symbol_define( import_symbol "${TARGET}" )
list( APPEND DEFINES list( APPEND DEFINES
@ -420,7 +424,7 @@ function( audacity_module_fn NAME SOURCES IMPORT_TARGETS
endif() endif()
# collect dependency information # collect dependency information
list( APPEND GRAPH_EDGES "\"${TARGET}\" [shape=${SHAPE}]" ) list( APPEND GRAPH_EDGES "\"${TARGET}\" [${ATTRIBUTES}]" )
if (NOT LIBTYPE STREQUAL "MODULE") if (NOT LIBTYPE STREQUAL "MODULE")
list( APPEND GRAPH_EDGES "\"Audacity\" -> \"${TARGET}\"" ) list( APPEND GRAPH_EDGES "\"Audacity\" -> \"${TARGET}\"" )
endif () endif ()