[core] Update PIO builders to new structure

This commit is contained in:
Kuba Szczodrzyński
2023-02-26 22:04:18 +01:00
parent 8bbc7e13fb
commit 3413d70210
40 changed files with 814 additions and 769 deletions

65
external-libs.schema.json Normal file
View File

@@ -0,0 +1,65 @@
{
"type": "object",
"properties": {
"$schema": {
"type": "string"
}
},
"patternProperties": {
"^[a-z0-9-_]+$": {
"type": "object",
"properties": {
"package": {
"type": "string",
"pattern": "^(tool|library|framework)-[a-z0-9-]+$"
},
"sources": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[!+-]<[\\w/*.]+>$"
}
},
"includes": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[!+-]<[\\w/*.]+>$"
}
},
"flags": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[^\\s]+$"
}
},
"linkflags": {
"type": "array",
"items": {
"type": "string",
"pattern": "^[^\\s]+$"
}
},
"defines": {
"type": "object",
"patternProperties": {
"^[A-Za-z0-9_]+$": {
"type": [
"string",
"number"
]
}
}
}
},
"additionalProperties": false,
"required": [
"package",
"sources",
"includes"
]
}
},
"additionalProperties": false
}