Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
376 changes: 376 additions & 0 deletions lang/mips.mti.gcc.verify.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,376 @@
{
"title": "MIPS GCC Options",
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"definitions": {
"FLAGS": {
"markdownDescription": "Other Options",
"description.zh-cn": "其他选项",
"size": "huge",
"type": [
"string",
"array"
],
"items": {
"type": "string"
},
"default": []
}
},
"properties": {
"beforeBuildTasks": {
"markdownDescription": "List of commands to execute before build",
"description.zh-cn": "构建前要执行的命令列表",
"type": "array",
"default": [
{
"name": "clean",
"command": "del /Q \"${OutDir}\\*.*\""
}
],
"items": {
"type": "object",
"required": [
"name",
"command"
],
"properties": {
"name": {
"markdownDescription": "A readable name for display",
"description.zh-cn": "用于显示的可读名称",
"type": "string"
},
"command": {
"markdownDescription": "Shell command line",
"description.zh-cn": "Shell 命令行",
"type": "string"
},
"disable": {
"markdownDescription": "Disable this command",
"description.zh-cn": "禁用此命令",
"type": "boolean",
"enum": [
true,
false
]
},
"abortAfterFailed": {
"markdownDescription": "Whether to skip subsequent commands if this command failed",
"description.zh-cn": "是否在此命令失败时,跳过后续的命令",
"type": "boolean",
"enum": [
true,
false
]
},
"stopBuildAfterFailed": {
"markdownDescription": "Whether to stop compiling directly when this command failed",
"description.zh-cn": "是否在此命令失败时,直接停止编译",
"type": "boolean",
"enum": [
true,
false
]
}
}
}
},
"afterBuildTasks": {
"markdownDescription": "List of commands to execute after build",
"description.zh-cn": "构建结束后要执行的命令列表",
"type": "array",
"default": [
{
"name": "clean",
"command": "del \"${OutDir}\\*._*\""
}
],
"items": {
"type": "object",
"required": [
"name",
"command"
],
"properties": {
"name": {
"markdownDescription": "A readable name for display",
"description.zh-cn": "用于显示的可读名称",
"type": "string"
},
"command": {
"markdownDescription": "Shell command line",
"description.zh-cn": "Shell 命令行",
"type": "string"
},
"disable": {
"markdownDescription": "Disable this command",
"description.zh-cn": "禁用此命令",
"type": "boolean",
"enum": [
true,
false
]
},
"abortAfterFailed": {
"markdownDescription": "Whether to skip subsequent commands if this command failed",
"description.zh-cn": "是否在此命令失败时,跳过后续的命令",
"type": "boolean",
"enum": [
true,
false
]
}
}
}
},
"global": {
"markdownDescription": "Global Options",
"description.zh-cn": "全局选项",
"type": "object",
"properties": {
"output-debug-info": {
"markdownDescription": "Output debug information",
"description.zh-cn": "输出调试信息",
"type": "string",
"default": "disable",
"enum": [
"disable",
"enable",
"dwarf-2",
"dwarf-3"
]
},
"$float-abi-type": {
"markdownDescription": "Hardware floating-point ABI",
"description.zh-cn": "硬件浮点 ABI",
"type": "string",
"default": "softfp",
"enum": [
"soft-float",
"hard-float"
]
},
"arch": {
"markdownDescription": "Arch",
"description.zh-cn": "指令集(arch)",
"size": "small",
"type": "string",
"auto_complete_ctx": "gcc.compiler.archs"
},
"abi": {
"readable_name": "ABI",
"readable_name.zh-cn": "调用约定(abi)",
"markdownDescription": "Integer and floating-point calling convention",
"description.zh-cn": "整数和浮点调用约定",
"size": "small",
"auto_complete_ctx": "gcc.compiler.abis"
},
"misc-control": {
"markdownDescription": "Other Global Options",
"description.zh-cn": "编译器附加选项(全局)",
"$ref": "#/definitions/FLAGS",
"default": ""
}
}
},
"c/cpp-compiler": {
"markdownDescription": "C/C++ Compiler Options",
"description.zh-cn": "C/C++ 编译器选项",
"type": "object",
"properties": {
"language-c": {
"markdownDescription": "C Standard",
"description.zh-cn": "C 标准",
"type": "string",
"default": "c11",
"enum": [
"c89",
"c90",
"c99",
"c11",
"c17",
"gnu89",
"gnu90",
"gnu99",
"gnu11",
"gnu17"
]
},
"language-cpp": {
"markdownDescription": "C++ Standard",
"description.zh-cn": "C++ 标准",
"type": "string",
"default": "c++11",
"enum": [
"c++98",
"gnu++98",
"c++11",
"gnu++11",
"c++14",
"gnu++14",
"c++17",
"gnu++17"
]
},
"optimization": {
"markdownDescription": "Optimization Level",
"description.zh-cn": "代码优化级别",
"type": "string",
"default": "level-0",
"enum": [
"level-0",
"level-1",
"level-2",
"level-3",
"level-size",
"level-fast",
"level-debug"
],
"enumDescriptions": [
"-O0 (default)",
"-O1",
"-O2",
"-O3",
"-Os",
"-Ofast",
"-Og"
]
},
"warnings": {
"markdownDescription": "Warning Level",
"description.zh-cn": "警告等级",
"type": "string",
"default": "all-warnings",
"enum": [
"no-warnings",
"all-warnings"
]
},
"turn-warning-into-errors": {
"markdownDescription": "Turn warnings into errors",
"description.zh-cn": "将警告转化为错误",
"type": "boolean"
},
"one-elf-section-per-function": {
"markdownDescription": "One ELF Section per Function",
"type": "boolean"
},
"one-elf-section-per-data": {
"markdownDescription": "One ELF Section per Data",
"type": "boolean"
},
"C_FLAGS": {
"markdownDescription": "Other C Compiler Options",
"description.zh-cn": "C 编译器附加选项",
"$ref": "#/definitions/FLAGS",
"default": ""
},
"CXX_FLAGS": {
"markdownDescription": "Other C++ Compiler Options",
"description.zh-cn": "C++ 编译器附加选项",
"$ref": "#/definitions/FLAGS",
"default": ""
}
}
},
"asm-compiler": {
"markdownDescription": "Assembler Options",
"description.zh-cn": "汇编器选项",
"type": "object",
"properties": {
"defines": {
"readable_name": "Preprocessor Definitions",
"readable_name.zh-cn": "预处理器定义",
"markdownDescription": "Preprocessor Definitions",
"description.zh-cn": "预处理器定义",
"type": "array",
"items": {
"type": "string"
}
},
"ASM_FLAGS": {
"markdownDescription": "Other Assembler Options",
"description.zh-cn": "汇编器附加选项",
"$ref": "#/definitions/FLAGS",
"default": ""
}
}
},
"linker": {
"markdownDescription": "Linker Options",
"description.zh-cn": "链接器选项",
"type": "object",
"properties": {
"output-format": {
"type": "string",
"default": "elf",
"description": "Output Format",
"description.zh-cn": "输出格式",
"enum": [
"elf",
"lib"
],
"enumDescriptions": [
"ELF",
"LIB"
]
},
"$disableOutputTask": {
"type": "boolean",
"markdownDescription": "Not Output Hex/Bin File",
"description.zh-cn": "不生成 Hex/Bin 文件",
"enum": [
true,
false
]
},
"remove-unused-input-sections": {
"markdownDescription": "Remove Unused Input Sections",
"type": "boolean"
},
"not-print-mem-usage": {
"markdownDescription": "Not Print Memory Usage (disable: -Wl,--print-memory-usage)",
"type": "boolean"
},
"LD_FLAGS": {
"readable_name": "Other Linker Options",
"readable_name.zh-cn": "链接器附加选项",
"markdownDescription": "Use '-Wl[,option]...' pass options to the linker",
"description.zh-cn": "使用 '-Wl[,option]...' 传递链接器选项",
"$ref": "#/definitions/FLAGS",
"default": ""
},
"LIB_FLAGS": {
"readable_name": "Lib Flags",
"readable_name.zh-cn": "链接库选项",
"markdownDescription": "Lib Flags, like: -lxxx",
"description.zh-cn": "链接库选项,例如:-lxxx",
"$ref": "#/definitions/FLAGS",
"default": ""
},
"object-order": {
"type": "array",
"readable_name": "Object Order",
"readable_name.zh-cn": "Object Order",
"markdownDescription": "Object Order (used to determine the order in which object files are linked)",
"description.zh-cn": "Object Order(用于决定某些 obj 文件的链接顺序)",
"default": [],
"properties": {
"pattern": {
"type": "string",
"readable_name": "Pattern",
"description": "A glob pattern (https://github.com/dazinator/DotNet.Glob) to match a object (*.o) file",
"default": "**/your/pattern/for/object/file/path/*.o"
},
"order": {
"type": "number",
"readable_name": "Order",
"description": "An integer number (The smaller the value, the higher the priority)",
"default": 0
}
}
}
}
}
}
}
Loading