Sun, 10 Sep 2023 13:10:07 +0200
make FeatureType.default an xs:boolean - fixes #296
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"> | |
11 | <xs:sequence> | |
12 | <xs:element name="config" type="ConfigType" minOccurs="0"/> | |
13 | <xs:element name="dependency" type="DependencyType" minOccurs="0" maxOccurs="unbounded"/> | |
14 | <xs:element name="target" type="TargetType" minOccurs="0" maxOccurs="unbounded"/> | |
15 | </xs:sequence> | |
16 | </xs:complexType> | |
17 | ||
18 | <xs:complexType name="ConfigType"> | |
19 | <xs:sequence> | |
20 | <xs:element name="var" type="ConfigVarType" minOccurs="0" maxOccurs="unbounded"/> | |
21 | </xs:sequence> | |
22 | </xs:complexType> | |
23 | ||
24 | <xs:complexType name="ConfigVarType"> | |
25 | <xs:simpleContent> | |
26 | <xs:extension base="xs:string"> | |
27 | <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
|
28 | <xs:attribute name="exec" type="xs:boolean" default="false"/> |
29 | 29 | </xs:extension> |
30 | </xs:simpleContent> | |
31 | </xs:complexType> | |
32 | ||
33 | <xs:complexType name="DependencyType"> | |
34 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
35 | <xs:element name="lang" type="xs:string"/> | |
36 | <xs:element name="cflags" type="FlagsType"/> | |
37 | <xs:element name="ldflags" type="FlagsType"/> | |
38 | <xs:element name="pkgconfig" type="xs:string"/> | |
39 | <xs:element name="test" type="xs:string"/> | |
40 | <xs:element name="make" type="xs:string"/> | |
41 | </xs:choice> | |
42 | <xs:attribute name="name" type="xs:string"/> | |
43 | <xs:attribute name="platform" type="xs:string"/> | |
44 | <xs:attribute name="not" type="xs:string"/> | |
45 | </xs:complexType> | |
46 | ||
47 | <xs:complexType name="FlagsType"> | |
48 | <xs:simpleContent> | |
49 | <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
|
50 | <xs:attribute name="exec" type="xs:boolean" default="false"/> |
29 | 51 | </xs:extension> |
52 | </xs:simpleContent> | |
53 | </xs:complexType> | |
54 | ||
55 | <xs:complexType name="TargetType"> | |
56 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
57 | <xs:element name="feature" type="FeatureType"/> | |
58 | <xs:element name="option" type="OptionType"/> | |
59 | <xs:element name="define" type="DefineType"/> | |
60 | <xs:element name="dependencies" type="DependenciesType"/> | |
61 | <xs:element name="alldependencies"> | |
62 | <xs:complexType/> | |
63 | </xs:element> | |
64 | </xs:choice> | |
65 | <xs:attribute name="name" type="xs:string"/> | |
66 | </xs:complexType> | |
67 | ||
68 | <xs:complexType name="FeatureType"> | |
69 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
70 | <xs:group ref="TargetDataGroup"/> | |
71 | </xs:choice> | |
72 | <xs:attribute name="name" type="xs:string" use="required"/> | |
73 | <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
|
74 | <xs:attribute name="default" type="xs:boolean" default="false"/> |
29 | 75 | </xs:complexType> |
76 | ||
77 | <xs:complexType name="OptionType"> | |
78 | <xs:sequence> | |
79 | <xs:element name="value" type="OptionValueType" minOccurs="0" maxOccurs="unbounded"/> | |
80 | <xs:element name="default" type="OptionDefaultType" minOccurs="0" maxOccurs="unbounded"/> | |
81 | </xs:sequence> | |
82 | <xs:attribute name="arg" type="xs:string"/> | |
83 | </xs:complexType> | |
84 | ||
85 | <xs:complexType name="OptionValueType"> | |
86 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
87 | <xs:group ref="TargetDataGroup"/> | |
88 | </xs:choice> | |
89 | <xs:attribute name="str" type="xs:string" use="required"/> | |
90 | </xs:complexType> | |
91 | ||
92 | <xs:complexType name="OptionDefaultType"> | |
93 | <xs:attribute name="value" type="xs:string" use="required"/> | |
94 | <xs:attribute name="platform" type="xs:string"/> | |
95 | </xs:complexType> | |
96 | ||
97 | <xs:group name="TargetDataGroup"> | |
98 | <xs:choice> | |
99 | <xs:element name="define" type="DefineType" minOccurs="0" maxOccurs="unbounded"/> | |
100 | <xs:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="unbounded"/> | |
101 | <xs:element name="make" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> | |
102 | </xs:choice> | |
103 | </xs:group> | |
104 | ||
105 | <xs:complexType name="DefineType"> | |
106 | <xs:attribute name="name" type="xs:string" use="required"/> | |
107 | <xs:attribute name="value" type="xs:string"/> | |
108 | </xs:complexType> | |
109 | ||
110 | <xs:simpleType name="DependenciesType"> | |
111 | <xs:restriction base="xs:string"/> | |
112 | </xs:simpleType> | |
113 | </xs:schema> |