CMakePresets.json 5.3 KB

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