|
1 | 1 | { |
2 | 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
3 | 3 | "title": "Script dependencies", |
4 | | - "description": "Script dependencies setup", |
5 | 4 | "type": "object", |
6 | 5 | "properties": |
7 | 6 | { |
8 | | - "Language": |
9 | | - { |
10 | | - "type": "string", |
11 | | - "description": "(Optional) Language of the script" |
12 | | - }, |
| 7 | + "Language": { "type": "string" }, |
13 | 8 | "RequiredProfiles": |
14 | 9 | { |
15 | 10 | "type": "object", |
|
18 | 13 | "^.*$": |
19 | 14 | { |
20 | 15 | "type": "array", |
21 | | - "items": |
22 | | - { |
23 | | - "type":"string" |
24 | | - } |
| 16 | + "items": { "type":"string" } |
25 | 17 | } |
26 | 18 | }, |
27 | | - "description": "(Optional) Preferred compiler/linker profiles for the script", |
28 | 19 | "additionalProperties": false |
29 | 20 | }, |
30 | 21 | "OverrideCompileFlags": |
|
35 | 26 | "^.*$": |
36 | 27 | { |
37 | 28 | "type": "object", |
38 | | - "properties": |
| 29 | + "patternProperties": |
39 | 30 | { |
40 | | - "Remove": |
| 31 | + "^.*$": |
41 | 32 | { |
42 | | - "type": "string", |
43 | | - "description": "Flags to be removed from the default compile flags, separated by space" |
44 | | - }, |
45 | | - "Append": |
46 | | - { |
47 | | - "type": "string", |
48 | | - "description": "Additional flags to be appended to the default compile flags" |
| 33 | + "type": "object", |
| 34 | + "properties": |
| 35 | + { |
| 36 | + "Remove": { "type": "string" }, |
| 37 | + "Append": { "type": "string" } |
| 38 | + }, |
| 39 | + "additionalProperties": false, |
| 40 | + "required": ["Remove", "Append"] |
49 | 41 | } |
50 | 42 | }, |
51 | | - "additionalProperties": false, |
52 | | - "description": "Profile with the respective flags to override", |
53 | | - "required": ["Remove", "Append"] |
| 43 | + "additionalProperties": false |
54 | 44 | } |
55 | 45 | }, |
56 | | - "additionalProperties": false, |
57 | | - "description": "(Optional) Override the default compile flags" |
| 46 | + "additionalProperties": false |
58 | 47 | }, |
59 | 48 | "OverrideLinkFlags": |
60 | 49 | { |
|
64 | 53 | "^.*$": |
65 | 54 | { |
66 | 55 | "type": "object", |
67 | | - "properties": |
| 56 | + "patternProperties": |
68 | 57 | { |
69 | | - "Remove": |
70 | | - { |
71 | | - "type": "string", |
72 | | - "description": "Flags to be removed from the default compile flags, separated by space" |
73 | | - }, |
74 | | - "Append": |
| 58 | + "^.*$": |
75 | 59 | { |
76 | | - "type": "string", |
77 | | - "description": "Additional flags to be appended to the default compile flags" |
| 60 | + "type": "object", |
| 61 | + "properties": |
| 62 | + { |
| 63 | + "Remove": { "type": "string" }, |
| 64 | + "Append": { "type": "string" } |
| 65 | + }, |
| 66 | + "additionalProperties": false, |
| 67 | + "required": ["Remove", "Append"] |
78 | 68 | } |
79 | | - }, |
80 | | - "additionalProperties": false, |
81 | | - "description": "Profile with the respective flags to override", |
82 | | - "required": ["Remove", "Append"] |
83 | | - } |
| 69 | + } |
| 70 | + }, |
| 71 | + "additionalProperties": false |
84 | 72 | }, |
85 | | - "additionalProperties": false, |
86 | | - "description": "(Optional) Override the default link flags" |
| 73 | + "additionalProperties": false |
87 | 74 | }, |
88 | 75 | "Dependencies": |
89 | 76 | { |
90 | 77 | "type": "array", |
91 | | - "description": "(Optional) The list of dependencies needed by the script", |
92 | 78 | "items": |
93 | 79 | { |
94 | 80 | "type": "object", |
95 | 81 | "properties": |
96 | 82 | { |
97 | | - "Name": |
98 | | - { |
99 | | - "type": "string", |
100 | | - "description": "Dependency name" |
101 | | - }, |
| 83 | + "Name": { "type": "string" }, |
102 | 84 | "Platforms": |
103 | 85 | { |
104 | 86 | "type": "array", |
105 | | - "items": { "type":"string" }, |
106 | | - "description": "Supported platforms of the dependency" |
| 87 | + "items": { "type":"string" } |
107 | 88 | }, |
108 | 89 | "Source": |
109 | 90 | { |
|
113 | 94 | "Type": |
114 | 95 | { |
115 | 96 | "type": "string", |
116 | | - "enum": ["Git", "Local"], |
117 | | - "description": "The type of the dependency (Git/Local)" |
| 97 | + "enum": ["Git", "Local"] |
118 | 98 | }, |
119 | | - "Value": |
120 | | - { |
121 | | - "type": "string", |
122 | | - "description": "The location of the dependency (git repository location, local directory)" |
123 | | - } |
| 99 | + "Value": { "type": "string" } |
124 | 100 | }, |
125 | | - "required": ["Type", "Value"], |
126 | | - "description": "The source of getting the dependency" |
| 101 | + "required": ["Type", "Value"] |
127 | 102 | }, |
128 | 103 | "LibraryType": |
129 | 104 | { |
130 | 105 | "type": "string", |
131 | | - "enum": ["Static", "Object", "Shared", "Header"], |
132 | | - "description": "Library Type (Static, Object, Shared, Header)" |
| 106 | + "enum": ["Static", "Object", "Shared", "Header"] |
133 | 107 | }, |
134 | 108 | "IncludePaths": |
135 | 109 | { |
136 | 110 | "type": "array", |
137 | | - "items": { "type":"string" }, |
138 | | - "description": "Paths to be added to include paths" |
| 111 | + "items": { "type":"string" } |
139 | 112 | }, |
140 | 113 | "LinkProperties": |
141 | 114 | { |
|
150 | 123 | "SearchLibraryNames": |
151 | 124 | { |
152 | 125 | "type": "array", |
153 | | - "items": { "type":"string" }, |
154 | | - "description": "The library name to be searched for when linking against the script" |
| 126 | + "items": { "type":"string" } |
155 | 127 | }, |
156 | 128 | "ExcludeLibraryNames": |
157 | 129 | { |
|
161 | 133 | "SearchDirectories": |
162 | 134 | { |
163 | 135 | "type": "array", |
164 | | - "items": { "type":"string" }, |
165 | | - "description": "The path to be searched for the dependency. {BuildType} will be replaced accordingly" |
| 136 | + "items": { "type":"string" } |
166 | 137 | }, |
167 | 138 | "AdditionalLinkOptions": |
168 | 139 | { |
|
178 | 149 | } |
179 | 150 | }, |
180 | 151 | "required": ["SearchLibraryNames", "SearchDirectories"], |
181 | | - "additionalProperties": false, |
182 | | - "description": "Properties for searching the library binary for the profile" |
| 152 | + "additionalProperties": false |
183 | 153 | } |
184 | 154 | }, |
185 | | - "additionalProperties": false, |
186 | | - "description": "Searchable properties of the dependency" |
| 155 | + "additionalProperties": false |
187 | 156 | }, |
188 | 157 | "Setup": |
189 | 158 | { |
|
198 | 167 | "^.*$": |
199 | 168 | { |
200 | 169 | "type": "array", |
201 | | - "items": { "type":"string" }, |
202 | | - "description": "Setup commands for the specified profile. {BuildType} will be replaced accordingly" |
| 170 | + "items": { "type":"string" } |
203 | 171 | } |
204 | 172 | }, |
205 | | - "additionalProperties": false, |
206 | | - "description": "Setup commands for the specified platform" |
| 173 | + "additionalProperties": false |
207 | 174 | } |
208 | 175 | }, |
209 | | - "additionalProperties": false, |
210 | | - "description": "(Optional) List of setup commands for the supported platforms" |
| 176 | + "additionalProperties": false |
211 | 177 | } |
212 | 178 | }, |
213 | 179 | "additionalProperties": false, |
|
0 commit comments