uwproj.xsd

Sun, 03 Sep 2023 12:36:53 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 03 Sep 2023 12:36:53 +0200
changeset 36
9e386a530bdf
parent 29
5e958351935d
child 41
75ee588d5d9e
permissions
-rw-r--r--

copy contents of toolchain.mk instead of including them - fixes #287

29
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
3 xmlns="http://unixwork.de/uwproj"
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
4 targetNamespace="http://unixwork.de/uwproj"
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
5 elementFormDefault="qualified">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
6 <xs:element name="project" type="ProjectType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
7
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
8 <xs:complexType name="ProjectType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
9 <xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
10 <xs:element name="property" type="PropertyType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
11 <xs:element name="config" type="ConfigType" minOccurs="0"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
12 <xs:element name="dependency" type="DependencyType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
13 <xs:element name="target" type="TargetType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
14 </xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
15 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
16
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
17 <xs:complexType name="PropertyType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
18 <xs:attribute name="name" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
19 <xs:attribute name="value" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
20 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
21
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
22 <xs:complexType name="ConfigType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
23 <xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
24 <xs:element name="var" type="ConfigVarType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
25 </xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
26 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
27
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
28 <xs:complexType name="ConfigVarType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
29 <xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
30 <xs:extension base="xs:string">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
31 <xs:attribute name="name" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
32 <xs:attribute name="type" type="ExecType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
33 </xs:extension>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
34 </xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
35 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
36
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
37 <!-- TODO: we should replace this type with a simple Boolean -->
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
38 <xs:simpleType name="ExecType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
39 <xs:restriction base="xs:string">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
40 <xs:enumeration value="exec"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
41 </xs:restriction>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
42 </xs:simpleType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
43
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
44 <xs:complexType name="DependencyType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
45 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
46 <xs:element name="lang" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
47 <xs:element name="cflags" type="FlagsType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
48 <xs:element name="ldflags" type="FlagsType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
49 <xs:element name="pkgconfig" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
50 <xs:element name="test" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
51 <xs:element name="make" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
52 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
53 <xs:attribute name="name" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
54 <xs:attribute name="platform" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
55 <xs:attribute name="not" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
56 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
57
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
58 <xs:complexType name="FlagsType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
59 <xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
60 <xs:extension base="xs:string">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
61 <xs:attribute name="type" type="ExecType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
62 </xs:extension>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
63 </xs:simpleContent>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
64 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
65
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
66 <xs:complexType name="TargetType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
67 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
68 <xs:element name="feature" type="FeatureType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
69 <xs:element name="option" type="OptionType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
70 <xs:element name="define" type="DefineType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
71 <xs:element name="dependencies" type="DependenciesType"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
72 <xs:element name="alldependencies">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
73 <xs:complexType/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
74 </xs:element>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
75 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
76 <xs:attribute name="name" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
77 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
78
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
79 <xs:complexType name="FeatureType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
80 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
81 <xs:group ref="TargetDataGroup"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
82 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
83 <xs:attribute name="name" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
84 <xs:attribute name="arg" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
85 <xs:attribute name="default" default="false">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
86 <!-- TODO: this should be just Boolean -->
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
87 <xs:simpleType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
88 <xs:restriction base="xs:string">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
89 <xs:enumeration value="true"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
90 <xs:enumeration value="false"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
91 <xs:enumeration value="on"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
92 <xs:enumeration value="off"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
93 </xs:restriction>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
94 </xs:simpleType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
95 </xs:attribute>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
96 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
97
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
98 <xs:complexType name="OptionType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
99 <xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
100 <xs:element name="value" type="OptionValueType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
101 <xs:element name="default" type="OptionDefaultType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
102 </xs:sequence>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
103 <xs:attribute name="arg" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
104 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
105
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
106 <xs:complexType name="OptionValueType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
107 <xs:choice minOccurs="0" maxOccurs="unbounded">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
108 <xs:group ref="TargetDataGroup"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
109 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
110 <xs:attribute name="str" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
111 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
112
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
113 <xs:complexType name="OptionDefaultType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
114 <xs:attribute name="value" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
115 <xs:attribute name="platform" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
116 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
117
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
118 <xs:group name="TargetDataGroup">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
119 <xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
120 <xs:element name="define" type="DefineType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
121 <xs:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
122 <xs:element name="make" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
123 </xs:choice>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
124 </xs:group>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
125
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
126 <xs:complexType name="DefineType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
127 <xs:attribute name="name" type="xs:string" use="required"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
128 <xs:attribute name="value" type="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
129 </xs:complexType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
130
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
131 <xs:simpleType name="DependenciesType">
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
132 <xs:restriction base="xs:string"/>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
133 </xs:simpleType>
5e958351935d add XML schema - fixes #267
Mike Becker <universe@uap-core.de>
parents:
diff changeset
134 </xs:schema>

mercurial