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