Mon, 18 Sep 2023 22:49:54 +0200
add support for cxxflags and fix lang parser
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 | |
65
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
43 | <xs:simpleType name="LangType"> |
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
44 | <xs:restriction base="xs:string"> |
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
45 | <xs:enumeration value="c"/> |
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
46 | <xs:enumeration value="cpp"/> |
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
47 | </xs:restriction> |
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
48 | </xs:simpleType> |
6db50c6df6e3
add support for cxxflags and fix lang parser
Mike Becker <universe@uap-core.de>
parents:
46
diff
changeset
|
49 | |
29 | 50 | <xs:complexType name="DependencyType"> |
51 | <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
|
52 | <xs:element name="lang" type="LangType"/> |
29 | 53 | <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
|
54 | <xs:element name="cxxflags" type="FlagsType"/> |
29 | 55 | <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
|
56 | <xs:element name="pkgconfig" type="PkgConfigType"/> |
29 | 57 | <xs:element name="test" type="xs:string"/> |
58 | <xs:element name="make" type="xs:string"/> | |
59 | </xs:choice> | |
60 | <xs:attribute name="name" type="xs:string"/> | |
61 | <xs:attribute name="platform" type="xs:string"/> | |
62 | <xs:attribute name="not" type="xs:string"/> | |
63 | </xs:complexType> | |
64 | ||
65 | <xs:complexType name="FlagsType"> | |
66 | <xs:simpleContent> | |
67 | <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
|
68 | <xs:attribute name="exec" type="xs:boolean" default="false"/> |
29 | 69 | </xs:extension> |
70 | </xs:simpleContent> | |
71 | </xs:complexType> | |
72 | ||
73 | <xs:complexType name="TargetType"> | |
74 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
75 | <xs:element name="feature" type="FeatureType"/> | |
76 | <xs:element name="option" type="OptionType"/> | |
77 | <xs:element name="define" type="DefineType"/> | |
78 | <xs:element name="dependencies" type="DependenciesType"/> | |
79 | <xs:element name="alldependencies"> | |
80 | <xs:complexType/> | |
81 | </xs:element> | |
82 | </xs:choice> | |
83 | <xs:attribute name="name" type="xs:string"/> | |
84 | </xs:complexType> | |
85 | ||
86 | <xs:complexType name="FeatureType"> | |
87 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
88 | <xs:group ref="TargetDataGroup"/> | |
89 | </xs:choice> | |
90 | <xs:attribute name="name" type="xs:string" use="required"/> | |
91 | <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
|
92 | <xs:attribute name="default" type="xs:boolean" default="false"/> |
29 | 93 | </xs:complexType> |
94 | ||
95 | <xs:complexType name="OptionType"> | |
96 | <xs:sequence> | |
97 | <xs:element name="value" type="OptionValueType" minOccurs="0" maxOccurs="unbounded"/> | |
98 | <xs:element name="default" type="OptionDefaultType" minOccurs="0" maxOccurs="unbounded"/> | |
99 | </xs:sequence> | |
100 | <xs:attribute name="arg" type="xs:string"/> | |
101 | </xs:complexType> | |
102 | ||
103 | <xs:complexType name="OptionValueType"> | |
104 | <xs:choice minOccurs="0" maxOccurs="unbounded"> | |
105 | <xs:group ref="TargetDataGroup"/> | |
106 | </xs:choice> | |
107 | <xs:attribute name="str" type="xs:string" use="required"/> | |
108 | </xs:complexType> | |
109 | ||
110 | <xs:complexType name="OptionDefaultType"> | |
111 | <xs:attribute name="value" type="xs:string" use="required"/> | |
112 | <xs:attribute name="platform" type="xs:string"/> | |
113 | </xs:complexType> | |
114 | ||
115 | <xs:group name="TargetDataGroup"> | |
116 | <xs:choice> | |
117 | <xs:element name="define" type="DefineType" minOccurs="0" maxOccurs="unbounded"/> | |
118 | <xs:element name="dependencies" type="DependenciesType" minOccurs="0" maxOccurs="unbounded"/> | |
119 | <xs:element name="make" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> | |
120 | </xs:choice> | |
121 | </xs:group> | |
122 | ||
123 | <xs:complexType name="DefineType"> | |
124 | <xs:attribute name="name" type="xs:string" use="required"/> | |
125 | <xs:attribute name="value" type="xs:string"/> | |
126 | </xs:complexType> | |
127 | ||
128 | <xs:simpleType name="DependenciesType"> | |
129 | <xs:restriction base="xs:string"/> | |
130 | </xs:simpleType> | |
131 | </xs:schema> |