CMakePresets.json 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. {
  2. "version": 5,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 22,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "macos",
  11. "displayName": "macOS",
  12. "description": "Default macOS build (single architecture only)",
  13. "condition": {
  14. "type": "equals",
  15. "lhs": "${hostSystemName}",
  16. "rhs": "Darwin"
  17. },
  18. "generator": "Xcode",
  19. "binaryDir": "${sourceDir}/build_macos",
  20. "cacheVariables": {
  21. "ENABLE_BROWSER": true,
  22. "CMAKE_OSX_DEPLOYMENT_TARGET": {"type": "STRING", "value": "11.0"},
  23. "OBS_CMAKE_VERSION": {"type": "STRING", "value": "3.0.0"},
  24. "OBS_CODESIGN_TEAM": {"type": "STRING", "value": "$penv{CODESIGN_TEAM}"},
  25. "OBS_CODESIGN_IDENTITY": {"type": "STRING", "value": "$penv{CODESIGN_IDENT}"},
  26. "OBS_PROVISIONING_PROFILE": {"type": "STRING", "value": "$penv{PROVISIONING_PROFILE}"},
  27. "VIRTUALCAM_DEVICE_UUID": {"type": "STRING", "value": "7626645E-4425-469E-9D8B-97E0FA59AC75"},
  28. "VIRTUALCAM_SOURCE_UUID": {"type": "STRING", "value": "A8D7B8AA-65AD-4D21-9C42-66480DBFA8E1"},
  29. "VIRTUALCAM_SINK_UUID": {"type": "STRING", "value": "A3F16177-7044-4DD8-B900-72E2419F7A9A"},
  30. "SPARKLE_APPCAST_URL": {"type": "STRING", "value": "https://obsproject.com/osx_update/updates_$(ARCHS)_v2.xml"},
  31. "SPARKLE_PUBLIC_KEY": {"type": "STRING", "value": "HQ5/Ba9VHOuEWaM0jtVjZzgHKFJX9YTl+HNVpgNF0iM="}
  32. }
  33. },
  34. {
  35. "name": "macos-ci",
  36. "displayName": "macOS (CI)",
  37. "description": "CI macOS build (single architecture only)",
  38. "inherits": ["macos"],
  39. "warnings": {"dev": true, "deprecated": true},
  40. "cacheVariables": {
  41. "CMAKE_COMPILE_WARNING_AS_ERROR": true
  42. }
  43. },
  44. {
  45. "name": "linux-aarch64",
  46. "displayName": "Linux aarch64",
  47. "description": "obs-studio for Linux (aarch64)",
  48. "condition": {
  49. "type": "equals",
  50. "lhs": "${hostSystemName}",
  51. "rhs": "Linux"
  52. },
  53. "binaryDir": "${sourceDir}/build_aarch64",
  54. "generator": "Ninja",
  55. "warnings": {"dev": true, "deprecated": true},
  56. "cacheVariables": {
  57. "ENABLE_WAYLAND": true,
  58. "ENABLE_VLC": true,
  59. "QT_VERSION": "6",
  60. "CMAKE_BUILD_TYPE": "Debug",
  61. "OBS_CMAKE_VERSION": "2.0.0",
  62. "CMAKE_PREFIX_PATH": {
  63. "type": "PATH",
  64. "value": ""
  65. }
  66. }
  67. },
  68. {
  69. "name": "linux-ci-aarch64",
  70. "inherits": ["linux-aarch64"],
  71. "hidden": true,
  72. "cacheVariables": {
  73. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  74. }
  75. },
  76. {
  77. "name": "linux-release-aarch64",
  78. "displayName": "Linux aarch64 (Release)",
  79. "description": "obs-studio for Linux (aarch64) - Release Configuration",
  80. "inherits": "linux-aarch64",
  81. "cacheVariables": {
  82. "ENABLE_RELEASE_BUILD": true
  83. }
  84. },
  85. {
  86. "name": "linux-x86_64",
  87. "displayName": "Linux x86_64",
  88. "description": "obs-studio for Linux (x86_64)",
  89. "condition": {
  90. "type": "equals",
  91. "lhs": "${hostSystemName}",
  92. "rhs": "Linux"
  93. },
  94. "binaryDir": "${sourceDir}/build_x86_64",
  95. "generator": "Ninja",
  96. "warnings": {"dev": true, "deprecated": true},
  97. "cacheVariables": {
  98. "ENABLE_WAYLAND": true,
  99. "ENABLE_VLC": true,
  100. "QT_VERSION": "6",
  101. "CMAKE_BUILD_TYPE": "Debug",
  102. "OBS_CMAKE_VERSION": "2.0.0",
  103. "CMAKE_PREFIX_PATH": {
  104. "type": "PATH",
  105. "value": ""
  106. },
  107. "CEF_ROOT_DIR": {
  108. "type": "PATH",
  109. "value": ""
  110. }
  111. }
  112. },
  113. {
  114. "name": "linux-ci-x86_64",
  115. "inherits": ["linux-x86_64"],
  116. "hidden": true,
  117. "cacheVariables": {
  118. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  119. }
  120. },
  121. {
  122. "name": "linux-release-x86_64",
  123. "displayName": "Linux x86_64 (Release)",
  124. "description": "obs-studio for Linux (x86_64) - Release Configuration",
  125. "inherits": "linux-x86_64",
  126. "cacheVariables": {
  127. "ENABLE_RELEASE_BUILD": true,
  128. "ENABLE_BROWSER": true
  129. }
  130. },
  131. {
  132. "name": "windows-x64",
  133. "displayName": "Windows x64",
  134. "description": "obs-studio for Windows (x64)",
  135. "condition": {
  136. "type": "equals",
  137. "lhs": "${hostSystemName}",
  138. "rhs": "Windows"
  139. },
  140. "architecture": "x64",
  141. "binaryDir": "${sourceDir}/build_x64",
  142. "generator": "Visual Studio 17 2022",
  143. "warnings": {"dev": true, "deprecated": true},
  144. "cacheVariables": {
  145. "QT_VERSION": "6",
  146. "CMAKE_BUILD_TYPE": "Debug",
  147. "OBS_WINDOWS_LEGACY_DIRS": true,
  148. "CMAKE_SYSTEM_VERSION": "10.0.18363.657",
  149. "OBS_CMAKE_VERSION": "2.0.0",
  150. "CMAKE_PREFIX_PATH": {
  151. "type": "PATH",
  152. "value": ""
  153. },
  154. "CEF_ROOT_DIR": {
  155. "type": "PATH",
  156. "value": ""
  157. },
  158. "VLC_PATH": {
  159. "type": "PATH",
  160. "value": ""
  161. }
  162. }
  163. },
  164. {
  165. "name": "windows-ci-x64",
  166. "inherits": "windows-x64",
  167. "hidden": true,
  168. "cacheVariables": {
  169. "CMAKE_BUILD_TYPE": "RelWithDebInfo"
  170. }
  171. },
  172. {
  173. "name": "windows-release-x64",
  174. "displayName": "Windowx x64 (Release)",
  175. "description": "obs-studio for Windows (x64) - Release Configuration",
  176. "inherits": "windows-x64",
  177. "cacheVariables": {
  178. "ENABLE_RELEASE_BUILD": true,
  179. "ENABLE_BROWSER": true,
  180. "ENABLE_VLC": true,
  181. "VIRTUALCAM_GUID": { "type": "STRING", "value": "A3FCE0F5-3493-419F-958A-ABA1250EC20B"}
  182. }
  183. }
  184. ],
  185. "buildPresets": [
  186. {
  187. "name": "linux-aarch64",
  188. "configurePreset": "linux-aarch64",
  189. "displayName": "Linux aarch64",
  190. "description": "Linux build for aarch64 (aka arm64)",
  191. "configuration": "RelWithDebInfo"
  192. },
  193. {
  194. "name": "linux-x86_64",
  195. "configurePreset": "linux-x86_64",
  196. "displayName": "Linux x86_64",
  197. "description": "Linux build for x86_64 (aka amd64)",
  198. "configuration": "RelWithDebInfo"
  199. },
  200. {
  201. "name": "windows-x64",
  202. "configurePreset": "windows-x64",
  203. "displayName": "Windows 64-bit",
  204. "description": "Windows build for 64-bit (aka x64)",
  205. "configuration": "RelWithDebInfo"
  206. }
  207. ]
  208. }