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