587
|
1 |
<#--
|
|
2 |
============================================================================
|
|
3 |
Name : root_sysdef_model.xml.ftl
|
|
4 |
Part of : Helium
|
|
5 |
|
|
6 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
7 |
All rights reserved.
|
|
8 |
This component and the accompanying materials are made available
|
|
9 |
under the terms of the License "Eclipse Public License v1.0"
|
|
10 |
which accompanies this distribution, and is available
|
|
11 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
12 |
|
|
13 |
Initial Contributors:
|
|
14 |
Nokia Corporation - initial contribution.
|
|
15 |
|
|
16 |
Contributors:
|
|
17 |
|
|
18 |
Description:
|
|
19 |
|
|
20 |
============================================================================
|
|
21 |
-->
|
|
22 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
23 |
<!--
|
|
24 |
============================================================================
|
|
25 |
Name : package_model.xml
|
|
26 |
Part of : Helium
|
|
27 |
|
|
28 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
29 |
All rights reserved.
|
|
30 |
This component and the accompanying materials are made available
|
|
31 |
under the terms of the License "Eclipse Public License v1.0"
|
|
32 |
which accompanies this distribution, and is available
|
|
33 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
34 |
|
|
35 |
Initial Contributors:
|
|
36 |
Nokia Corporation - initial contribution.
|
|
37 |
|
|
38 |
Contributors:
|
|
39 |
|
|
40 |
Description:
|
|
41 |
|
|
42 |
============================================================================
|
|
43 |
-->
|
|
44 |
<!DOCTYPE SystemDefinition [
|
|
45 |
<!ELEMENT SystemDefinition ( systemModel | layer | package | collection | component)>
|
|
46 |
<!ATTLIST SystemDefinition
|
|
47 |
schema CDATA #REQUIRED
|
|
48 |
id-namespace CDATA "http://www.symbian.org/system-definition"
|
|
49 |
>
|
|
50 |
<!-- this DTD describes schema="3.0.0" -->
|
|
51 |
|
|
52 |
<!-- all relative paths are relative to this file
|
|
53 |
all absolute paths are relative to the environment variable specified by the root attribute, or SRCROOT if not. -->
|
|
54 |
|
|
55 |
<!-- Container for metadata
|
|
56 |
meta, if present, should always be the first element in the parent
|
|
57 |
-->
|
|
58 |
<!ELEMENT meta ANY>
|
|
59 |
<!ATTLIST meta
|
|
60 |
href CDATA #IMPLIED
|
|
61 |
type CDATA "auto"
|
|
62 |
rel CDATA "Generic"
|
|
63 |
>
|
|
64 |
|
|
65 |
<!-- systemModel element has name but no ID -->
|
|
66 |
<!ELEMENT systemModel (meta*, layer+)>
|
|
67 |
<!ATTLIST systemModel
|
|
68 |
name CDATA #IMPLIED
|
|
69 |
>
|
|
70 |
|
|
71 |
<!-- All items from layer down to component should have either @href or at least one valid child item.
|
|
72 |
Anything else will be considered a placeholder
|
|
73 |
-->
|
|
74 |
|
|
75 |
<!ELEMENT layer (meta*, (package | collection)*) >
|
|
76 |
<!ATTLIST layer
|
|
77 |
id ID #REQUIRED
|
|
78 |
name CDATA #IMPLIED
|
|
79 |
href CDATA #IMPLIED
|
|
80 |
levels NMTOKENS #IMPLIED
|
|
81 |
span CDATA #IMPLIED
|
|
82 |
before NMTOKEN #IMPLIED
|
|
83 |
>
|
|
84 |
|
|
85 |
<!ELEMENT package (meta*, (package | collection)*)>
|
|
86 |
<!-- Nested packages are for backwards compatibility only -->
|
|
87 |
<!ATTLIST package
|
|
88 |
id ID #REQUIRED
|
|
89 |
name CDATA #IMPLIED
|
|
90 |
version CDATA #IMPLIED
|
|
91 |
tech-domain CDATA #IMPLIED
|
|
92 |
href CDATA #IMPLIED
|
|
93 |
levels NMTOKENS #IMPLIED
|
|
94 |
span CDATA #IMPLIED
|
|
95 |
level NMTOKEN #IMPLIED
|
|
96 |
before NMTOKEN #IMPLIED
|
|
97 |
>
|
|
98 |
|
|
99 |
<!ELEMENT collection (meta*, (component* ))>
|
|
100 |
<!ATTLIST collection
|
|
101 |
id ID #REQUIRED
|
|
102 |
name CDATA #IMPLIED
|
|
103 |
href CDATA #IMPLIED
|
|
104 |
level NMTOKEN #IMPLIED
|
|
105 |
before NMTOKEN #IMPLIED
|
|
106 |
>
|
|
107 |
|
|
108 |
<!ELEMENT component (meta*, unit*)>
|
|
109 |
<!-- contains units or is a placeholder -->
|
|
110 |
<!ATTLIST component
|
|
111 |
id ID #REQUIRED
|
|
112 |
name CDATA #IMPLIED
|
|
113 |
href CDATA #IMPLIED
|
|
114 |
deprecated CDATA #IMPLIED
|
|
115 |
introduced CDATA #IMPLIED
|
|
116 |
target ( device | desktop | other ) "device"
|
|
117 |
purpose ( optional | mandatory | development ) "optional"
|
|
118 |
class NMTOKENS #IMPLIED
|
|
119 |
filter CDATA #IMPLIED
|
|
120 |
before NMTOKEN #IMPLIED
|
|
121 |
origin-model CDATA #IMPLIED
|
|
122 |
>
|
|
123 |
<!--
|
|
124 |
"filter" attribute is deprecated
|
|
125 |
"origin-model" attribute is only to be inserted by tools when merging models
|
|
126 |
recommended class values are: doc, config, plugin, tool, api -->
|
|
127 |
|
|
128 |
<!ELEMENT unit EMPTY >
|
|
129 |
<!ATTLIST unit
|
|
130 |
mrp CDATA #IMPLIED
|
|
131 |
bldFile CDATA #IMPLIED
|
|
132 |
base CDATA #IMPLIED
|
|
133 |
root CDATA #IMPLIED
|
|
134 |
version NMTOKEN #IMPLIED
|
|
135 |
prebuilt NMTOKEN #IMPLIED
|
|
136 |
late (yes|no) #IMPLIED
|
|
137 |
filter CDATA #IMPLIED
|
|
138 |
priority CDATA #IMPLIED
|
|
139 |
>
|
|
140 |
<!-- filter and priority are deprecated
|
|
141 |
"root" attribute will usually be inserted by tools when merging models, although it can be set manually-->
|
|
142 |
]>
|
628
|
143 |
<SystemDefinition schema="3.0.0" <#if (idnamespace?? && idnamespace!="http://www.symbian.org/system-definition")>xmlns:vendor="${idnamespace}"</#if>>
|
|
144 |
<systemModel name="<#list roots?keys as root>${root}<#if root_has_next>_</#if></#list>">
|
587
|
145 |
<#list layers?keys as layer>
|
|
146 |
<layer id="${layer}" name="${layer}">
|
|
147 |
<#list roots?keys as root>
|
|
148 |
<#if roots[root]?keys?seq_contains(layer)>
|
|
149 |
<#list roots[root][layer] as pkg>
|
628
|
150 |
<#assign namespaces="" />
|
|
151 |
<#if (idnamespace?? && idnamespace!="http://www.symbian.org/system-definition")>
|
|
152 |
<#assign pkgid="vendor:${pkg['id']}" />
|
|
153 |
<#else>
|
|
154 |
<#assign pkgid="${pkg['id']}" />
|
|
155 |
</#if>
|
|
156 |
<#list pkg['namespaces']?keys as ns>
|
|
157 |
<#if pkg['namespaces'][ns] != "http://www.symbian.org/system-definition">
|
|
158 |
<#assign namespaces="${namespaces} ${ns}=\"${pkg['namespaces'][ns]}\"" />
|
|
159 |
<#else>
|
|
160 |
<#assign nsname=ns?replace("xmlns:", '')>
|
|
161 |
<#if pkg['id']?starts_with("${nsname}:")>
|
|
162 |
<#assign pkgid=pkg['id']?replace("${nsname}:", '') />
|
|
163 |
</#if>
|
|
164 |
</#if>
|
|
165 |
</#list>
|
|
166 |
<package id="${pkgid}" href="${dest_dir_to_epocroot?replace('\\', '/')}${root}/${layer}/${pkg['path']}/package_definition.xml" ${namespaces}/>
|
587
|
167 |
</#list>
|
|
168 |
</#if>
|
|
169 |
</#list>
|
|
170 |
</layer>
|
|
171 |
</#list>
|
|
172 |
</systemModel>
|
|
173 |
</SystemDefinition> |