CMakePresets.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. {
  2. "version": 3,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 22,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "template",
  11. "hidden": true,
  12. "cacheVariables": {
  13. "ENABLE_FRONTEND_API": false,
  14. "ENABLE_QT": false
  15. }
  16. },
  17. {
  18. "name": "macos",
  19. "displayName": "macOS Universal",
  20. "description": "Build for macOS 11.0+ (Universal binary)",
  21. "inherits": ["template"],
  22. "binaryDir": "${sourceDir}/build_macos",
  23. "condition": {
  24. "type": "equals",
  25. "lhs": "${hostSystemName}",
  26. "rhs": "Darwin"
  27. },
  28. "generator": "Xcode",
  29. "warnings": {"dev": true, "deprecated": true},
  30. "cacheVariables": {
  31. "QT_VERSION": "6",
  32. "CMAKE_OSX_DEPLOYMENT_TARGET": "11.0",
  33. "CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
  34. "CODESIGN_TEAM": "$penv{CODESIGN_TEAM}"
  35. }
  36. },
  37. {
  38. "name": "macos-ci",
  39. "inherits": ["macos"],
  40. "displayName": "macOS Universal CI build",
  41. "description": "Build for macOS 11.0+ (Universal binary) for CI",
  42. "generator": "Xcode",
  43. "cacheVariables": {
  44. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  45. }
  46. },
  47. {
  48. "name": "windows-x64",
  49. "displayName": "Windows x64",
  50. "description": "Build for Windows x64",
  51. "inherits": ["template"],
  52. "binaryDir": "${sourceDir}/build_x64",
  53. "condition": {
  54. "type": "equals",
  55. "lhs": "${hostSystemName}",
  56. "rhs": "Windows"
  57. },
  58. "generator": "Visual Studio 17 2022",
  59. "architecture": "x64",
  60. "warnings": {"dev": true, "deprecated": true},
  61. "cacheVariables": {
  62. "QT_VERSION": "6",
  63. "CMAKE_SYSTEM_VERSION": "10.0.18363.657"
  64. }
  65. },
  66. {
  67. "name": "windows-ci-x64",
  68. "inherits": ["windows-x64"],
  69. "displayName": "Windows x64 CI build",
  70. "description": "Build for Windows x64 on CI",
  71. "cacheVariables": {
  72. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  73. }
  74. },
  75. {
  76. "name": "linux-x86_64",
  77. "displayName": "Linux x86_64",
  78. "description": "Build for Linux x86_64",
  79. "inherits": ["template"],
  80. "binaryDir": "${sourceDir}/build_x86_64",
  81. "condition": {
  82. "type": "equals",
  83. "lhs": "${hostSystemName}",
  84. "rhs": "Linux"
  85. },
  86. "generator": "Ninja",
  87. "warnings": {"dev": true, "deprecated": true},
  88. "cacheVariables": {
  89. "QT_VERSION": "6",
  90. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  91. }
  92. },
  93. {
  94. "name": "linux-ci-x86_64",
  95. "inherits": ["linux-x86_64"],
  96. "displayName": "Linux x86_64 CI build",
  97. "description": "Build for Linux x86_64 on CI",
  98. "cacheVariables": {
  99. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  100. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  101. }
  102. },
  103. {
  104. "name": "linux-aarch64",
  105. "displayName": "Linux aarch64",
  106. "description": "Build for Linux aarch64",
  107. "inherits": ["template"],
  108. "binaryDir": "${sourceDir}/build_aarch64",
  109. "condition": {
  110. "type": "equals",
  111. "lhs": "${hostSystemName}",
  112. "rhs": "Linux"
  113. },
  114. "generator": "Ninja",
  115. "warnings": {"dev": true, "deprecated": true},
  116. "cacheVariables": {
  117. "QT_VERSION": "6",
  118. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  119. }
  120. },
  121. {
  122. "name": "linux-ci-aarch64",
  123. "inherits": ["linux-aarch64"],
  124. "displayName": "Linux aarch64 CI build",
  125. "description": "Build for Linux aarch64 on CI",
  126. "cacheVariables": {
  127. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  128. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  129. }
  130. }
  131. ],
  132. "buildPresets": [
  133. {
  134. "name": "macos",
  135. "configurePreset": "macos",
  136. "displayName": "macOS Universal",
  137. "description": "macOS build for Universal architectures",
  138. "configuration": "Release"
  139. },
  140. {
  141. "name": "macos-ci",
  142. "configurePreset": "macos-ci",
  143. "displayName": "macOS Universal CI",
  144. "description": "macOS CI build for Universal architectures",
  145. "configuration": "RelWithDebInfo"
  146. },
  147. {
  148. "name": "windows-x64",
  149. "configurePreset": "windows-x64",
  150. "displayName": "Windows x64",
  151. "description": "Windows build for x64",
  152. "configuration": "RelWithDebInfo"
  153. },
  154. {
  155. "name": "windows-ci-x64",
  156. "configurePreset": "windows-ci-x64",
  157. "displayName": "Windows x64 CI",
  158. "description": "Windows CI build for x64 (RelWithDebInfo configuration)",
  159. "configuration": "RelWithDebInfo"
  160. },
  161. {
  162. "name": "linux-x86_64",
  163. "configurePreset": "linux-x86_64",
  164. "displayName": "Linux x86_64",
  165. "description": "Linux build for x86_64",
  166. "configuration": "RelWithDebInfo"
  167. },
  168. {
  169. "name": "linux-ci-x86_64",
  170. "configurePreset": "linux-ci-x86_64",
  171. "displayName": "Linux x86_64 CI",
  172. "description": "Linux CI build for x86_64",
  173. "configuration": "RelWithDebInfo"
  174. },
  175. {
  176. "name": "linux-aarch64",
  177. "configurePreset": "linux-aarch64",
  178. "displayName": "Linux aarch64",
  179. "description": "Linux build for aarch64",
  180. "configuration": "RelWithDebInfo"
  181. },
  182. {
  183. "name": "linux-ci-aarch64",
  184. "configurePreset": "linux-ci-aarch64",
  185. "displayName": "Linux aarch64 CI",
  186. "description": "Linux CI build for aarch64",
  187. "configuration": "RelWithDebInfo"
  188. }
  189. ]
  190. }