forked from espressif/vscode-esp-idf-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmakeListsSchema.json
132 lines (132 loc) · 3.8 KB
/
cmakeListsSchema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"component": [
{
"template": "SRCS ***",
"regex": "(?:SRCS)([^)\n\r]*)",
"title": "Component Sources (SRCS)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "EXCLUDE_SRCS ***",
"regex": "(?:EXCLUDE_SRCS)([^)\n\r]*)",
"title": "Remove files from static library build (EXCLUDE_SRCS)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "LDFRAGMENTS ***",
"regex": "(?:LDFRAGMENTS)([^)\n\r]*)",
"title": "Linker fragment files (LDFRAGMENTS)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "EMBED_FILES ***",
"regex": "(?:EMBED_FILES)([^)\n\r]*)",
"title": "Binary files to be embedded in the component (EMBED_FILES)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "EMBED_TXTFILES ***",
"regex": "(?:EMBED_TXTFILES)([^)\n\r]*)",
"title": "Text files to be embedded in the component (EMBED_TXTFILES)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "INCLUDE_DIRS ***",
"regex": "(?:INCLUDE_DIRS)([^)\n\r]*)",
"title": "Relative paths to the components (INCLUDE_DIRS) for all other components",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "PRIV_INCLUDE_DIRS ***",
"regex": "(?:PRIV_INCLUDE_DIRS)([^)\n\r]*)",
"title": "Relative paths to the components (PRIV_INCLUDE_DIRS) for this component",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "REQUIRES ***",
"regex": "(?:REQUIRES)([^)\n\r]*)",
"title": "Public component requirements for the component (REQUIRES)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "REQUIRED_IDF_TARGETS ***",
"regex": "(?:REQUIRED_IDF_TARGETS)([^)\n\r]*)",
"title": "Specify the only target the component supports (REQUIRED_IDF_TARGETS)",
"type": "array",
"value": [],
"isComponentElement": true
},
{
"template": "PRIV_REQUIRES ***",
"regex": "(?:PRIV_REQUIRES)([^)\n\r]*)",
"title": "Private component requirements for the component (PRIV_REQUIRES)",
"type": "array",
"value": [],
"isComponentElement": true
}
],
"project": [
{
"default": "VERSION 3.5",
"regex": "(?:cmake_minimum_required\\()(.*)(?:\\))",
"template": "cmake_minimum_required(***)",
"title": "CMake Minimum Requirement",
"type": "string",
"value": "VERSION 3.5",
"isComponentElement": false
},
{
"template": "SET(VARIABLE ***)",
"regex": "(?:set|SET)\\((.*) (.*)\\)",
"title": "Set variable with value set(VARIABLE \"VALUE\")",
"type": "set",
"value": [],
"variable": "",
"isComponentElement": false,
"canHaveMany": true
},
{
"regex": "(?:include\\()(.*)(?:\\))",
"template": "include(***)",
"type": "string",
"title": "Include include(path)",
"value": "$ENV{IDF_PATH}/tools/cmake/project.cmake",
"isComponentElement": false,
"canHaveMany": true
},
{
"regex": "(?:project\\()(.*)(?:\\))",
"template": "project(***)",
"title": "Project Name",
"type": "string",
"value": "",
"isComponentElement": false
},
{
"template": "target_add_binary_data(VARIABLE *** TYPE)",
"regex": "target_add_binary_data\\((.*) (.*) (.*)\\)",
"title": "target_add_binary_data(target file BINARY|TEXT)",
"type": "binary_data",
"typeValue": "",
"value": "",
"variable": "",
"canHaveMany": true
}
]
}