buildframework/helium/doc/api_rst/target-dependencies.dot.ftl
author Bob Rosenberg <bob.rosenberg@nokia.com>
Tue, 26 Oct 2010 11:04:46 +0100
changeset 661 199bb033aacf
parent 588 c7c26511138f
permissions -rw-r--r--
Bugfixes and additional validation for sysdeftools
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
588
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     1
<#--
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     2
============================================================================ 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     3
Name        : 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     4
Part of     : Helium 
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     5
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     6
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     7
All rights reserved.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     8
This component and the accompanying materials are made available
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
     9
under the terms of the License "Eclipse Public License v1.0"
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    10
which accompanies this distribution, and is available
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    11
at the URL "http://www.eclipse.org/legal/epl-v10.html".
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    12
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    13
Initial Contributors:
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    14
Nokia Corporation - initial contribution.
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    15
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    16
Contributors:
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    17
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    18
Description:
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    19
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    20
============================================================================
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    21
-->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    22
<#list doc.antDatabase.project as project>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    23
<#list project.target as target>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    24
<@pp.changeOutputFile name="target-${target.name}.dot" />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    25
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    26
strict digraph G {
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    27
    rankdir=LR;
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    28
    rotate=180;
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    29
    ordering=out;
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    30
<#assign currentTarget = target.name>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    31
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    32
<#macro targetFunc targetMain caller>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    33
<#-- Define the targets that call this target. -->
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    34
<#if caller == 0>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    35
    "${targetMain.name}" [fontcolor=blue,fontsize=12,shape=box,style=filled,href="project-${targetMain?parent.name}.html#${targetMain.name}"];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    36
    <#list doc.antDatabase.project.target as callingTarget>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    37
        <#list callingTarget.dependency as dependency>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    38
            <#if targetMain.name == dependency>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    39
                <#if callingTarget.name != currentTarget>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    40
                    "${callingTarget.name}" [fontcolor=brown,fontsize=12,shape=box,href="project-${callingTarget?parent.name}.html#${callingTarget.name}"];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    41
                </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    42
                <#if dependency.@type == "direct">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    43
                    "${callingTarget.name}" -> "${targetMain.name}" [color=navyblue,fontsize=12];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    44
                </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    45
                <#if dependency.@type == "exec">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    46
                    "${callingTarget.name}" -> "${targetMain.name}" [color=limegreen,fontsize=12];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    47
                </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    48
            </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    49
        </#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    50
    </#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    51
</#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    52
<#if caller == 1>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    53
    "${targetMain.name}" [fontcolor=brown,fontsize=12,shape=box,href="project-${targetMain?parent.name}.html#${targetMain.name}"];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    54
</#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    55
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    56
<#if targetMain.dependency?size == 1>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    57
    <#list targetMain.dependency as dependency>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    58
    "${dependency}" [fontcolor=brown,fontsize=12,shape=box,href="project-${targetMain?parent.name}.html#${dependency}"];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    59
    </#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    60
</#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    61
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    62
<#assign depTotal=targetMain.dependency?size>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    63
<#assign depLastIndex=targetMain.dependency?size-1>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    64
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    65
<#if depTotal &gt; 1>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    66
    <#list 0..depLastIndex as index>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    67
        <#if targetMain.dependency[index].@type == "direct">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    68
        "${targetMain.name}" -> "${targetMain.dependency[index]}" [color=navyblue,label="${index+1}",fontsize=12];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    69
        </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    70
        <#if targetMain.dependency[index].@type == "exec">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    71
        "${targetMain.name}" -> "${targetMain.dependency[index]}" [color=limegreen,label="${index+1}",fontsize=12];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    72
        </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    73
        <#list doc.antDatabase.project.target as targetDep>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    74
            <#if targetDep.name == targetMain.dependency[index]>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    75
            <@targetFunc targetMain=targetDep caller=1 />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    76
            </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    77
        </#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    78
    </#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    79
</#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    80
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    81
<#attempt>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    82
<#if depTotal == 1>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    83
    <#if targetMain.dependency.@type == "direct">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    84
    "${targetMain.name}" -> "${targetMain.dependency[depTotal-1]}" [color=navyblue];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    85
    </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    86
    <#if targetMain.dependency.@type == "exec">
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    87
    "${targetMain.name}" -> "${targetMain.dependency[depTotal-1]}" [color=limegreen];
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    88
    </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    89
    <#list doc.antDatabase.project.target as targetDep>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    90
        <#if targetDep.name == targetMain.dependency>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    91
        <@targetFunc targetMain=targetDep caller=1 />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    92
        </#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    93
    </#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    94
</#if>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    95
<#recover>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    96
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    97
</#attempt>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    98
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
    99
</#macro>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   100
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   101
<@targetFunc targetMain=target caller=0 />
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   102
}
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   103
</#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   104
</#list>
c7c26511138f helium-10.0.0-bc45d50958fe
wbernard
parents:
diff changeset
   105