CMakePresets.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. {
  2. "version": 4,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 23,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "default",
  11. "description": "Placeholder configuration that buildPresets and testPresets can inherit from",
  12. "hidden": true
  13. },
  14. {
  15. "name": "debug",
  16. "description": "Specifies build type for single-configuration generators: debug",
  17. "hidden": true,
  18. "cacheVariables": {
  19. "CMAKE_BUILD_TYPE": {
  20. "type": "STRING",
  21. "value": "debug"
  22. }
  23. }
  24. },
  25. {
  26. "name": "release",
  27. "description": "Specifies build type for single-configuration generators: release",
  28. "hidden": true,
  29. "cacheVariables": {
  30. "CMAKE_BUILD_TYPE": {
  31. "type": "STRING",
  32. "value": "release"
  33. }
  34. }
  35. },
  36. {
  37. "name": "profile",
  38. "description": "Specifies build type for single-configuration generators: profile",
  39. "hidden": true,
  40. "cacheVariables": {
  41. "CMAKE_BUILD_TYPE": {
  42. "type": "STRING",
  43. "value": "profile"
  44. }
  45. }
  46. },
  47. {
  48. "name": "no-unity",
  49. "description": "unity: off",
  50. "hidden": true,
  51. "cacheVariables": {
  52. "LY_UNITY_BUILD": {
  53. "type": "BOOL",
  54. "value": "OFF"
  55. }
  56. }
  57. },
  58. {
  59. "name": "unity",
  60. "description": "unity: on",
  61. "hidden": true,
  62. "cacheVariables": {
  63. "LY_UNITY_BUILD": {
  64. "type": "BOOL",
  65. "value": "ON"
  66. }
  67. }
  68. },
  69. {
  70. "name": "non-monolithic",
  71. "description": "non-monolithic permutation(Default)",
  72. "hidden": true,
  73. "cacheVariables": {
  74. "LY_MONOLITHIC_GAME": {
  75. "type": "BOOL",
  76. "value": "OFF"
  77. }
  78. }
  79. },
  80. {
  81. "name": "monolithic",
  82. "description": "monolithic permutation(Monolithic)",
  83. "hidden": true,
  84. "cacheVariables": {
  85. "LY_MONOLITHIC_GAME": {
  86. "type": "BOOL",
  87. "value": "ON"
  88. }
  89. }
  90. },
  91. {
  92. "name": "ninja-multi-config",
  93. "displayName": "Ninja Multi-Config",
  94. "description": "Default build using Ninja Multi-Config generator",
  95. "hidden": true,
  96. "generator": "Ninja Multi-Config"
  97. }
  98. ],
  99. "buildPresets": [
  100. {
  101. "name": "debug",
  102. "description": "configuration: debug",
  103. "hidden": true,
  104. "configurePreset": "default",
  105. "configuration": "debug"
  106. },
  107. {
  108. "name": "release",
  109. "description": "configuration: release",
  110. "hidden": true,
  111. "configurePreset": "default",
  112. "configuration": "release"
  113. },
  114. {
  115. "name": "profile",
  116. "description": "configuration: profile",
  117. "hidden": true,
  118. "configurePreset": "default",
  119. "configuration": "profile"
  120. },
  121. {
  122. "name": "editor",
  123. "description": "target: editor",
  124. "hidden": true,
  125. "configurePreset": "default",
  126. "inherits": [ "profile"],
  127. "targets": "Editor"
  128. },
  129. {
  130. "name": "assetprocessor",
  131. "description": "target: asset processor",
  132. "hidden": true,
  133. "configurePreset": "default",
  134. "inherits": [ "profile"],
  135. "targets": "AssetProcessor"
  136. },
  137. {
  138. "name": "install",
  139. "description": "Builds the dependencies install(Ninja, Make, etc...) or INSTALL(Visual Studio, Xcode) target. Afterwards run the CMake install step to install the build dependencies",
  140. "hidden": true,
  141. "configurePreset": "default",
  142. "inherits": [ "profile"],
  143. "targets": "install"
  144. },
  145. {
  146. "name": "test-default",
  147. "description": "Builds the smoke and main test suite dependencies",
  148. "hidden": true,
  149. "configurePreset": "default",
  150. "inherits": [ "profile"],
  151. "targets": ["TEST_SUITE_main", "TEST_SUITE_smoke"]
  152. }
  153. ],
  154. "testPresets": [
  155. {
  156. "name": "test-default",
  157. "description": "CTest preset which runs the smoke and main test suites",
  158. "hidden": true,
  159. "configurePreset": "default",
  160. "output": {
  161. "outputOnFailure": true,
  162. "outputLogFile": "Ctest-${presetName}.log"
  163. },
  164. "execution": {
  165. "noTestsAction": "error"
  166. },
  167. "filter": {
  168. "include": {
  169. "label": "(SUITE_smoke|SUITE_main)"
  170. },
  171. "exclude": {
  172. "label": "(REQUIRES_gpu)"
  173. }
  174. }
  175. },
  176. {
  177. "name": "test-default-debug",
  178. "description": "Runs the smoke and main test suites using the debug configuration",
  179. "hidden": true,
  180. "configurePreset": "default",
  181. "inherits": ["test-default"],
  182. "configuration": "debug",
  183. "output": {
  184. "outputLogFile": "Ctest-${presetName}-debug.log"
  185. }
  186. },
  187. {
  188. "name": "test-default-profile",
  189. "description": "Runs the smoke and main test suites using the profile configuration",
  190. "hidden": true,
  191. "configurePreset": "default",
  192. "inherits": ["test-default"],
  193. "configuration": "profile",
  194. "output": {
  195. "outputLogFile": "Ctest-${presetName}-profile.log"
  196. }
  197. }
  198. ]
  199. }