CMakePresets.json 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. {
  2. "version": 4,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 23,
  6. "patch": 0
  7. },
  8. "include": [
  9. "../Common/CMakePresets.json"
  10. ],
  11. "configurePresets": [
  12. {
  13. "name": "windows-default",
  14. "displayName": "Windows",
  15. "description": "Default Windows",
  16. "inherits": [
  17. "windows-unity"
  18. ]
  19. },
  20. {
  21. "name": "windows-mono-default",
  22. "displayName": "Windows Monolithic with Unity and Visual Studio",
  23. "description": "Configures Windows to build the Monolithic permutation using Visual Studio with Unity builds",
  24. "binaryDir": "${sourceDir}/build/windows_mono",
  25. "inherits": [
  26. "windows-unity",
  27. "windows-monolithic"
  28. ]
  29. },
  30. {
  31. "name": "windows-unity",
  32. "displayName": "Windows Unity",
  33. "description": "Windows build which uses unity files",
  34. "binaryDir": "${sourceDir}/build/windows",
  35. "inherits": [
  36. "unity",
  37. "host-windows"
  38. ]
  39. },
  40. {
  41. "name": "windows-no-unity",
  42. "displayName": "Windows without Unity",
  43. "description": "Windows build which uses unity files",
  44. "binaryDir": "${sourceDir}/build/windows",
  45. "inherits": [
  46. "no-unity",
  47. "host-windows"
  48. ]
  49. },
  50. {
  51. "name": "windows-non-monolithic",
  52. "displayName": "Windows Non-Monolithic",
  53. "description": "Default configuration for non-monolithic builds",
  54. "inherits": [
  55. "non-monolithic",
  56. "host-windows"
  57. ]
  58. },
  59. {
  60. "name": "windows-monolithic",
  61. "displayName": "Windows Monolithic",
  62. "description": "Default configuration for monolithic builds",
  63. "binaryDir": "${sourceDir}/build/windows_mono",
  64. "inherits": [
  65. "monolithic",
  66. "host-windows"
  67. ]
  68. },
  69. {
  70. "name": "windows-vs",
  71. "displayName": "Windows Visual Studio",
  72. "description": "Configure Windows with the Visual Studio IDE",
  73. "inherits": [
  74. "windows-vs-unity"
  75. ]
  76. },
  77. {
  78. "name": "windows-vs-unity",
  79. "displayName": "Windows Visual Studio Unity",
  80. "description": "Configure Windows with the Visual Studio IDE + Unity Builds",
  81. "inherits": [
  82. "windows-vs2022",
  83. "unity"
  84. ]
  85. },
  86. {
  87. "name": "windows-vs-no-unity",
  88. "displayName": "Windows Visual Studio without Unity",
  89. "description": "Configure Windows with the Visual Studio IDE without unity builds",
  90. "inherits": [
  91. "windows-vs2022",
  92. "no-unity"
  93. ]
  94. },
  95. {
  96. "name": "windows-vs2019",
  97. "displayName": "Windows Visual Studio 2019",
  98. "description": "Configure Windows to use the VS2019 generator",
  99. "binaryDir": "${sourceDir}/build/windows_vs2019",
  100. "inherits": [
  101. "vs2019"
  102. ]
  103. },
  104. {
  105. "name": "windows-vs2022",
  106. "displayName": "Windows Visual Studio 2022",
  107. "description": "Configure Windows to use the VS2022 generator",
  108. "binaryDir": "${sourceDir}/build/windows_vs2022",
  109. "inherits": [
  110. "vs2022"
  111. ]
  112. },
  113. {
  114. "name": "windows-ninja-clang-cl",
  115. "displayName": "Windows Visual Studio 2022 + ClangCl",
  116. "description": "Configure Windows to use the VS2022 generator and the clang-cl compiler",
  117. "binaryDir": "${sourceDir}/build/windows_clangcl",
  118. "inherits": [
  119. "windows-vs2022",
  120. "unity"
  121. ],
  122. "toolset": {
  123. "value": "ClangCl"
  124. }
  125. },
  126. {
  127. "name": "windows-ninja",
  128. "displayName": "Windows Ninja",
  129. "description": "Configure Windows using the Ninja Multi-Config generator",
  130. "binaryDir": "${sourceDir}/build/windows_ninja",
  131. "inherits": [
  132. "ninja-multi-config",
  133. "host-windows"
  134. ]
  135. },
  136. {
  137. "name": "windows-ninja-clang",
  138. "displayName": "Windows Ninja + Clang",
  139. "description": "Configure Windows using the Ninja Multi-Config generator and the clang compiler. ninja and clang must be in the path",
  140. "binaryDir": "${sourceDir}/build/windows_clang",
  141. "inherits": [
  142. "windows-ninja"
  143. ],
  144. "cacheVariables": {
  145. "CMAKE_C_COMPILER": {
  146. "type": "STRING",
  147. "value": "clang"
  148. },
  149. "CMAKE_CXX_COMPILER": {
  150. "type": "STRING",
  151. "value": "clang++"
  152. }
  153. }
  154. }
  155. ],
  156. "buildPresets": [
  157. {
  158. "name": "windows-default",
  159. "displayName": "Windows",
  160. "description": "Builds all targets for Windows",
  161. "configurePreset": "windows-default",
  162. "inherits": [
  163. "host-windows"
  164. ]
  165. },
  166. {
  167. "name": "windows-install",
  168. "displayName": "Windows install",
  169. "description": "Builds the \"install\" target for windows, which builds all target and runs the CMake --install step",
  170. "configurePreset": "windows-default",
  171. "inherits": [
  172. "install",
  173. "host-windows"
  174. ]
  175. },
  176. {
  177. "name": "windows-mono-default",
  178. "displayName": "Windows Monolithic",
  179. "description": "Builds all targets for Windows in the monolithic permutation",
  180. "configurePreset": "windows-mono-default",
  181. "inherits": [
  182. "host-windows"
  183. ]
  184. },
  185. {
  186. "name": "windows-mono-install",
  187. "displayName": "Windows Monolithic install",
  188. "description": "Builds the \"install\" target for windows monolithic permutation, which builds all target and runs the CMake --install step",
  189. "configurePreset": "windows-mono-default",
  190. "inherits": [
  191. "install",
  192. "host-windows"
  193. ]
  194. },
  195. {
  196. "name": "windows-editor",
  197. "displayName": "Windows Editor",
  198. "description": "Builds the Editor application for Windows",
  199. "configurePreset": "windows-default",
  200. "inherits": [
  201. "editor",
  202. "host-windows"
  203. ]
  204. },
  205. {
  206. "name": "windows-assetprocessor",
  207. "displayName": "Windows AssetProcessor",
  208. "description": "Builds the AssetProcessor application for windows",
  209. "configurePreset": "windows-default",
  210. "inherits": [
  211. "assetprocessor",
  212. "host-windows"
  213. ]
  214. },
  215. {
  216. "name": "windows-test",
  217. "displayName": "Windows CTest",
  218. "description": "Builds the TEST_SUITE_smoke/TEST_SUITE_main custom targets for Windows",
  219. "configurePreset": "windows-default",
  220. "inherits": [
  221. "test-default",
  222. "host-windows"
  223. ]
  224. }
  225. ],
  226. "testPresets": [
  227. {
  228. "name": "windows-test-default",
  229. "displayName": "Windows CTest",
  230. "description": "Runs the Smoke + Main Test Suite. Requires the windows-test build preset to have completed successfully",
  231. "configurePreset": "windows-default",
  232. "inherits": [
  233. "test-default",
  234. "host-windows"
  235. ]
  236. },
  237. {
  238. "name": "windows-test-debug",
  239. "displayName": "Windows CTest debug",
  240. "description": "Runs the Smoke + Main Test Suite in debug configuration. Requires the windows-test build preset to have completed successfully",
  241. "configurePreset": "windows-default",
  242. "inherits": [
  243. "test-default-debug",
  244. "host-windows"
  245. ]
  246. },
  247. {
  248. "name": "windows-test-profile",
  249. "displayName": "Windows CTest profile",
  250. "description": "Runs the Smoke + Main Test Suite in profile configuration. Requires the windows test build preset to have completed successfully",
  251. "configurePreset": "windows-default",
  252. "inherits": [
  253. "test-default-profile",
  254. "host-windows"
  255. ]
  256. }
  257. ]
  258. }