Sha256: d2494416984977be8e331cbcced54516c8d767cde5966f3a5dc291796bce33a7

Contents?: true

Size: 953 Bytes

Versions: 4

Compression:

Stored size: 953 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

4 entries across 4 versions & 1 rubygems

Version Path
bake-toolkit-2.20.4 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.20.3 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.20.2 documentation/_build/html/_sources/tips_and_tricks/dot.txt
bake-toolkit-2.20.1 documentation/_build/html/_sources/tips_and_tricks/dot.txt