Are there any tools that can generate dependency diagrams for Delphi units taking into account conditional compilation directives. I\'d like to emphasize that this should be
You can also use the Delphi Unit Dependency Scanner from https://github.com/norgepaul/DUDS and export the tree in Gephi or yEd format.
Then you can build the graph, analyze and do many other actions with the graph using the open source tool from https://gephi.org/ or free https://www.yworks.com/products/yed.