CMakePresets.json 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. {
  2. "version": 8,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 28,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "environmentVars",
  11. "hidden": true,
  12. "cacheVariables": {
  13. "RESTREAM_CLIENTID": {"type": "STRING", "value": "$penv{RESTREAM_CLIENTID}"},
  14. "RESTREAM_HASH": {"type": "STRING", "value": "$penv{RESTREAM_HASH}"},
  15. "TWITCH_CLIENTID": {"type": "STRING", "value": "$penv{TWITCH_CLIENTID}"},
  16. "TWITCH_HASH": {"type": "STRING", "value": "$penv{TWITCH_HASH}"},
  17. "YOUTUBE_CLIENTID": {"type": "STRING", "value": "$penv{YOUTUBE_CLIENTID}"},
  18. "YOUTUBE_CLIENTID_HASH": {"type": "STRING", "value": "$penv{YOUTUBE_CLIENTID_HASH}"},
  19. "YOUTUBE_SECRET": {"type": "STRING", "value": "$penv{YOUTUBE_SECRET}"},
  20. "YOUTUBE_SECRET_HASH": {"type": "STRING", "value": "$penv{YOUTUBE_SECRET_HASH}"}
  21. }
  22. },
  23. {
  24. "name": "dependencies",
  25. "hidden": true,
  26. "vendor": {
  27. "obsproject.com/obs-studio": {
  28. "dependencies": {
  29. "prebuilt": {
  30. "version": "2025-08-23",
  31. "baseUrl": "https://github.com/obsproject/obs-deps/releases/download",
  32. "label": "Pre-Built obs-deps",
  33. "hashes": {
  34. "macos-universal": "9403bb43fb0a9bb215739a5659ca274fe884dbbbcd22bd9ca781c961fb041c42",
  35. "windows-x64": "8de229cff6f1981508c0eb646b35e644633a5855787b9f5d3b90ae2aeb87ffc1",
  36. "windows-x86": "fb3c68b75911f292b3206e346053638db1c73605957207445a0a92b33ab5e00a",
  37. "windows-arm64": "dd87ba00a6cbc153182fb62b3678a3b5021d1d11eb2730442060937a645eb97e"
  38. }
  39. },
  40. "qt6": {
  41. "version": "2025-08-23",
  42. "baseUrl": "https://github.com/obsproject/obs-deps/releases/download",
  43. "label": "Pre-Built Qt6",
  44. "hashes": {
  45. "macos-universal": "990f11638b80a4509e14e8c315f6e4caa0861e37fcd3113a256fbff835ffca29",
  46. "windows-x64": "c62e82483bc7c0bf199e8ac3220c66a85a6e8a0cd69a05b6d44f873b830e415f",
  47. "windows-arm64": "cc8ec983de9b7d81aa98beeb1b989d707ee3c73b85b4d41c85d94114eba81f91"
  48. },
  49. "debugSymbols": {
  50. "windows-x64": "aae88a17e0211cb37db6a8602f2e20d69255be1f9700c699008ca5adbce1dde2",
  51. "windows-arm64": "6e866490277a8b29e82a87fc2f22407f93ddaf86444ea0d284370339a05511b3"
  52. }
  53. },
  54. "cef": {
  55. "version": "6533",
  56. "baseUrl": "https://cdn-fastly.obsproject.com/downloads",
  57. "label": "Chromium Embedded Framework",
  58. "hashes": {
  59. "macos-x86_64": "37bf7571a48c5dfa8519817e4a90a3503a0eb30f9eadd68f4c3e783e363f272a",
  60. "macos-arm64": "429b50e74f6c174dcfe2f14d8204b54add497eaafe117f7b69ce6bb2354d2626",
  61. "ubuntu-x86_64": "7963335519a19ccdc5233f7334c5ab023026e2f3e9a0cc417007c09d86608146",
  62. "ubuntu-aarch64": "642514469eaa29a5c887891084d2e73f7dc2d7405f7dfa7726b2dbc24b309999",
  63. "windows-x64": "922efbda1f2f8be9e5b2754d878a14d90afc81f04e94fc9101a7513e2b5cecc1",
  64. "windows-arm64": "df9df4bd85826b4c071c6db404fd59cf93efd9c58ec3ab64e204466ae19bb02a"
  65. },
  66. "revision": {
  67. "macos-x86_64": 5,
  68. "macos-arm64": 5,
  69. "ubuntu-x86_64": 6,
  70. "ubuntu-aarch64": 6,
  71. "windows-x64": 2
  72. }
  73. }
  74. },
  75. "tools": {
  76. "sparkle": {
  77. "version": "2.6.4",
  78. "baseUrl": "https://github.com/sparkle-project/Sparkle/releases/download",
  79. "label": "Sparkle 2",
  80. "hash": "50612a06038abc931f16011d7903b8326a362c1074dabccb718404ce8e585f0b"
  81. }
  82. }
  83. }
  84. }
  85. },
  86. {
  87. "name": "macos",
  88. "displayName": "macOS",
  89. "description": "Default macOS build (single architecture only)",
  90. "inherits": ["environmentVars"],
  91. "condition": {
  92. "type": "equals",
  93. "lhs": "${hostSystemName}",
  94. "rhs": "Darwin"
  95. },
  96. "generator": "Xcode",
  97. "binaryDir": "${sourceDir}/build_macos",
  98. "cacheVariables": {
  99. "CMAKE_OSX_DEPLOYMENT_TARGET": {"type": "STRING", "value": "12.0"},
  100. "OBS_CODESIGN_IDENTITY": {"type": "STRING", "value": "$penv{CODESIGN_IDENT}"},
  101. "OBS_CODESIGN_TEAM": {"type": "STRING", "value": "$penv{CODESIGN_TEAM}"},
  102. "OBS_PROVISIONING_PROFILE": {"type": "STRING", "value": "$penv{PROVISIONING_PROFILE}"},
  103. "VIRTUALCAM_DEVICE_UUID": {"type": "STRING", "value": "7626645E-4425-469E-9D8B-97E0FA59AC75"},
  104. "VIRTUALCAM_SINK_UUID": {"type": "STRING", "value": "A3F16177-7044-4DD8-B900-72E2419F7A9A"},
  105. "VIRTUALCAM_SOURCE_UUID": {"type": "STRING", "value": "A8D7B8AA-65AD-4D21-9C42-66480DBFA8E1"},
  106. "SPARKLE_APPCAST_URL": {"type": "STRING", "value": "https://obsproject.com/osx_update/updates_$(ARCHS)_v2.xml"},
  107. "SPARKLE_PUBLIC_KEY": {"type": "STRING", "value": "HQ5/Ba9VHOuEWaM0jtVjZzgHKFJX9YTl+HNVpgNF0iM="},
  108. "ENABLE_BROWSER": true
  109. }
  110. },
  111. {
  112. "name": "macos-ci",
  113. "displayName": "macOS (CI)",
  114. "description": "CI macOS build (single architecture only)",
  115. "inherits": ["macos"],
  116. "warnings": {"dev": true, "deprecated": true},
  117. "cacheVariables": {
  118. "CMAKE_COMPILE_WARNING_AS_ERROR": true,
  119. "CMAKE_XCODE_ATTRIBUTE_COMPILATION_CACHE_ENABLE_CACHING": "YES",
  120. "CMAKE_XCODE_ATTRIBUTE_COMPILATION_CACHE_CAS_PATH": "$penv{XCODE_CAS_PATH}"
  121. }
  122. },
  123. {
  124. "name": "ubuntu",
  125. "displayName": "Ubuntu",
  126. "description": "obs-studio for Ubuntu",
  127. "inherits": ["environmentVars"],
  128. "condition": {
  129. "type": "equals",
  130. "lhs": "${hostSystemName}",
  131. "rhs": "Linux"
  132. },
  133. "binaryDir": "${sourceDir}/build_ubuntu",
  134. "generator": "Ninja",
  135. "warnings": {"dev": true, "deprecated": true},
  136. "cacheVariables": {
  137. "CMAKE_BUILD_TYPE": "Debug",
  138. "CMAKE_INSTALL_LIBDIR": "lib/CMAKE_SYSTEM_PROCESSOR-linux-gnu",
  139. "ENABLE_AJA": false,
  140. "ENABLE_VLC": true,
  141. "ENABLE_WAYLAND": true,
  142. "ENABLE_WEBRTC": false
  143. }
  144. },
  145. {
  146. "name": "ubuntu-ci",
  147. "inherits": ["ubuntu"],
  148. "cacheVariables": {
  149. "CMAKE_BUILD_TYPE": "RelWithDebInfo",
  150. "CMAKE_COMPILE_WARNING_AS_ERROR": true,
  151. "CMAKE_COLOR_DIAGNOSTICS": true,
  152. "ENABLE_CCACHE": true
  153. }
  154. },
  155. {
  156. "name": "windows-x64",
  157. "displayName": "Windows x64",
  158. "description": "Default Windows build (x64)",
  159. "inherits": ["environmentVars"],
  160. "condition": {
  161. "type": "equals",
  162. "lhs": "${hostSystemName}",
  163. "rhs": "Windows"
  164. },
  165. "architecture": "x64,version=10.0.22621.0",
  166. "binaryDir": "${sourceDir}/build_x64",
  167. "generator": "Visual Studio 17 2022",
  168. "cacheVariables": {
  169. "GPU_PRIORITY_VAL": {"type": "STRING", "value": "$penv{GPU_PRIORITY_VAL}"},
  170. "VIRTUALCAM_GUID": {"type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"},
  171. "ENABLE_BROWSER": true
  172. }
  173. },
  174. {
  175. "name": "windows-ci-x64",
  176. "displayName": "Windows x64 (CI)",
  177. "description": "CI Windows build (x64)",
  178. "inherits": ["windows-x64"],
  179. "warnings": {"dev": true, "deprecated": true},
  180. "cacheVariables": {
  181. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  182. }
  183. },
  184. {
  185. "name": "windows-arm64",
  186. "displayName": "Windows ARM64",
  187. "description": "Default Windows build (ARM64)",
  188. "inherits": ["environmentVars"],
  189. "condition": {
  190. "type": "equals",
  191. "lhs": "${hostSystemName}",
  192. "rhs": "Windows"
  193. },
  194. "architecture": "ARM64,version=10.0.22621.0",
  195. "binaryDir": "${sourceDir}/build_arm64",
  196. "generator": "Visual Studio 17 2022",
  197. "cacheVariables": {
  198. "GPU_PRIORITY_VAL": {"type": "STRING", "value": "$penv{GPU_PRIORITY_VAL}"},
  199. "VIRTUALCAM_GUID": {"type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"},
  200. "ENABLE_AJA": false,
  201. "ENABLE_BROWSER": true,
  202. "ENABLE_SCRIPTING": false,
  203. "ENABLE_VST": false
  204. }
  205. },
  206. {
  207. "name": "windows-ci-arm64",
  208. "displayName": "Windows ARM64 (CI)",
  209. "description": "CI Windows build (ARM64)",
  210. "inherits": ["windows-arm64"],
  211. "warnings": {"dev": true, "deprecated": true},
  212. "cacheVariables": {
  213. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  214. }
  215. }
  216. ],
  217. "buildPresets": [
  218. {
  219. "name": "windows-x64",
  220. "configurePreset": "windows-x64",
  221. "displayName": "Windows 64-bit",
  222. "description": "Windows build for 64-bit (aka x64)",
  223. "configuration": "RelWithDebInfo"
  224. },
  225. {
  226. "name": "windows-arm64",
  227. "configurePreset": "windows-arm64",
  228. "displayName": "Windows on ARM 64-bit",
  229. "description": "Windows build for ARM 64-bit (aka ARM64)",
  230. "configuration": "RelWithDebInfo"
  231. }
  232. ]
  233. }