Added BuildTarget with enumerated data type (DEBUG|RELEASE|BOTH) to the PlatformHeade...
[mirror_edk2.git] / Tools / XMLSchema / FrameworkHeaders.xsd
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="UTF-8"?>\r
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.TianoCore.org/2006/Edk2.0" xmlns="http://www.TianoCore.org/2006/Edk2.0">\r
3 <!--\r
4 Filename: FrameworkHeaders.xsd\r
5 \r
6 Copyright (c) 2006, Intel Corp.\r
7 All rights reserved. This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which may be found at http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13 \r
14 -->\r
15 <xs:include schemaLocation="FrameworkDataElements.xsd"/>\r
16 <xs:element name="FdbHeader">\r
17 <xs:annotation>\r
18 <xs:documentation xml:lang="en">This is the header for the Framework Package Database file.</xs:documentation>\r
19 </xs:annotation>\r
20 <xs:complexType>\r
21 <xs:sequence>\r
22 <xs:element minOccurs="1" maxOccurs="1" ref="DatabaseName"/>\r
1be638ed 23 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>\r
24 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>\r
878ddf1f 25 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>\r
26 <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>\r
0fce57e7 27 <xs:choice minOccurs="1" maxOccurs="1">\r
28 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>\r
29 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
30 </xs:choice>\r
878ddf1f 31 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>\r
32 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>\r
33 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
34 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>\r
35 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>\r
36 </xs:sequence>\r
37 </xs:complexType>\r
38 </xs:element>\r
39 <xs:element name="MbdHeader">\r
40 <xs:annotation>\r
41 <xs:documentation xml:lang="en">This is the header for the Component Module Build Description (MBD) file. NOTE: The GUID may be different from the GUID in the MSA file, as the Guid is updated every time the file is changed, as the Guid may change if the contents of the file are changed.</xs:documentation>\r
42 </xs:annotation>\r
43 <xs:complexType>\r
44 <xs:sequence>\r
45 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>\r
46 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>\r
47 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>\r
48 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
49 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>\r
50 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>\r
0fce57e7 51 <xs:choice minOccurs="1" maxOccurs="1">\r
52 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>\r
53 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
54 </xs:choice>\r
55 <xs:choice minOccurs="1" maxOccurs="1">\r
56 <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>\r
57 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>\r
58 </xs:choice>\r
878ddf1f 59 </xs:sequence>\r
60 </xs:complexType>\r
61 </xs:element>\r
62 <xs:element name="MbdLibHeader">\r
63 <xs:annotation>\r
64 <xs:documentation xml:lang="en">This is the header for the Library Module Build Description (MBD) file. NOTE: The Guid may be different from the Guid in the MSA file, as the Guid may change when the contents of the file are changed..</xs:documentation>\r
65 </xs:annotation>\r
66 <xs:complexType>\r
67 <xs:sequence>\r
68 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>\r
69 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>\r
70 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>\r
71 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
72 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>\r
73 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>\r
0fce57e7 74 <xs:choice minOccurs="1" maxOccurs="1">\r
75 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>\r
76 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
77 </xs:choice>\r
78 <xs:choice minOccurs="1" maxOccurs="1">\r
79 <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>\r
80 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>\r
81 </xs:choice>\r
878ddf1f 82 </xs:sequence>\r
83 </xs:complexType>\r
84 </xs:element>\r
85 <xs:element name="MsaHeader">\r
86 <xs:annotation>\r
87 <xs:documentation xml:lang="en">This is the Component Module Surface Area Description Header - a replacement for INF files. The GUID may change when the contents of the file are changed.</xs:documentation>\r
88 </xs:annotation>\r
89 <xs:complexType>\r
90 <xs:sequence>\r
91 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>\r
92 <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>\r
93 <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>\r
1be638ed 94 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>\r
95 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>\r
878ddf1f 96 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>\r
97 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>\r
98 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
99 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>\r
100 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>\r
0fce57e7 101 <xs:choice minOccurs="1" maxOccurs="1">\r
102 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>\r
103 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
104 </xs:choice>\r
878ddf1f 105 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>\r
0fce57e7 106 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>\r
878ddf1f 107 </xs:sequence>\r
108 </xs:complexType>\r
109 </xs:element>\r
110 <xs:element name="MsaLibHeader">\r
111 <xs:annotation>\r
112 <xs:documentation xml:lang="en">This is the Library Module Surface Area Description Header - a replacement for INF files. The Guid may change when the contents of the file are changed.</xs:documentation>\r
113 </xs:annotation>\r
114 <xs:complexType>\r
115 <xs:sequence>\r
116 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>\r
117 <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>\r
118 <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>\r
119 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>\r
120 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>\r
121 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>\r
122 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
123 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>\r
124 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>\r
0fce57e7 125 <xs:choice minOccurs="1" maxOccurs="1">\r
126 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>\r
127 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
128 </xs:choice>\r
878ddf1f 129 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>\r
0fce57e7 130 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>\r
878ddf1f 131 </xs:sequence>\r
132 </xs:complexType>\r
133 </xs:element>\r
134 <xs:element name="PlatformHeader">\r
135 <xs:annotation>\r
136 <xs:documentation xml:lang="en">This head is for the Framework Platform Description file (FPD.)</xs:documentation>\r
137 </xs:annotation>\r
138 <xs:complexType>\r
139 <xs:sequence>\r
140 <xs:element minOccurs="1" maxOccurs="1" name="PlatformName" type="PlatformNamingConvention">\r
141 <xs:annotation>\r
142 <xs:documentation xml:lang="en">Define the Name of a Platform</xs:documentation>\r
143 </xs:annotation>\r
144 </xs:element>\r
bab93bdd 145 <xs:choice>\r
146 <xs:element minOccurs="0" maxOccurs="1" ref="Guid">\r
147 <xs:annotation>\r
148 <xs:documentation xml:lang="en">DO NOT USE! removing from XMLSchema</xs:documentation>\r
149 </xs:annotation>\r
150 </xs:element>\r
151 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>\r
152 </xs:choice>\r
878ddf1f 153 <xs:element minOccurs="0" maxOccurs="1" ref="Version"/>\r
154 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>\r
155 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
156 <xs:element minOccurs="0" maxOccurs="1" ref="Copyright"/>\r
157 <xs:element minOccurs="0" maxOccurs="1" ref="License"/>\r
0fce57e7 158 <xs:choice minOccurs="1" maxOccurs="1">\r
bab93bdd 159 <xs:element minOccurs="0" maxOccurs="1" ref="Created">\r
160 <xs:annotation>\r
161 <xs:documentation xml:lang="en">DO NOT USE! removing from XMLSchema</xs:documentation>\r
162 </xs:annotation>\r
163 </xs:element>\r
0fce57e7 164 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
165 </xs:choice>\r
291a871a 166 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedBy">\r
167 <xs:annotation>\r
168 <xs:documentation xml:lang="en">DO NOT USE! removing from XMLSchema</xs:documentation>\r
169 </xs:annotation>\r
170 </xs:element>\r
bab93bdd 171 <xs:choice>\r
172 <xs:element minOccurs="0" maxOccurs="1" ref="Updated">\r
173 <xs:annotation>\r
174 <xs:documentation xml:lang="en">DO NOT USE! removing from XMLSchema</xs:documentation>\r
175 </xs:annotation>\r
176 </xs:element>\r
177 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>\r
178 </xs:choice>\r
179 <xs:element minOccurs="0" maxOccurs="1" ref="PackageType">\r
180 <xs:annotation>\r
181 <xs:documentation xml:lang="en">DO NOT USE! removing from XMLSchema</xs:documentation>\r
182 </xs:annotation>\r
183 </xs:element>\r
184 <xs:element minOccurs="0" maxOccurs="1" name="BuildTarget">\r
185 <xs:simpleType>\r
186 <xs:restriction base="xs:NCName">\r
187 <xs:enumeration value="DEBUG"/>\r
188 <xs:enumeration value="RELEASE"/>\r
189 <xs:enumeration value="BOTH"/>\r
190 </xs:restriction>\r
191 </xs:simpleType>\r
192 </xs:element>\r
878ddf1f 193 </xs:sequence>\r
194 </xs:complexType>\r
195 </xs:element>\r
196 <xs:element name="SpdHeader">\r
197 <xs:annotation>\r
198 <xs:documentation xml:lang="en">This head is for the Surface Area Package Description file (SPD) The Guid may change when the contents of the file are changed.</xs:documentation>\r
199 </xs:annotation>\r
200 <xs:complexType>\r
201 <xs:sequence>\r
202 <xs:element minOccurs="1" maxOccurs="1" ref="PackageName"/>\r
1be638ed 203 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>\r
204 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>\r
878ddf1f 205 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>\r
206 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>\r
207 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>\r
208 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>\r
209 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>\r
0fce57e7 210 <xs:choice minOccurs="1" maxOccurs="1">\r
211 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>\r
212 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>\r
213 </xs:choice>\r
878ddf1f 214 <xs:element minOccurs="0" maxOccurs="1" ref="E-Mail"/>\r
215 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>\r
216 <xs:element minOccurs="0" maxOccurs="1" ref="URL"/>\r
217 <xs:element minOccurs="1" maxOccurs="1" ref="PackageType"/>\r
218 <xs:element minOccurs="0" maxOccurs="1" ref="ReadOnly"/>\r
219 <xs:element minOccurs="0" maxOccurs="1" ref="RePackage"/>\r
220 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Specification"/>\r
221 <xs:element minOccurs="0" maxOccurs="1" ref="OutputDirectory"/>\r
222 </xs:sequence>\r
223 </xs:complexType>\r
224 </xs:element>\r
225</xs:schema>\r