CMakePresets.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  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": "mac-default",
  14. "displayName": "Mac",
  15. "description": "Mac default configuration",
  16. "inherits": [
  17. "mac-xcode",
  18. "mac-unity",
  19. "mac-non-monolithic"
  20. ]
  21. },
  22. {
  23. "name": "mac-mono-default",
  24. "displayName": "Mac Monolithic with Unity and Xcode",
  25. "description": "Configures Mac to build the Monolithic permutation using Xcode with Unity builds",
  26. "binaryDir": "${sourceDir}/build/mac_mono",
  27. "inherits": [
  28. "mac-xcode",
  29. "mac-unity",
  30. "mac-monolithic"
  31. ]
  32. },
  33. {
  34. "name": "mac-unity",
  35. "displayName": "Mac Unity",
  36. "description": "Mac build which uses unity files",
  37. "binaryDir": "${sourceDir}/build/mac",
  38. "inherits": [
  39. "unity",
  40. "host-mac"
  41. ]
  42. },
  43. {
  44. "name": "mac-no-unity",
  45. "displayName": "Mac without Unity",
  46. "description": "Mac build which uses unity files",
  47. "binaryDir": "${sourceDir}/build/mac_no_unity",
  48. "inherits": [
  49. "no-unity",
  50. "host-mac"
  51. ]
  52. },
  53. {
  54. "name": "mac-non-monolithic",
  55. "displayName": "Mac Non-Monolithic",
  56. "description": "Default configuration for non-monolithic builds",
  57. "inherits": [
  58. "non-monolithic",
  59. "host-mac"
  60. ]
  61. },
  62. {
  63. "name": "mac-monolithic",
  64. "displayName": "Mac Monolithic",
  65. "description": "Default configuration for monolithic builds",
  66. "binaryDir": "${sourceDir}/build/mac_mono",
  67. "inherits": [
  68. "monolithic",
  69. "host-mac"
  70. ]
  71. },
  72. {
  73. "name": "mac-xcode",
  74. "displayName": "Mac Xcode",
  75. "description": "Configure Mac using with the Xcode generator",
  76. "binaryDir": "${sourceDir}/build/mac_xcode",
  77. "inherits":[
  78. "xcode"
  79. ]
  80. },
  81. {
  82. "name": "mac-xcode-unity",
  83. "displayName": "Mac Xcode Unity",
  84. "description": "Configure Mac with the Xcode generator + Unity Builds",
  85. "binaryDir": "${sourceDir}/build/mac_xcode_unity",
  86. "inherits": [
  87. "mac-unity",
  88. "xcode"
  89. ]
  90. },
  91. {
  92. "name": "mac-xcode-no-unity",
  93. "displayName": "Mac Xcode without Unity",
  94. "description": "Configure Mac with the Xcode Generator without unity builds",
  95. "binaryDir": "${sourceDir}/build/mac_xcode_no_unity",
  96. "inherits": [
  97. "mac-no-unity",
  98. "xcode"
  99. ]
  100. },
  101. {
  102. "name": "mac-ninja",
  103. "displayName": "Mac Ninja",
  104. "description": "Configure Mac using with the Ninja generator",
  105. "binaryDir": "${sourceDir}/build/mac_ninja",
  106. "inherits": [
  107. "mac-ninja-unity"
  108. ]
  109. },
  110. {
  111. "name": "mac-ninja-unity",
  112. "displayName": "Mac Ninja Unity",
  113. "description": "Configure Mac with the Ninja generator + Unity Builds",
  114. "binaryDir": "${sourceDir}/build/mac_ninja_unity",
  115. "inherits": [
  116. "ninja-multi-config",
  117. "mac-unity"
  118. ]
  119. },
  120. {
  121. "name": "mac-ninja-no-unity",
  122. "displayName": "Mac Ninja without Unity",
  123. "description": "Configure Mac with the Ninja Generator without unity builds",
  124. "binaryDir": "${sourceDir}/build/mac_ninja_no_unity",
  125. "inherits": [
  126. "ninja-multi-config",
  127. "mac-no-unity"
  128. ]
  129. }
  130. ],
  131. "buildPresets": [
  132. {
  133. "name": "mac-default",
  134. "displayName": "Mac",
  135. "description": "Builds all targets for Mac",
  136. "configurePreset": "mac-default",
  137. "inherits":[
  138. "host-mac"
  139. ]
  140. },
  141. {
  142. "name": "mac-install",
  143. "displayName": "Mac install",
  144. "description": "Builds the \"install\" target for Mac, which builds all target and runs the CMake --install step",
  145. "configurePreset": "mac-default",
  146. "inherits": [
  147. "install",
  148. "host-mac"
  149. ],
  150. "condition": {
  151. "type": "equals",
  152. "lhs": "${hostSystemName}",
  153. "rhs": "Darwin"
  154. }
  155. },
  156. {
  157. "name": "mac-mono-default",
  158. "displayName": "Mac Monolithic",
  159. "description": "Builds all targets for Mac in the monolithic permutation",
  160. "configurePreset": "mac-mono-default",
  161. "inherits":[
  162. "host-mac"
  163. ]
  164. },
  165. {
  166. "name": "mac-mono-install",
  167. "displayName": "Mac Monolithic install",
  168. "description": "Builds the \"install\" target for mac monolithic permutation, which builds all target and runs the CMake --install step",
  169. "configurePreset": "mac-mono-default",
  170. "inherits": [
  171. "install",
  172. "host-mac"
  173. ]
  174. },
  175. {
  176. "name": "mac-editor",
  177. "displayName": "Mac Editor",
  178. "description": "Builds the Editor application for Mac",
  179. "configurePreset": "mac-default",
  180. "inherits": [
  181. "editor",
  182. "host-mac"
  183. ]
  184. },
  185. {
  186. "name": "mac-assetprocessor",
  187. "displayName": "Mac AssetProcessor",
  188. "description": "Builds the AssetProcessor application for Mac",
  189. "configurePreset": "mac-default",
  190. "inherits": [
  191. "assetprocessor",
  192. "host-mac"
  193. ]
  194. },
  195. {
  196. "name": "mac-test",
  197. "displayName": "Mac CTest",
  198. "description": "Builds the TEST_SUITE_smoke/TEST_SUITE_main custom targets for Mac",
  199. "configurePreset": "mac-default",
  200. "inherits": [
  201. "test-default",
  202. "host-mac"
  203. ]
  204. }
  205. ],
  206. "testPresets": [
  207. {
  208. "name": "mac-test-default",
  209. "displayName": "Mac CTest",
  210. "description": "Runs the Smoke + Main Test Suite. Requires the mac-test build preset to have completed successfully",
  211. "configurePreset": "mac-default",
  212. "inherits": [
  213. "test-default",
  214. "host-mac"
  215. ]
  216. },
  217. {
  218. "name": "mac-test-debug",
  219. "displayName": "Mac CTest debug",
  220. "description": "Runs the Smoke + Main Test Suite in debug configuration. Requires the mac-test build preset to have completed successfully",
  221. "configurePreset": "mac-default",
  222. "inherits": [
  223. "test-default-debug",
  224. "host-mac"
  225. ]
  226. },
  227. {
  228. "name": "mac-test-profile",
  229. "displayName": "Mac CTest profile",
  230. "description": "Runs the Smoke + Main Test Suite in profile configuration. Requires the mac-test build preset to have completed successfully",
  231. "configurePreset": "mac-default",
  232. "inherits": [
  233. "test-default-profile",
  234. "host-mac"
  235. ]
  236. }
  237. ]
  238. }