1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
3 xmlns="http://unixwork.de/uwproj" |
3 xmlns="http://unixwork.de/uwproj" |
4 targetNamespace="http://unixwork.de/uwproj" |
4 targetNamespace="http://unixwork.de/uwproj" |
5 elementFormDefault="qualified" |
5 elementFormDefault="qualified" |
6 version="0.1" |
6 version="0.2" |
7 > |
7 > |
8 <xs:element name="project" type="ProjectType"/> |
8 <xs:element name="project" type="ProjectType"/> |
9 |
9 |
10 <xs:complexType name="ProjectType"> |
10 <xs:complexType name="ProjectType"> |
11 <xs:annotation> |
11 <xs:annotation> |
100 is checked one after another, until one block is satisfied. The result of the first satisfied |
100 is checked one after another, until one block is satisfied. The result of the first satisfied |
101 dependency declaration is supposed to be applied to the config file. |
101 dependency declaration is supposed to be applied to the config file. |
102 </p> |
102 </p> |
103 <p> |
103 <p> |
104 The optional <code>platform</code> attribute may specify a <em>single</em> platform identifier and |
104 The optional <code>platform</code> attribute may specify a <em>single</em> platform identifier and |
105 the optional <code>not</code> attribute may specify a comma-separated list of platform identifiers. |
105 the optional <code>toolchain</code> attribute may specify a <em>single</em> toolchain. |
106 The configure script shall skip this dependency declaration if the detected platform is not |
106 The optional <code>not</code> attribute may specify a comma-separated list of platform and/or |
107 matching the filter specification of these attributes. |
107 toolchain identifiers. |
|
108 The configure script shall skip this dependency declaration if the detected platform and toolchain |
|
109 is not matching the filter specification of these attributes. |
108 </p> |
110 </p> |
109 </xs:documentation> |
111 </xs:documentation> |
110 </xs:annotation> |
112 </xs:annotation> |
111 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
113 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
112 <xs:element name="lang" type="LangType"/> |
114 <xs:element name="lang" type="LangType"/> |
123 </xs:element> |
125 </xs:element> |
124 <xs:element name="make" type="MakeVarType"/> |
126 <xs:element name="make" type="MakeVarType"/> |
125 </xs:choice> |
127 </xs:choice> |
126 <xs:attribute name="name" type="xs:string"/> |
128 <xs:attribute name="name" type="xs:string"/> |
127 <xs:attribute name="platform" type="xs:string"/> |
129 <xs:attribute name="platform" type="xs:string"/> |
|
130 <xs:attribute name="toolchain" type="xs:string"/> |
128 <xs:attribute name="not" type="xs:string"/> |
131 <xs:attribute name="not" type="xs:string"/> |
129 </xs:complexType> |
132 </xs:complexType> |
130 |
133 |
131 <xs:complexType name="FlagsType"> |
134 <xs:complexType name="FlagsType"> |
132 <xs:annotation> |
135 <xs:annotation> |
184 supposed to be applied to the config file. |
187 supposed to be applied to the config file. |
185 In case the optional <code>default</code> attribute is set to true, the feature is enabled by default |
188 In case the optional <code>default</code> attribute is set to true, the feature is enabled by default |
186 and is supposed to be automatically disabled (without error) when the dependencies are not satisfied. |
189 and is supposed to be automatically disabled (without error) when the dependencies are not satisfied. |
187 The name that is supposed to be used for the --enable and --disable arguments can be optionally |
190 The name that is supposed to be used for the --enable and --disable arguments can be optionally |
188 specified with the <code>arg</code> attribute. Otherwise, the <code>name</code> is used by default. |
191 specified with the <code>arg</code> attribute. Otherwise, the <code>name</code> is used by default. |
|
192 Optionally, a description for the help text of the resulting configure script can be specified by |
|
193 adding a <code>desc</code> element. |
189 </xs:documentation> |
194 </xs:documentation> |
190 </xs:annotation> |
195 </xs:annotation> |
191 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
196 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
192 <xs:group ref="TargetDataGroup"/> |
197 <xs:group ref="TargetDataGroup"/> |
193 </xs:choice> |
198 </xs:choice> |
194 <xs:attribute name="name" type="xs:string" use="required"/> |
199 <xs:attribute name="name" type="xs:string" use="required"/> |
195 <xs:attribute name="arg" type="xs:string"/> |
200 <xs:attribute name="arg" type="xs:string"/> |
196 <xs:attribute name="default" type="xs:boolean" default="false"/> |
201 <xs:attribute name="default" type="xs:boolean" default="false"/> |
|
202 <xs:element name="desc" type="xs:string"/> |
197 </xs:complexType> |
203 </xs:complexType> |
198 |
204 |
199 <xs:complexType name="OptionType"> |
205 <xs:complexType name="OptionType"> |
200 <xs:annotation> |
206 <xs:annotation> |
201 <xs:documentation> |
207 <xs:documentation> |