-
Notifications
You must be signed in to change notification settings - Fork 0
/
piemaker.schema.json
106 lines (106 loc) · 3.09 KB
/
piemaker.schema.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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/yanhuangdata/piemaker-schema-json/main/piemaker.schema.json",
"title": "Piemaker JSON schema",
"description": "piemaker project descriptor",
"type": "object",
"properties": {
"namespace": {
"description": "The namespace for the project",
"type": "string"
},
"name": {
"description": "The name for the project",
"type": "string"
},
"version": {
"description": "The version for the project",
"type": "string"
},
"portVersion": {
"description": "The vcpkg port version for the project if this project is a vcpkg port",
"type": "integer"
},
"rust": {
"description": "Indicate if this is rust integration project",
"type": "boolean"
},
"customTarget": {
"description": "Indicate if this project has a custom target so that default target won't be generated automatically",
"type": "boolean"
},
"execTarget": {
"description": "This project target is an executable",
"type": "object",
"properties": {
"name": {
"description": "name of the executable target",
"type": "string"
},
"main": {
"description": "main file of the executable",
"type": "string"
}
}
},
"dependencies": {
"description": "Dependencies for the project",
"type": "array",
"items": {
"type": "object",
"properties": {
"package": {
"type": "string",
"description": "dependency name used for find_package"
},
"library": {
"type": "string",
"description": "dependency name used for find_library"
},
"header": {
"type": "string",
"description": "a header file used for find_path"
},
"link": {
"type": "string",
"description": "dependency name used for target_link_dependencies"
},
"vcpkg": {
"type": ["object", "string"],
"description": "name of the vcpkg this dependency corresponds to"
},
"scope": {
"type": "string",
"enum": ["PUBLIC", "INTERFACE", "PRIVATE"],
"description": "dependency scope"
}
}
},
"minItems": 0
},
"properties": {
"type": "object",
"description": "specify a cmake target's properties"
},
"modules": {
"type": "array",
"description": "other piemaker projects this project depends on",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "the name of the piemaker project"
},
"directory": {
"type": "string",
"description": "an absolute or relative path to the directory of the piemaker project"
}
},
"required": ["name", "directory"]
},
"minItems": 0
}
},
"required": ["namespace", "name"]
}