Tue, 04 Nov 2025 22:32:14 +0100
update uwproj
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
1 | <?xml version="1.0" encoding="UTF-8"?> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
3 | xmlns="http://unixwork.de/uwproj" |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
4 | targetNamespace="http://unixwork.de/uwproj" |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
5 | elementFormDefault="qualified" |
| 85 | 6 | version="0.4" |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
7 | > |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
8 | <xs:element name="project" type="ProjectType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
9 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
10 | <xs:complexType name="ProjectType"> |
| 76 | 11 | <xs:annotation> |
| 12 | <xs:documentation> | |
| 13 | The root element of an uwproj project. | |
| 14 | Consists of an optional <code>config</code> element | |
| 15 | and an arbitrary number of <code>dependency</code> | |
| 16 | and <code>target</code> elements. | |
| 17 | </xs:documentation> | |
| 18 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
19 | <xs:sequence> |
| 76 | 20 | <xs:element name="config" type="ConfigType" minOccurs="0" maxOccurs="unbounded"/> |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
21 | <xs:element name="dependency" type="DependencyType" minOccurs="0" maxOccurs="unbounded"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
22 | <xs:element name="target" type="TargetType" minOccurs="0" maxOccurs="unbounded"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
23 | </xs:sequence> |
| 76 | 24 | <xs:attribute name="version" type="xs:string" use="required" /> |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
25 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
26 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
27 | <xs:complexType name="ConfigType"> |
| 76 | 28 | <xs:annotation> |
| 29 | <xs:documentation> | |
| 30 | <p> | |
| 31 | The configuration section. | |
| 32 | Consists of an arbitrary number of <code>var</code> elements. | |
| 33 | </p> | |
| 34 | <p> | |
| 35 | The optional <code>platform</code> attribute may specify a <em>single</em> platform identifier and | |
| 36 | the optional <code>not</code> attribute may specify a comma-separated list of platform identifiers. | |
| 37 | The configure script shall skip this config declaration if the detected platform is not matching | |
| 38 | the filter specification of these attributes. | |
| 39 | </p> | |
| 40 | </xs:documentation> | |
| 41 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
42 | <xs:sequence> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
43 | <xs:element name="var" type="ConfigVarType" minOccurs="0" maxOccurs="unbounded"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
44 | </xs:sequence> |
| 76 | 45 | <xs:attribute name="platform" type="xs:string"/> |
| 46 | <xs:attribute name="not" type="xs:string"/> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
47 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
48 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
49 | <xs:complexType name="ConfigVarType"> |
| 76 | 50 | <xs:annotation> |
| 51 | <xs:documentation> | |
| 52 | The definition of a configuration variable. | |
| 53 | <p> | |
| 54 | Configuration variables are supposed to be used in the configure script and are also | |
| 55 | written to the resulting config file (in contrast to make variables, which are only | |
| 56 | written to the config file). | |
| 57 | The <code>name</code> attribute is mandatory, the value is defined by the text body of the element. | |
| 58 | The optional Boolean <code>exec</code> attribute (false by default) controls, whether the entire | |
| 59 | definition is automatically executed under command substitution. | |
| 60 | </p> | |
| 61 | </xs:documentation> | |
| 62 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
63 | <xs:simpleContent> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
64 | <xs:extension base="xs:string"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
65 | <xs:attribute name="name" type="xs:string" use="required"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
66 | <xs:attribute name="exec" type="xs:boolean" default="false"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
67 | </xs:extension> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
68 | </xs:simpleContent> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
69 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
70 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
71 | <xs:complexType name="PkgConfigType"> |
| 76 | 72 | <xs:annotation> |
| 73 | <xs:documentation> | |
| 74 | Instructs configure to invoke <code>pkg-config</code>, if present on the system, to determine | |
| 75 | compiler and linker flags. The text body of this element defines the package name to search. | |
| 76 | To constrain the allowed versions, use the attributes <code>atleast, exact, max</code>. | |
| 77 | </xs:documentation> | |
| 78 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
79 | <xs:simpleContent> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
80 | <xs:extension base="xs:string"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
81 | <xs:attribute name="atleast" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
82 | <xs:attribute name="exact" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
83 | <xs:attribute name="max" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
84 | </xs:extension> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
85 | </xs:simpleContent> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
86 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
87 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
88 | <xs:simpleType name="LangType"> |
| 76 | 89 | <xs:annotation> |
| 90 | <xs:documentation> | |
| 91 | Requests a compiler for the specified language. Allowed values are | |
| 92 | c, cpp. | |
| 93 | </xs:documentation> | |
| 94 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
95 | <xs:restriction base="xs:string"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
96 | <xs:enumeration value="c"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
97 | <xs:enumeration value="cpp"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
98 | </xs:restriction> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
99 | </xs:simpleType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
100 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
101 | <xs:complexType name="DependencyType"> |
| 76 | 102 | <xs:annotation> |
| 103 | <xs:documentation> | |
| 104 | Declares a dependency. | |
| 105 | <p> | |
| 106 | If the optional <code>name</code> attribute is omitted, the dependency is global | |
| 107 | and must be satisfied, otherwise configuration shall fail. | |
| 108 | A <em>named dependency</em> can be referenced by a target (or is implicitly referenced | |
| 109 | by the default target, if no targets are specified). | |
| 110 | Multiple declarations for the same named dependency may exist, in which case each declaration | |
| 111 | is checked one after another, until one block is satisfied. The result of the first satisfied | |
| 112 | dependency declaration is supposed to be applied to the config file. | |
| 113 | </p> | |
| 114 | <p> | |
| 115 | The optional <code>platform</code> attribute may specify a <em>single</em> platform identifier and | |
| 116 | the optional <code>toolchain</code> attribute may specify a <em>single</em> toolchain. | |
| 117 | The optional <code>not</code> attribute may specify a comma-separated list of platform and/or | |
| 118 | toolchain identifiers. | |
| 119 | The configure script shall skip this dependency declaration if the detected platform and toolchain | |
| 120 | is not matching the filter specification of these attributes. | |
| 121 | </p> | |
| 122 | </xs:documentation> | |
| 123 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
124 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
125 | <xs:element name="lang" type="LangType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
126 | <xs:element name="cflags" type="FlagsType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
127 | <xs:element name="cxxflags" type="FlagsType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
128 | <xs:element name="ldflags" type="FlagsType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
129 | <xs:element name="pkgconfig" type="PkgConfigType"/> |
| 76 | 130 | <xs:element name="test" type="xs:string"> |
| 131 | <xs:annotation> | |
| 132 | <xs:documentation> | |
| 133 | Specifies a custom command that shall be executed to test whether this dependency is satisfied. | |
| 134 | </xs:documentation> | |
| 135 | </xs:annotation> | |
| 136 | </xs:element> | |
| 137 | <xs:element name="make" type="MakeVarType"/> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
138 | </xs:choice> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
139 | <xs:attribute name="name" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
140 | <xs:attribute name="platform" type="xs:string"/> |
| 76 | 141 | <xs:attribute name="toolchain" type="xs:string"/> |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
142 | <xs:attribute name="not" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
143 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
144 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
145 | <xs:complexType name="FlagsType"> |
| 76 | 146 | <xs:annotation> |
| 147 | <xs:documentation> | |
| 148 | Instructs configure to append the contents of the element's body to the respective flags variable. | |
| 149 | If the optional <code>exec</code> flag is set to <code>true</code>, the contents are supposed to be | |
| 150 | executed under command substitution <em>at configuration time</em> before they are applied. | |
| 151 | </xs:documentation> | |
| 152 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
153 | <xs:simpleContent> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
154 | <xs:extension base="xs:string"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
155 | <xs:attribute name="exec" type="xs:boolean" default="false"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
156 | </xs:extension> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
157 | </xs:simpleContent> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
158 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
159 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
160 | <xs:complexType name="TargetType"> |
| 76 | 161 | <xs:annotation> |
| 162 | <xs:documentation> | |
| 163 | Declares a build target that is supposed to be configured. | |
| 164 | <p> | |
| 165 | If no build target is declared explicitly, an implicit default | |
| 166 | target is generated, which has the <code>alldependencies</code> | |
| 167 | flag set. | |
| 168 | </p> | |
| 169 | <p> | |
| 170 | The optional <code>name</code> attribute is also used to generate a prefix | |
| 171 | for the compiler and linker flags variables. | |
| 172 | Furthermore, a target may consist of an arbitrary number of <code>feature</code>, | |
| 173 | <code>option</code>, and <code>define</code> elements. | |
| 174 | Named dependencies can be listed (separated by comma) in the <code>dependencies</code> | |
| 175 | element. If this target shall use <em>all</em> available named dependencies, the empty | |
| 176 | element <code>alldependencies</code> can be used as a shortcut. | |
| 177 | </p> | |
| 178 | </xs:documentation> | |
| 179 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
180 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
181 | <xs:element name="feature" type="FeatureType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
182 | <xs:element name="option" type="OptionType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
183 | <xs:element name="define" type="DefineType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
184 | <xs:element name="dependencies" type="DependenciesType"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
185 | <xs:element name="alldependencies"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
186 | <xs:complexType/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
187 | </xs:element> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
188 | </xs:choice> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
189 | <xs:attribute name="name" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
190 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
191 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
192 | <xs:complexType name="FeatureType"> |
| 76 | 193 | <xs:annotation> |
| 194 | <xs:documentation> | |
| 195 | Declares an optional feature, that can be enabled during configuration, if all | |
| 196 | <code>dependencies</code> are satisfied. | |
| 197 | If a feature is enabled, all <code>define</code> and <code>make</code> definitions are | |
| 198 | supposed to be applied to the config file. | |
| 199 | If a feature is disabled, an optional <code>disabled</code> element may specify which | |
| 200 | <code>define</code> and <code>make</code> definitions are supposed to be applied. | |
| 201 | There might also be <code>dependencies</code> when the feature is disabled (e.g. specifying a fallback). | |
| 202 | In case the optional <code>default</code> attribute is set to true, the feature is enabled by default | |
| 203 | and is supposed to be automatically disabled (without error) when the dependencies are not satisfied. | |
| 204 | The name that is supposed to be used for the --enable and --disable arguments can be optionally | |
| 205 | specified with the <code>arg</code> attribute. Otherwise, the <code>name</code> is used by default. | |
| 206 | Optionally, a description for the help text of the resulting configure script can be specified by | |
| 207 | adding a <code>desc</code> element. | |
| 208 | </xs:documentation> | |
| 209 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
210 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
211 | <xs:group ref="TargetDataGroup"/> |
| 76 | 212 | <xs:element name="desc" type="xs:string"/> |
| 213 | <xs:element name="disabled"> | |
| 214 | <xs:complexType> | |
| 215 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
| 216 | <xs:group ref="TargetDataGroup"/> | |
| 217 | </xs:choice> | |
| 218 | </xs:complexType> | |
| 219 | </xs:element> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
220 | </xs:choice> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
221 | <xs:attribute name="name" type="xs:string" use="required"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
222 | <xs:attribute name="arg" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
223 | <xs:attribute name="default" type="xs:boolean" default="false"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
224 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
225 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
226 | <xs:complexType name="OptionType"> |
| 76 | 227 | <xs:annotation> |
| 228 | <xs:documentation> | |
| 229 | Declares a configuration option. | |
| 230 | The option argument name is specified with the <code>arg</code> attribute. | |
| 231 | Then, the children of this element specify possible <code>values</code> by defining the conditions | |
| 232 | (in terms of dependencies) and effects (in terms of defines and make variables) of each value. | |
| 233 | Finally, a set of <code>default</code>s is specified which supposed to automagically select the most | |
| 234 | appropriate value for a specific platform under the available dependencies (in case the option is not | |
| 235 | explicitly specified by using the command line argument). | |
| 236 | </xs:documentation> | |
| 237 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
238 | <xs:sequence> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
239 | <xs:element name="value" type="OptionValueType" minOccurs="0" maxOccurs="unbounded"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
240 | <xs:element name="default" type="OptionDefaultType" minOccurs="0" maxOccurs="unbounded"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
241 | </xs:sequence> |
| 76 | 242 | <xs:attribute name="arg" type="xs:string" use="required"/> |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
243 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
244 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
245 | <xs:complexType name="OptionValueType"> |
| 76 | 246 | <xs:annotation> |
| 247 | <xs:documentation> | |
| 248 | Declares a possible value for the option (in the <code>str</code> attribute) and | |
| 249 | the conditions (<code>dependencies</code>) and effects, the value has. | |
| 250 | </xs:documentation> | |
| 251 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
252 | <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
253 | <xs:group ref="TargetDataGroup"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
254 | </xs:choice> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
255 | <xs:attribute name="str" type="xs:string" use="required"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
256 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
257 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
258 | <xs:complexType name="OptionDefaultType"> |
| 76 | 259 | <xs:annotation> |
| 260 | <xs:documentation> | |
| 261 | Specifies a default value for this option. Multiple default values can be specified, in which case | |
| 262 | they are checked one after another for availability. With the optional <code>platform</code> attribute, | |
| 263 | the default value can be constrained to a <em>single</em> specific platform and is supposed to be | |
| 264 | skipped by configure, when this platform is not detected. | |
| 265 | </xs:documentation> | |
| 266 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
267 | <xs:attribute name="value" type="xs:string" use="required"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
268 | <xs:attribute name="platform" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
269 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
270 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
271 | <xs:group name="TargetDataGroup"> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
272 | <xs:choice> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
273 | <xs:element name="define" type="DefineType" minOccurs="0" maxOccurs="unbounded"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
274 | <xs:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="unbounded"/> |
| 76 | 275 | <xs:element name="make" type="MakeVarType" minOccurs="0" maxOccurs="unbounded"/> |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
276 | </xs:choice> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
277 | </xs:group> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
278 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
279 | <xs:complexType name="DefineType"> |
| 76 | 280 | <xs:annotation> |
| 281 | <xs:documentation> | |
| 282 | Specifies C/C++ pre-processor definitions that are supposed to | |
| 283 | be appended to the compiler flags, if supported. | |
| 284 | (Note: for example, Fortran also supports C/C++ style pre-processor definitions under | |
| 285 | certain circumstances) | |
| 286 | </xs:documentation> | |
| 287 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
288 | <xs:attribute name="name" type="xs:string" use="required"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
289 | <xs:attribute name="value" type="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
290 | </xs:complexType> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
291 | |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
292 | <xs:simpleType name="DependenciesType"> |
| 76 | 293 | <xs:annotation> |
| 294 | <xs:documentation>A comma-separated list of named dependencies.</xs:documentation> | |
| 295 | </xs:annotation> | |
|
71
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
296 | <xs:restriction base="xs:string"/> |
|
0bdb910478cc
add uwproj configure script generator
Mike Becker <universe@uap-core.de>
parents:
diff
changeset
|
297 | </xs:simpleType> |
| 76 | 298 | |
| 299 | <xs:simpleType name="MakeVarType"> | |
| 300 | <xs:annotation> | |
| 301 | <xs:documentation> | |
| 302 | The text contents in the body of this element are supposed to be appended literally | |
| 303 | to the config file without prior processing. | |
| 304 | </xs:documentation> | |
| 305 | </xs:annotation> | |
| 306 | <xs:restriction base="xs:string"/> | |
| 307 | </xs:simpleType> | |
| 308 | </xs:schema> |