schema_cmakeFiles.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "description": "Schema for the CMake cmakeFiles object kind",
  4. "type": "object",
  5. "required": [
  6. "kind",
  7. "version",
  8. "paths",
  9. "inputs"
  10. ],
  11. "oneOf": [
  12. {
  13. "$ref": "#/definitions/cmakeFilesV1_0"
  14. },
  15. {
  16. "$ref": "#/definitions/cmakeFilesV1_1"
  17. }
  18. ],
  19. "definitions": {
  20. "kind": {
  21. "type": "string",
  22. "const": "cmakeFiles",
  23. "description": "Specifies the object kind"
  24. },
  25. "versionV1_0": {
  26. "type": "object",
  27. "required": [
  28. "major",
  29. "minor"
  30. ],
  31. "properties": {
  32. "major": {
  33. "type": "integer",
  34. "const": 1
  35. },
  36. "minor": {
  37. "type": "integer",
  38. "const": 0
  39. }
  40. },
  41. "additionalProperties": false
  42. },
  43. "versionV1_1": {
  44. "type": "object",
  45. "required": [
  46. "major",
  47. "minor"
  48. ],
  49. "properties": {
  50. "major": {
  51. "type": "integer",
  52. "const": 1
  53. },
  54. "minor": {
  55. "type": "integer",
  56. "const": 1
  57. }
  58. },
  59. "additionalProperties": false
  60. },
  61. "paths": {
  62. "type": "object",
  63. "required": [
  64. "build",
  65. "source"
  66. ],
  67. "properties": {
  68. "build": {
  69. "type": "string",
  70. "description": "Absolute path to the top-level build directory"
  71. },
  72. "source": {
  73. "type": "string",
  74. "description": "Absolute path to the top-level source directory"
  75. }
  76. },
  77. "additionalProperties": false
  78. },
  79. "inputs": {
  80. "type": "array",
  81. "items": {
  82. "type": "object",
  83. "required": [
  84. "path"
  85. ],
  86. "properties": {
  87. "path": {
  88. "type": "string",
  89. "description": "Path to an input file to CMake"
  90. },
  91. "isGenerated": {
  92. "type": "boolean",
  93. "description": "Indicates if the file is under the build directory in out-of-source builds"
  94. },
  95. "isExternal": {
  96. "type": "boolean",
  97. "description": "Indicates if the file is not under source or build directories"
  98. },
  99. "isCMake": {
  100. "type": "boolean",
  101. "description": "Indicates if the file is in the CMake installation"
  102. }
  103. },
  104. "additionalProperties": false
  105. }
  106. },
  107. "globsDependentV1_1": {
  108. "type": "array",
  109. "description": "Optional member present only when the project calls file(GLOB) or file(GLOB_RECURSE) with the CONFIGURE_DEPENDS option",
  110. "items": {
  111. "type": "object",
  112. "required": [
  113. "expression",
  114. "paths"
  115. ],
  116. "properties": {
  117. "expression": {
  118. "type": "string",
  119. "description": "The globbing expression. If the result of the expression no longer matches the same list of paths, the build system is considered out of date and the build tool will re-run cmake."
  120. },
  121. "recurse": {
  122. "type": "boolean",
  123. "description": "This will be true if the glob expression was from a file(GLOB_RECURSE) call"
  124. },
  125. "listDirectories": {
  126. "type": "boolean",
  127. "description": "This will be true if the expression is from a file(GLOB) that does not specify LIST_DIRECTORIES false, or from a file(GLOB_RECURSE) with LIST_DIRECTORIES set to true"
  128. },
  129. "followSymlinks": {
  130. "type": "boolean",
  131. "description": "This will be true if the FOLLOW_SYMLINKS option was given"
  132. },
  133. "relative": {
  134. "type": "string",
  135. "description": "This will be present if the RELATIVE option was given. The value is the path given after the RELATIVE keyword."
  136. },
  137. "paths": {
  138. "type": "array",
  139. "items": {
  140. "type": "string"
  141. },
  142. "description": "Paths matched by the globbing expression"
  143. }
  144. },
  145. "additionalProperties": false
  146. }
  147. },
  148. "cmakeFilesV1_0": {
  149. "properties": {
  150. "kind": {
  151. "$ref": "#/definitions/kind"
  152. },
  153. "version": {
  154. "$ref": "#/definitions/versionV1_0"
  155. },
  156. "paths": {
  157. "$ref": "#/definitions/paths"
  158. },
  159. "inputs": {
  160. "$ref": "#/definitions/inputs"
  161. }
  162. },
  163. "additionalProperties": false
  164. },
  165. "cmakeFilesV1_1": {
  166. "properties": {
  167. "kind": {
  168. "$ref": "#/definitions/kind"
  169. },
  170. "version": {
  171. "$ref": "#/definitions/versionV1_1"
  172. },
  173. "paths": {
  174. "$ref": "#/definitions/paths"
  175. },
  176. "inputs": {
  177. "$ref": "#/definitions/inputs"
  178. },
  179. "globsDependent": {
  180. "$ref": "#/definitions/globsDependentV1_1"
  181. }
  182. },
  183. "additionalProperties": false
  184. }
  185. }
  186. }