|
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" |
|
5 elementFormDefault="qualified" |
|
6 version="0.1" |
|
7 > |
|
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"/> |
|
28 <xs:attribute name="exec" type="xs:boolean" default="false"/> |
|
29 </xs:extension> |
|
30 </xs:simpleContent> |
|
31 </xs:complexType> |
|
32 |
|
33 <xs:complexType name="PkgConfigType"> |
|
34 <xs:simpleContent> |
|
35 <xs:extension base="xs:string"> |
|
36 <xs:attribute name="atleast" type="xs:string"/> |
|
37 <xs:attribute name="exact" type="xs:string"/> |
|
38 <xs:attribute name="max" type="xs:string"/> |
|
39 </xs:extension> |
|
40 </xs:simpleContent> |
|
41 </xs:complexType> |
|
42 |
|
43 <xs:simpleType name="LangType"> |
|
44 <xs:restriction base="xs:string"> |
|
45 <xs:enumeration value="c"/> |
|
46 <xs:enumeration value="cpp"/> |
|
47 </xs:restriction> |
|
48 </xs:simpleType> |
|
49 |
|
50 <xs:complexType name="DependencyType"> |
|
51 <xs:choice minOccurs="0" maxOccurs="unbounded"> |
|
52 <xs:element name="lang" type="LangType"/> |
|
53 <xs:element name="cflags" type="FlagsType"/> |
|
54 <xs:element name="cxxflags" type="FlagsType"/> |
|
55 <xs:element name="ldflags" type="FlagsType"/> |
|
56 <xs:element name="pkgconfig" type="PkgConfigType"/> |
|
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"> |
|
68 <xs:attribute name="exec" type="xs:boolean" default="false"/> |
|
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"/> |
|
92 <xs:attribute name="default" type="xs:boolean" default="false"/> |
|
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> |