CMakePresets.json 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. {
  2. "version": 5,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 22,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "macos",
  11. "hidden": true,
  12. "condition": {
  13. "type": "equals",
  14. "lhs": "${hostSystemName}",
  15. "rhs": "Darwin"
  16. },
  17. "generator": "Xcode",
  18. "warnings": {"dev": true, "deprecated": true},
  19. "cacheVariables": {
  20. "QT_VERSION": "6",
  21. "ENABLE_BROWSER": true,
  22. "ENABLE_VLC": true,
  23. "CMAKE_OSX_DEPLOYMENT_TARGET": "11.0",
  24. "OBS_CODESIGN_IDENTITY": "-",
  25. "OBS_CMAKE_VERSION": "3.0.0"
  26. }
  27. },
  28. {
  29. "name": "macos-arm64",
  30. "inherits": "macos",
  31. "displayName": "macOS Apple Silicon",
  32. "description": "obs-studio for macOS 11.0+ (Apple Silicon)",
  33. "binaryDir": "${sourceDir}/build_arm64",
  34. "cacheVariables": {
  35. "CMAKE_OSX_ARCHITECTURES": "arm64"
  36. }
  37. },
  38. {
  39. "name": "macos-x86_64",
  40. "inherits": "macos",
  41. "displayName": "macOS Apple Intel",
  42. "description": "obs-studio for macOS 11.0+ (Intel)",
  43. "binaryDir": "${sourceDir}/build_x86_64",
  44. "cacheVariables": {
  45. "CMAKE_OSX_ARCHITECTURES": "x86_64"
  46. }
  47. },
  48. {
  49. "name": "macos-ci-arm64",
  50. "inherits": ["macos-arm64"],
  51. "generator": "Ninja",
  52. "cacheVariables": {
  53. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  54. }
  55. },
  56. {
  57. "name": "macos-ci-x86_64",
  58. "inherits": ["macos-x86_64"],
  59. "generator": "Ninja",
  60. "cacheVariables": {
  61. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  62. }
  63. },
  64. {
  65. "name": "macos-release-arm64",
  66. "displayName": "macOS Apple Silicon (Release)",
  67. "description": "obs-studio for macOS (Apple) - Release Configuration",
  68. "inherits": ["macos-arm64"],
  69. "cacheVariables": {
  70. "ENABLE_RELEASE_BUILD": true,
  71. "ENABLE_SPARKLE": true,
  72. "OBS_SPARKLE_KEY": {"type": "STRING", "value": ""},
  73. "OBS_CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
  74. "SPARKLE_APPCAST_URL": {"type": "STRING", "value": "https://obsproject.com/osx_update/updates_arm64_v2.xml"},
  75. "SPARKLE_PUBLIC_KEY": {"type": "STRING", "value": "HQ5/Ba9VHOuEWaM0jtVjZzgHKFJX9YTl+HNVpgNF0iM="},
  76. "VIRTUALCAM_DEVICE_UUID": {"type": "STRING", "value": "7626645E-4425-469E-9D8B-97E0FA59AC75"},
  77. "VIRTUALCAM_SOURCE_UUID": {"type": "STRING", "value": "A8D7B8AA-65AD-4D21-9C42-66480DBFA8E1"},
  78. "VIRTUALCAM_SINK_UUID": {"type": "STRING", "value": "A3F16177-7044-4DD8-B900-72E2419F7A9A"}
  79. }
  80. },
  81. {
  82. "name": "macos-release-x86_64",
  83. "displayName": "macOS Intel (Release)",
  84. "description": "obs-studio for macOS (Intel) - Release Configuration",
  85. "inherits": ["macos-x86_64"],
  86. "cacheVariables": {
  87. "ENABLE_RELEASE_BUILD": true,
  88. "ENABLE_SPARKLE": true,
  89. "OBS_SPARKLE_KEY": {"type": "STRING", "value": ""},
  90. "OBS_CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
  91. "SPARKLE_APPCAST_URL": {"type": "STRING", "value": "https://obsproject.com/osx_update/updates_x86_64_v2.xml"},
  92. "SPARKLE_PUBLIC_KEY": {"type": "STRING", "value": "HQ5/Ba9VHOuEWaM0jtVjZzgHKFJX9YTl+HNVpgNF0iM="},
  93. "VIRTUALCAM_DEVICE_UUID": {"type": "STRING", "value": "7626645E-4425-469E-9D8B-97E0FA59AC75"},
  94. "VIRTUALCAM_SOURCE_UUID": {"type": "STRING", "value": "A8D7B8AA-65AD-4D21-9C42-66480DBFA8E1"},
  95. "VIRTUALCAM_SINK_UUID": {"type": "STRING", "value": "A3F16177-7044-4DD8-B900-72E2419F7A9A"}
  96. }
  97. },
  98. {
  99. "name": "linux-aarch64",
  100. "displayName": "Linux aarch64",
  101. "description": "obs-studio for Linux (aarch64)",
  102. "condition": {
  103. "type": "equals",
  104. "lhs": "${hostSystemName}",
  105. "rhs": "Linux"
  106. },
  107. "binaryDir": "${sourceDir}/build_aarch64",
  108. "generator": "Ninja",
  109. "warnings": {"dev": true, "deprecated": true},
  110. "cacheVariables": {
  111. "ENABLE_WAYLAND": true,
  112. "ENABLE_VLC": true,
  113. "QT_VERSION": "6",
  114. "CMAKE_BUILD_TYPE": "Debug",
  115. "OBS_CMAKE_VERSION": "2.0.0",
  116. "CMAKE_PREFIX_PATH": {
  117. "type": "PATH",
  118. "value": ""
  119. }
  120. }
  121. },
  122. {
  123. "name": "linux-ci-aarch64",
  124. "inherits": ["linux-aarch64"],
  125. "hidden": true,
  126. "cacheVariables": {
  127. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  128. }
  129. },
  130. {
  131. "name": "linux-release-aarch64",
  132. "displayName": "Linux aarch64 (Release)",
  133. "description": "obs-studio for Linux (aarch64) - Release Configuration",
  134. "inherits": "linux-aarch64",
  135. "cacheVariables": {
  136. "ENABLE_RELEASE_BUILD": true
  137. }
  138. },
  139. {
  140. "name": "linux-x86_64",
  141. "displayName": "Linux x86_64",
  142. "description": "obs-studio for Linux (x86_64)",
  143. "condition": {
  144. "type": "equals",
  145. "lhs": "${hostSystemName}",
  146. "rhs": "Linux"
  147. },
  148. "binaryDir": "${sourceDir}/build_x86_64",
  149. "generator": "Ninja",
  150. "warnings": {"dev": true, "deprecated": true},
  151. "cacheVariables": {
  152. "ENABLE_WAYLAND": true,
  153. "ENABLE_VLC": true,
  154. "QT_VERSION": "6",
  155. "CMAKE_BUILD_TYPE": "Debug",
  156. "OBS_CMAKE_VERSION": "2.0.0",
  157. "CMAKE_PREFIX_PATH": {
  158. "type": "PATH",
  159. "value": ""
  160. },
  161. "CEF_ROOT_DIR": {
  162. "type": "PATH",
  163. "value": ""
  164. }
  165. }
  166. },
  167. {
  168. "name": "linux-ci-x86_64",
  169. "inherits": ["linux-x86_64"],
  170. "hidden": true,
  171. "cacheVariables": {
  172. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  173. }
  174. },
  175. {
  176. "name": "linux-release-x86_64",
  177. "displayName": "Linux x86_64 (Release)",
  178. "description": "obs-studio for Linux (x86_64) - Release Configuration",
  179. "inherits": "linux-x86_64",
  180. "cacheVariables": {
  181. "ENABLE_RELEASE_BUILD": true,
  182. "ENABLE_BROWSER": true
  183. }
  184. },
  185. {
  186. "name": "windows-x64",
  187. "displayName": "Windows x64",
  188. "description": "obs-studio for Windows (x64)",
  189. "condition": {
  190. "type": "equals",
  191. "lhs": "${hostSystemName}",
  192. "rhs": "Windows"
  193. },
  194. "architecture": "x64",
  195. "binaryDir": "${sourceDir}/build_x64",
  196. "generator": "Visual Studio 17 2022",
  197. "warnings": {"dev": true, "deprecated": true},
  198. "cacheVariables": {
  199. "QT_VERSION": "6",
  200. "CMAKE_BUILD_TYPE": "Debug",
  201. "OBS_WINDOWS_LEGACY_DIRS": true,
  202. "CMAKE_SYSTEM_VERSION": "10.0.18363.657",
  203. "OBS_CMAKE_VERSION": "2.0.0",
  204. "CMAKE_PREFIX_PATH": {
  205. "type": "PATH",
  206. "value": ""
  207. },
  208. "CEF_ROOT_DIR": {
  209. "type": "PATH",
  210. "value": ""
  211. },
  212. "VLC_PATH": {
  213. "type": "PATH",
  214. "value": ""
  215. }
  216. }
  217. },
  218. {
  219. "name": "windows-ci-x64",
  220. "inherits": "windows-x64",
  221. "hidden": true,
  222. "cacheVariables": {
  223. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  224. }
  225. },
  226. {
  227. "name": "windows-release-x64",
  228. "displayName": "Windowx x64 (Release)",
  229. "description": "obs-studio for Windows (x64) - Release Configuration",
  230. "inherits": "windows-x64",
  231. "cacheVariables": {
  232. "ENABLE_RELEASE_BUILD": true,
  233. "ENABLE_BROWSER": true,
  234. "ENABLE_VLC": true,
  235. "VIRTUALCAM_GUID": { "type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"}
  236. }
  237. }
  238. ],
  239. "buildPresets": [
  240. {
  241. "name": "macos-arm64",
  242. "configurePreset": "macos-arm64",
  243. "displayName": "macOS Apple Silicon",
  244. "description": "macOS build for Apple Silicon",
  245. "configuration": "RelWithDebInfo"
  246. },
  247. {
  248. "name": "macos-x86_64",
  249. "configurePreset": "macos-x86_64",
  250. "displayName": "macOS Intel",
  251. "description": "macOS build for Intel",
  252. "configuration": "RelWithDebInfo"
  253. },
  254. {
  255. "name": "linux-aarch64",
  256. "configurePreset": "linux-aarch64",
  257. "displayName": "Linux aarch64",
  258. "description": "Linux build for aarch64 (aka arm64)",
  259. "configuration": "RelWithDebInfo"
  260. },
  261. {
  262. "name": "linux-x86_64",
  263. "configurePreset": "linux-x86_64",
  264. "displayName": "Linux x86_64",
  265. "description": "Linux build for x86_64 (aka amd64)",
  266. "configuration": "RelWithDebInfo"
  267. },
  268. {
  269. "name": "windows-x64",
  270. "configurePreset": "windows-x64",
  271. "displayName": "Windows 64-bit",
  272. "description": "Windows build for 64-bit (aka x64)",
  273. "configuration": "RelWithDebInfo"
  274. }
  275. ]
  276. }