test/make/uwproj.xsd

Tue, 12 Nov 2024 17:00:51 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 12 Nov 2024 17:00:51 +0100
changeset 123
d89b75fdf0aa
parent 120
0e3827ebc6e4
permissions
-rw-r--r--

add target data for disabled features - resolves #476

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

mercurial