CMakePresets.json 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  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. "OBS_CODESIGN_TEAM": "$penv{CODESIGN_TEAM}",
  75. "SPARKLE_APPCAST_URL": {"type": "STRING", "value": "https://obsproject.com/osx_update/updates_arm64_v2.xml"},
  76. "SPARKLE_PUBLIC_KEY": {"type": "STRING", "value": "HQ5/Ba9VHOuEWaM0jtVjZzgHKFJX9YTl+HNVpgNF0iM="},
  77. "VIRTUALCAM_DEVICE_UUID": {"type": "STRING", "value": "7626645E-4425-469E-9D8B-97E0FA59AC75"},
  78. "VIRTUALCAM_SOURCE_UUID": {"type": "STRING", "value": "A8D7B8AA-65AD-4D21-9C42-66480DBFA8E1"},
  79. "VIRTUALCAM_SINK_UUID": {"type": "STRING", "value": "A3F16177-7044-4DD8-B900-72E2419F7A9A"}
  80. }
  81. },
  82. {
  83. "name": "macos-release-x86_64",
  84. "displayName": "macOS Intel (Release)",
  85. "description": "obs-studio for macOS (Intel) - Release Configuration",
  86. "inherits": ["macos-x86_64"],
  87. "cacheVariables": {
  88. "ENABLE_RELEASE_BUILD": true,
  89. "ENABLE_SPARKLE": true,
  90. "OBS_SPARKLE_KEY": {"type": "STRING", "value": ""},
  91. "OBS_CODESIGN_IDENTITY": "$penv{CODESIGN_IDENT}",
  92. "OBS_CODESIGN_TEAM": "$penv{CODESIGN_TEAM}",
  93. "SPARKLE_APPCAST_URL": {"type": "STRING", "value": "https://obsproject.com/osx_update/updates_x86_64_v2.xml"},
  94. "SPARKLE_PUBLIC_KEY": {"type": "STRING", "value": "HQ5/Ba9VHOuEWaM0jtVjZzgHKFJX9YTl+HNVpgNF0iM="},
  95. "VIRTUALCAM_DEVICE_UUID": {"type": "STRING", "value": "7626645E-4425-469E-9D8B-97E0FA59AC75"},
  96. "VIRTUALCAM_SOURCE_UUID": {"type": "STRING", "value": "A8D7B8AA-65AD-4D21-9C42-66480DBFA8E1"},
  97. "VIRTUALCAM_SINK_UUID": {"type": "STRING", "value": "A3F16177-7044-4DD8-B900-72E2419F7A9A"}
  98. }
  99. },
  100. {
  101. "name": "linux-aarch64",
  102. "displayName": "Linux aarch64",
  103. "description": "obs-studio for Linux (aarch64)",
  104. "condition": {
  105. "type": "equals",
  106. "lhs": "${hostSystemName}",
  107. "rhs": "Linux"
  108. },
  109. "binaryDir": "${sourceDir}/build_aarch64",
  110. "generator": "Ninja",
  111. "warnings": {"dev": true, "deprecated": true},
  112. "cacheVariables": {
  113. "ENABLE_WAYLAND": true,
  114. "ENABLE_VLC": true,
  115. "QT_VERSION": "6",
  116. "CMAKE_BUILD_TYPE": "Debug",
  117. "OBS_CMAKE_VERSION": "2.0.0",
  118. "CMAKE_PREFIX_PATH": {
  119. "type": "PATH",
  120. "value": ""
  121. }
  122. }
  123. },
  124. {
  125. "name": "linux-ci-aarch64",
  126. "inherits": ["linux-aarch64"],
  127. "hidden": true,
  128. "cacheVariables": {
  129. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  130. }
  131. },
  132. {
  133. "name": "linux-release-aarch64",
  134. "displayName": "Linux aarch64 (Release)",
  135. "description": "obs-studio for Linux (aarch64) - Release Configuration",
  136. "inherits": "linux-aarch64",
  137. "cacheVariables": {
  138. "ENABLE_RELEASE_BUILD": true
  139. }
  140. },
  141. {
  142. "name": "linux-x86_64",
  143. "displayName": "Linux x86_64",
  144. "description": "obs-studio for Linux (x86_64)",
  145. "condition": {
  146. "type": "equals",
  147. "lhs": "${hostSystemName}",
  148. "rhs": "Linux"
  149. },
  150. "binaryDir": "${sourceDir}/build_x86_64",
  151. "generator": "Ninja",
  152. "warnings": {"dev": true, "deprecated": true},
  153. "cacheVariables": {
  154. "ENABLE_WAYLAND": true,
  155. "ENABLE_VLC": true,
  156. "QT_VERSION": "6",
  157. "CMAKE_BUILD_TYPE": "Debug",
  158. "OBS_CMAKE_VERSION": "2.0.0",
  159. "CMAKE_PREFIX_PATH": {
  160. "type": "PATH",
  161. "value": ""
  162. },
  163. "CEF_ROOT_DIR": {
  164. "type": "PATH",
  165. "value": ""
  166. }
  167. }
  168. },
  169. {
  170. "name": "linux-ci-x86_64",
  171. "inherits": ["linux-x86_64"],
  172. "hidden": true,
  173. "cacheVariables": {
  174. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  175. }
  176. },
  177. {
  178. "name": "linux-release-x86_64",
  179. "displayName": "Linux x86_64 (Release)",
  180. "description": "obs-studio for Linux (x86_64) - Release Configuration",
  181. "inherits": "linux-x86_64",
  182. "cacheVariables": {
  183. "ENABLE_RELEASE_BUILD": true,
  184. "ENABLE_BROWSER": true
  185. }
  186. },
  187. {
  188. "name": "windows-x64",
  189. "displayName": "Windows x64",
  190. "description": "obs-studio for Windows (x64)",
  191. "condition": {
  192. "type": "equals",
  193. "lhs": "${hostSystemName}",
  194. "rhs": "Windows"
  195. },
  196. "architecture": "x64",
  197. "binaryDir": "${sourceDir}/build_x64",
  198. "generator": "Visual Studio 17 2022",
  199. "warnings": {"dev": true, "deprecated": true},
  200. "cacheVariables": {
  201. "QT_VERSION": "6",
  202. "CMAKE_BUILD_TYPE": "Debug",
  203. "OBS_WINDOWS_LEGACY_DIRS": true,
  204. "CMAKE_SYSTEM_VERSION": "10.0.18363.657",
  205. "OBS_CMAKE_VERSION": "2.0.0",
  206. "CMAKE_PREFIX_PATH": {
  207. "type": "PATH",
  208. "value": ""
  209. },
  210. "CEF_ROOT_DIR": {
  211. "type": "PATH",
  212. "value": ""
  213. },
  214. "VLC_PATH": {
  215. "type": "PATH",
  216. "value": ""
  217. }
  218. }
  219. },
  220. {
  221. "name": "windows-ci-x64",
  222. "inherits": "windows-x64",
  223. "hidden": true,
  224. "cacheVariables": {
  225. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  226. }
  227. },
  228. {
  229. "name": "windows-release-x64",
  230. "displayName": "Windowx x64 (Release)",
  231. "description": "obs-studio for Windows (x64) - Release Configuration",
  232. "inherits": "windows-x64",
  233. "cacheVariables": {
  234. "ENABLE_RELEASE_BUILD": true,
  235. "ENABLE_BROWSER": true,
  236. "ENABLE_VLC": true,
  237. "VIRTUALCAM_GUID": { "type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"}
  238. }
  239. }
  240. ],
  241. "buildPresets": [
  242. {
  243. "name": "macos-arm64",
  244. "configurePreset": "macos-arm64",
  245. "displayName": "macOS Apple Silicon",
  246. "description": "macOS build for Apple Silicon",
  247. "configuration": "RelWithDebInfo"
  248. },
  249. {
  250. "name": "macos-x86_64",
  251. "configurePreset": "macos-x86_64",
  252. "displayName": "macOS Intel",
  253. "description": "macOS build for Intel",
  254. "configuration": "RelWithDebInfo"
  255. },
  256. {
  257. "name": "linux-aarch64",
  258. "configurePreset": "linux-aarch64",
  259. "displayName": "Linux aarch64",
  260. "description": "Linux build for aarch64 (aka arm64)",
  261. "configuration": "RelWithDebInfo"
  262. },
  263. {
  264. "name": "linux-x86_64",
  265. "configurePreset": "linux-x86_64",
  266. "displayName": "Linux x86_64",
  267. "description": "Linux build for x86_64 (aka amd64)",
  268. "configuration": "RelWithDebInfo"
  269. },
  270. {
  271. "name": "windows-x64",
  272. "configurePreset": "windows-x64",
  273. "displayName": "Windows 64-bit",
  274. "description": "Windows build for 64-bit (aka x64)",
  275. "configuration": "RelWithDebInfo"
  276. }
  277. ]
  278. }