CMakePresets.json 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. {
  2. "version": 4,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 23,
  6. "patch": 0
  7. },
  8. "configurePresets": [
  9. {
  10. "name": "release-only",
  11. "displayName": "Release only configuration",
  12. "hidden": true,
  13. "cacheVariables": {
  14. "CMAKE_BUILD_TYPE": "Release"
  15. }
  16. }, {
  17. "name": "debug-only",
  18. "displayName": "Debug only configuration",
  19. "hidden": true,
  20. "cacheVariables": {
  21. "CMAKE_BUILD_TYPE": "Debug"
  22. }
  23. }, {
  24. "name": "win64-base",
  25. "displayName": "Windows 64-bit base configuration",
  26. "hidden": true,
  27. "architecture": "x64",
  28. "binaryDir": "${sourceDir}/build/win64",
  29. "condition": {
  30. "type": "equals",
  31. "lhs": "${hostSystemName}",
  32. "rhs": "Windows"
  33. }
  34. }, {
  35. "name": "win32-base",
  36. "displayName": "Windows 32-bit base configuration",
  37. "hidden": true,
  38. "architecture": "Win32",
  39. "binaryDir": "${sourceDir}/build/win32",
  40. "condition": {
  41. "type": "equals",
  42. "lhs": "${hostSystemName}",
  43. "rhs": "Windows"
  44. }
  45. }, {
  46. "name": "osx-base",
  47. "displayName": "Mac OS base configuration",
  48. "hidden": true,
  49. "binaryDir": "${sourceDir}/build/osx",
  50. "condition": {
  51. "type": "equals",
  52. "lhs": "${hostSystemName}",
  53. "rhs": "Darwin"
  54. }
  55. }, {
  56. "name": "osx-rel-base",
  57. "displayName": "Mac OS base release configuration",
  58. "inherits": [ "osx-base", "release-only" ],
  59. "hidden": true,
  60. "binaryDir": "${sourceDir}/build/osx-rel"
  61. }, {
  62. "name": "osx-dbg-base",
  63. "displayName": "Mac OS base debug configuration",
  64. "inherits": [ "osx-base", "debug-only" ],
  65. "hidden": true,
  66. "binaryDir": "${sourceDir}/build/osx-dbg"
  67. }, {
  68. "name": "linux-base",
  69. "displayName": "Linux base configuration",
  70. "hidden": true,
  71. "binaryDir": "${sourceDir}/build/linux",
  72. "condition": {
  73. "type": "equals",
  74. "lhs": "${hostSystemName}",
  75. "rhs": "Linux"
  76. }
  77. }, {
  78. "name": "linux-rel-base",
  79. "displayName": "Linux base release configuration",
  80. "inherits": [ "linux-base", "release-only" ],
  81. "hidden": true,
  82. "binaryDir": "${sourceDir}/build/linux-rel"
  83. }, {
  84. "name": "linux-dbg-base",
  85. "displayName": "Linux base debug configuration",
  86. "inherits": [ "linux-base", "debug-only" ],
  87. "hidden": true,
  88. "binaryDir": "${sourceDir}/build/linux-dbg"
  89. }, {
  90. "name": "core-only",
  91. "displayName": "Configuration with extensions disabled",
  92. "hidden": true,
  93. "cacheVariables": {
  94. "MSDFGEN_CORE_ONLY": "ON",
  95. "MSDFGEN_USE_VCPKG": "OFF",
  96. "MSDFGEN_USE_SKIA": "OFF"
  97. }
  98. }, {
  99. "name": "vcpkg",
  100. "displayName": "Configuration with vcpkg as dependency management system",
  101. "hidden": true,
  102. "cacheVariables": {
  103. "MSDFGEN_USE_VCPKG": "ON"
  104. }
  105. }, {
  106. "name": "no-vcpkg",
  107. "displayName": "Configuration with dependencies not managed by vcpkg",
  108. "hidden": true,
  109. "cacheVariables": {
  110. "MSDFGEN_USE_VCPKG": "OFF"
  111. }
  112. }, {
  113. "name": "openmp",
  114. "displayName": "Configuration with OpenMP enabled",
  115. "hidden": true,
  116. "cacheVariables": {
  117. "MSDFGEN_USE_OPENMP": "ON"
  118. }
  119. }, {
  120. "name": "skia",
  121. "displayName": "Configuration with Skia geometry preprocessing",
  122. "hidden": true,
  123. "cacheVariables": {
  124. "MSDFGEN_USE_SKIA": "ON"
  125. }
  126. }, {
  127. "name": "no-skia",
  128. "displayName": "Configuration without Skia geometry preprocessing",
  129. "hidden": true,
  130. "cacheVariables": {
  131. "MSDFGEN_USE_SKIA": "OFF"
  132. }
  133. }, {
  134. "name": "install",
  135. "displayName": "Configuration with installation targets",
  136. "hidden": true,
  137. "cacheVariables": {
  138. "MSDFGEN_INSTALL": "ON"
  139. }
  140. }, {
  141. "name": "static-runtime",
  142. "displayName": "Configuration that links against the static runtime",
  143. "hidden": true,
  144. "cacheVariables": {
  145. "MSDFGEN_DYNAMIC_RUNTIME": "OFF"
  146. }
  147. }, {
  148. "name": "dynamic-runtime",
  149. "displayName": "Configuration that links against the dynamic runtime",
  150. "hidden": true,
  151. "cacheVariables": {
  152. "MSDFGEN_DYNAMIC_RUNTIME": "ON"
  153. }
  154. }, {
  155. "name": "static-lib",
  156. "displayName": "Configuration that builds and links msdfgen statically",
  157. "hidden": true,
  158. "cacheVariables": {
  159. "BUILD_SHARED_LIBS": "OFF"
  160. }
  161. }, {
  162. "name": "dynamic-lib",
  163. "displayName": "Configuration that builds and links msdfgen dynamically",
  164. "hidden": true,
  165. "cacheVariables": {
  166. "BUILD_SHARED_LIBS": "ON"
  167. }
  168. }
  169. ]
  170. }