Tue, 12 Sep 2023 20:17:53 +0200
update hgignore
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 | ||
46
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
33 | <xs:complexType name="PkgConfigType"> |
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
34 | <xs:simpleContent> |
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
35 | <xs:extension base="xs:string"> |
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
36 | <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
|
37 | <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
|
38 | <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
|
39 | </xs:extension> |
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
40 | </xs:simpleContent> |
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
41 | </xs:complexType> |
096f3105b3b1
add support for pkgconf version constraints - fixes #294
Mike Becker <universe@uap-core.de>
parents:
44
diff
changeset
|
42 | |
29 | 43 | <xs:complexType name="DependencyType"> |
44 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
45 | <xs:element name="lang" type="xs:string"/> | |
46 | <xs:element name="cflags" type="FlagsType"/> | |
47 | <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
|
48 | <xs:element name="pkgconfig" type="PkgConfigType"/> |
29 | 49 | <xs:element name="test" type="xs:string"/> |
50 | <xs:element name="make" type="xs:string"/> | |
51 | </xs:choice> | |
52 | <xs:attribute name="name" type="xs:string"/> | |
53 | <xs:attribute name="platform" type="xs:string"/> | |
54 | <xs:attribute name="not" type="xs:string"/> | |
55 | </xs:complexType> | |
56 | ||
57 | <xs:complexType name="FlagsType"> | |
58 | <xs:simpleContent> | |
59 | <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
|
60 | <xs:attribute name="exec" type="xs:boolean" default="false"/> |
29 | 61 | </xs:extension> |
62 | </xs:simpleContent> | |
63 | </xs:complexType> | |
64 | ||
65 | <xs:complexType name="TargetType"> | |
66 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
67 | <xs:element name="feature" type="FeatureType"/> | |
68 | <xs:element name="option" type="OptionType"/> | |
69 | <xs:element name="define" type="DefineType"/> | |
70 | <xs:element name="dependencies" type="DependenciesType"/> | |
71 | <xs:element name="alldependencies"> | |
72 | <xs:complexType/> | |
73 | </xs:element> | |
74 | </xs:choice> | |
75 | <xs:attribute name="name" type="xs:string"/> | |
76 | </xs:complexType> | |
77 | ||
78 | <xs:complexType name="FeatureType"> | |
79 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
80 | <xs:group ref="TargetDataGroup"/> | |
81 | </xs:choice> | |
82 | <xs:attribute name="name" type="xs:string" use="required"/> | |
83 | <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
|
84 | <xs:attribute name="default" type="xs:boolean" default="false"/> |
29 | 85 | </xs:complexType> |
86 | ||
87 | <xs:complexType name="OptionType"> | |
88 | <xs:sequence> | |
89 | <xs:element name="value" type="OptionValueType" minOccurs="0" maxOccurs="unbounded"/> | |
90 | <xs:element name="default" type="OptionDefaultType" minOccurs="0" maxOccurs="unbounded"/> | |
91 | </xs:sequence> | |
92 | <xs:attribute name="arg" type="xs:string"/> | |
93 | </xs:complexType> | |
94 | ||
95 | <xs:complexType name="OptionValueType"> | |
96 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
97 | <xs:group ref="TargetDataGroup"/> | |
98 | </xs:choice> | |
99 | <xs:attribute name="str" type="xs:string" use="required"/> | |
100 | </xs:complexType> | |
101 | ||
102 | <xs:complexType name="OptionDefaultType"> | |
103 | <xs:attribute name="value" type="xs:string" use="required"/> | |
104 | <xs:attribute name="platform" type="xs:string"/> | |
105 | </xs:complexType> | |
106 | ||
107 | <xs:group name="TargetDataGroup"> | |
108 | <xs:choice> | |
109 | <xs:element name="define" type="DefineType" minOccurs="0" maxOccurs="unbounded"/> | |
110 | <xs:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="unbounded"/> | |
111 | <xs:element name="make" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> | |
112 | </xs:choice> | |
113 | </xs:group> | |
114 | ||
115 | <xs:complexType name="DefineType"> | |
116 | <xs:attribute name="name" type="xs:string" use="required"/> | |
117 | <xs:attribute name="value" type="xs:string"/> | |
118 | </xs:complexType> | |
119 | ||
120 | <xs:simpleType name="DependenciesType"> | |
121 | <xs:restriction base="xs:string"/> | |
122 | </xs:simpleType> | |
123 | </xs:schema> |