1+ {
2+ "title" : " COSMIC For STM8 Options" ,
3+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
4+ "type" : " object" ,
5+ "definitions" : {
6+ "misc-controls" : {
7+ "markdownDescription" : " Other Options" ,
8+ "size" : " huge" ,
9+ "type" : [
10+ " string" ,
11+ " array"
12+ ],
13+ "items" : {
14+ "type" : " string"
15+ },
16+ "default" : " "
17+ }
18+ },
19+ "properties" : {
20+ "beforeBuildTasks" : {
21+ "markdownDescription" : " List of commands to execute before build" ,
22+ "description.zh-cn" : " 构建前要执行的命令列表" ,
23+ "type" : " array" ,
24+ "default" : [
25+ {
26+ "name" : " clean" ,
27+ "command" : " del /Q \" ${OutDir}\\ *.*\" "
28+ }
29+ ],
30+ "items" : {
31+ "type" : " object" ,
32+ "required" : [
33+ " name" ,
34+ " command"
35+ ],
36+ "properties" : {
37+ "name" : {
38+ "markdownDescription" : " A readable name for display" ,
39+ "description.zh-cn" : " 用于显示的可读名称" ,
40+ "type" : " string"
41+ },
42+ "command" : {
43+ "markdownDescription" : " Shell command line" ,
44+ "description.zh-cn" : " Shell 命令行" ,
45+ "type" : " string"
46+ },
47+ "disable" : {
48+ "markdownDescription" : " Disable this command" ,
49+ "description.zh-cn" : " 禁用此命令" ,
50+ "type" : " boolean" ,
51+ "enum" : [
52+ true ,
53+ false
54+ ]
55+ },
56+ "abortAfterFailed" : {
57+ "markdownDescription" : " Whether to skip subsequent commands if this command failed" ,
58+ "description.zh-cn" : " 是否在此命令失败时,跳过后续的命令" ,
59+ "type" : " boolean" ,
60+ "enum" : [
61+ true ,
62+ false
63+ ]
64+ },
65+ "stopBuildAfterFailed" : {
66+ "markdownDescription" : " Whether to stop compiling directly when this command failed" ,
67+ "description.zh-cn" : " 是否在此命令失败时,直接停止编译" ,
68+ "type" : " boolean" ,
69+ "enum" : [
70+ true ,
71+ false
72+ ]
73+ }
74+ }
75+ }
76+ },
77+ "afterBuildTasks" : {
78+ "markdownDescription" : " List of commands to execute after build" ,
79+ "description.zh-cn" : " 构建结束后要执行的命令列表" ,
80+ "type" : " array" ,
81+ "default" : [
82+ {
83+ "name" : " clean" ,
84+ "command" : " del \" ${OutDir}\\ *._*\" "
85+ }
86+ ],
87+ "items" : {
88+ "type" : " object" ,
89+ "required" : [
90+ " name" ,
91+ " command"
92+ ],
93+ "properties" : {
94+ "name" : {
95+ "markdownDescription" : " A readable name for display" ,
96+ "description.zh-cn" : " 用于显示的可读名称" ,
97+ "type" : " string"
98+ },
99+ "command" : {
100+ "markdownDescription" : " Shell command line" ,
101+ "description.zh-cn" : " Shell 命令行" ,
102+ "type" : " string"
103+ },
104+ "disable" : {
105+ "markdownDescription" : " Disable this command" ,
106+ "description.zh-cn" : " 禁用此命令" ,
107+ "type" : " boolean" ,
108+ "enum" : [
109+ true ,
110+ false
111+ ]
112+ },
113+ "abortAfterFailed" : {
114+ "markdownDescription" : " Whether to skip subsequent commands if this command failed" ,
115+ "description.zh-cn" : " 是否在此命令失败时,跳过后续的命令" ,
116+ "type" : " boolean" ,
117+ "enum" : [
118+ true ,
119+ false
120+ ]
121+ }
122+ }
123+ }
124+ },
125+ "global" : {
126+ "markdownDescription" : " Global Options" ,
127+ "description.zh-cn" : " 全局选项" ,
128+ "type" : " object" ,
129+ "properties" : {
130+ "model" : {
131+ "description" : " Memory Models" ,
132+ "type" : " string" ,
133+ "default" : " small" ,
134+ "enum" : [
135+ " small" ,
136+ " large" ,
137+ " small-0" ,
138+ " large-0"
139+ ],
140+ "enumDescriptions" : [
141+ " Stack Short Model" ,
142+ " Stack Long Model" ,
143+ " Stack Short Model (Code < 64KB)" ,
144+ " Stack Long Model (Code < 64KB)"
145+ ]
146+ },
147+ "output-list-file" : {
148+ "description" : " Generate List Files" ,
149+ "type" : " boolean" ,
150+ "default" : false
151+ },
152+ "output-debug-info" : {
153+ "description" : " Output Debug Information" ,
154+ "type" : " string" ,
155+ "default" : " disable" ,
156+ "enum" : [
157+ " disable" ,
158+ " enable"
159+ ]
160+ },
161+ "no-bss" : {
162+ "description" : " Do Not Use '.bss' Section" ,
163+ "type" : " boolean" ,
164+ "default" : false
165+ },
166+ "const-in-text" : {
167+ "description" : " Make Literals And Constants In '.text' Section" ,
168+ "type" : " boolean" ,
169+ "default" : false
170+ },
171+ "verbose" : {
172+ "description" : " Verbose Mode" ,
173+ "type" : " boolean" ,
174+ "default" : false
175+ },
176+ "misc-controls" : {
177+ "markdownDescription" : " Other Global Options (cxstm8)" ,
178+ "$ref" : " #/definitions/misc-controls"
179+ }
180+ }
181+ },
182+ "c/cpp-compiler" : {
183+ "markdownDescription" : " C/C++ Compiler Options" ,
184+ "description.zh-cn" : " C/C++ 编译器选项" ,
185+ "type" : " object" ,
186+ "properties" : {
187+ "c99-mode" : {
188+ "description" : " C99 Mode" ,
189+ "type" : " boolean" ,
190+ "default" : false
191+ },
192+ "optimization" : {
193+ "description" : " Optimization Level" ,
194+ "type" : " string" ,
195+ "default" : " none" ,
196+ "enum" : [
197+ " none" ,
198+ " fast" ,
199+ " size"
200+ ],
201+ "enumDescriptions" : [
202+ " No Optimization" ,
203+ " Code Speed" ,
204+ " Code Size"
205+ ]
206+ },
207+ "split-functions" : {
208+ "description" : " Split Functions In Different Sections" ,
209+ "type" : " boolean" ,
210+ "default" : false
211+ },
212+ "plain-char-is-unsigned" : {
213+ "description" : " Plain Char Is Unsigned" ,
214+ "type" : " boolean" ,
215+ "default" : false
216+ },
217+ "strict-mode" : {
218+ "description" : " Enforce A Stronger Type Checking" ,
219+ "type" : " boolean" ,
220+ "default" : false
221+ },
222+ "reverse-bits-order" : {
223+ "description" : " Reverse The Bitfield Filling Order" ,
224+ "type" : " boolean" ,
225+ "default" : false
226+ },
227+ "warnings" : {
228+ "description" : " Warning Level" ,
229+ "type" : " string" ,
230+ "default" : " " ,
231+ "enum" : [
232+ " " ,
233+ " less" ,
234+ " normal" ,
235+ " all"
236+ ],
237+ "enumDescriptions" : [
238+ " Default" ,
239+ " Less" ,
240+ " Normal" ,
241+ " All Warnings"
242+ ]
243+ },
244+ "misc-controls" : {
245+ "markdownDescription" : " Other C Compiler Options (cxstm8)" ,
246+ "$ref" : " #/definitions/misc-controls"
247+ }
248+ }
249+ },
250+ "asm-compiler" : {
251+ "markdownDescription" : " Assembler Options" ,
252+ "description.zh-cn" : " 汇编器选项" ,
253+ "type" : " object" ,
254+ "properties" : {
255+ "defines" : {
256+ "readable_name" : " Preprocessor Definitions" ,
257+ "markdownDescription" : " Preprocessor Definitions" ,
258+ "type" : " array" ,
259+ "items" : {
260+ "type" : " string"
261+ }
262+ },
263+ "misc-controls" : {
264+ "markdownDescription" : " Other Assembler Options (cxstm8)" ,
265+ "$ref" : " #/definitions/misc-controls"
266+ }
267+ }
268+ },
269+ "linker" : {
270+ "markdownDescription" : " Linker Options" ,
271+ "description.zh-cn" : " 链接器选项" ,
272+ "type" : " object" ,
273+ "properties" : {
274+ "output-format" : {
275+ "type" : " string" ,
276+ "default" : " elf" ,
277+ "description" : " Output Format" ,
278+ "enum" : [
279+ " elf" ,
280+ " lib"
281+ ],
282+ "enumDescriptions" : [
283+ " ELF" ,
284+ " LIB"
285+ ]
286+ },
287+ "$disableOutputTask" : {
288+ "type" : " boolean" ,
289+ "markdownDescription" : " Not Output Hex/Bin File" ,
290+ "default" : false
291+ },
292+ "auto-include-stdc-libraries" : {
293+ "description" : " Auto Include Standard ANSI C Libraries" ,
294+ "type" : " boolean" ,
295+ "default" : false
296+ },
297+ "LD_FLAGS" : {
298+ "markdownDescription" : " Other Linker Options (clnk)" ,
299+ "$ref" : " #/definitions/misc-controls"
300+ },
301+ "LIB_FLAGS" : {
302+ "markdownDescription" : " C Libraries (*.sm8)" ,
303+ "$ref" : " #/definitions/misc-controls"
304+ },
305+ "object-order" : {
306+ "type" : " array" ,
307+ "readable_name" : " Object Order" ,
308+ "readable_name.zh-cn" : " Object Order" ,
309+ "markdownDescription" : " Object Order (used to determine the order in which object files are linked)" ,
310+ "description.zh-cn" : " Object Order(用于决定某些 obj 文件的链接顺序)" ,
311+ "default" : [],
312+ "properties" : {
313+ "pattern" : {
314+ "type" : " string" ,
315+ "readable_name" : " Pattern" ,
316+ "description" : " A glob pattern (https://github.com/dazinator/DotNet.Glob) to match a object (*.o) file" ,
317+ "default" : " **/your/pattern/for/object/file/path/*.o"
318+ },
319+ "order" : {
320+ "type" : " number" ,
321+ "readable_name" : " Order" ,
322+ "description" : " An integer number (The smaller the value, the higher the priority)" ,
323+ "default" : 0
324+ }
325+ }
326+ }
327+ }
328+ }
329+ }
330+ }
0 commit comments