Sha256: efbd5c659d090441068711dbf338d2146cb6c44ffd48bb33453f6d34cdb923a5

Contents?: true

Size: 919 Bytes

Versions: 29

Compression:

Stored size: 919 Bytes

Contents

Generating dot graphs
*********************

In larger workspaces it's often hard to understand the dependency structure. With bake you can generate a dot file (see http://www.graphviz.org):

.. code-block:: console

    bake ... --dot <dot filename>

The dot file is a text file with all dependencies included. It is easy to render an image, e.g. with

.. code-block:: console

    tred <dot filename> | dot -Tpng -o <png image filename>

.. image:: ../_static/dot.png

- Projects are rectangles
- Configs are ellipses
- CustomConfigs are red
- ExecutableConfigs are green
- LibraryConfigs are cyan

It's possible to generate only a part of the whole graph with -p (same as for building only a part of the code). e.g.:

.. code-block:: console

    bake ... --dot <dot filename> -p lib2
    bake ... --dot <dot filename> -p lib2,testa

Which results in:

.. image:: ../_static/dotP.png
.. image:: ../_static/dotPC.png

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bake-toolkit-2.29.4 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.29.3 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.29.2 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.29.0 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.28.1 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.28.0 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.27.0 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.26.1 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.26.0 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.25.1 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.25.0 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.6 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.5 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.4 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.3 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.2 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.1 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.24.0 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.23.12 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.23.8 documentation/_build/html/_sources/tips_and_tricks/dot.txt