forked from qt-creator/qt-creator
Shared: Add project.json schema for workspace projects
Change-Id: I16f2944316805ecbd3cd3dfc763c457e5ad6142f Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -3,6 +3,7 @@ set(resource_directories
|
|||||||
cplusplus
|
cplusplus
|
||||||
glsl
|
glsl
|
||||||
indexer_preincludes
|
indexer_preincludes
|
||||||
|
jsonschemas
|
||||||
modeleditor
|
modeleditor
|
||||||
qmldesigner
|
qmldesigner
|
||||||
qmlicons
|
qmlicons
|
||||||
|
57
share/qtcreator/jsonschemas/project.json
Normal file
57
share/qtcreator/jsonschemas/project.json
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||||
|
"title": "Qt Creator workspace project definition",
|
||||||
|
"description": "A Qt Creator workspace project definition",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"project.name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the project"
|
||||||
|
},
|
||||||
|
"files.exclude": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Files to exclude from the project"
|
||||||
|
},
|
||||||
|
"targets": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "A list of targets",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"arguments": {
|
||||||
|
"type": "array",
|
||||||
|
"items": [
|
||||||
|
{
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "Arguments to pass to the executable"
|
||||||
|
},
|
||||||
|
"executable": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The executable to run"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The name of the target"
|
||||||
|
},
|
||||||
|
"workingDirectory": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "The working directory to run the executable in"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"executable",
|
||||||
|
"name"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user