example.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "version": 6,
  3. "cmakeMinimumRequired": {
  4. "major": 3,
  5. "minor": 23,
  6. "patch": 0
  7. },
  8. "include": [
  9. "otherThings.json",
  10. "moreThings.json"
  11. ],
  12. "configurePresets": [
  13. {
  14. "name": "default",
  15. "displayName": "Default Config",
  16. "description": "Default build using Ninja generator",
  17. "generator": "Ninja",
  18. "binaryDir": "${sourceDir}/build/default",
  19. "cacheVariables": {
  20. "FIRST_CACHE_VARIABLE": {
  21. "type": "BOOL",
  22. "value": "OFF"
  23. },
  24. "SECOND_CACHE_VARIABLE": "ON"
  25. },
  26. "environment": {
  27. "MY_ENVIRONMENT_VARIABLE": "Test",
  28. "PATH": "$env{HOME}/ninja/bin:$penv{PATH}"
  29. },
  30. "vendor": {
  31. "example.com/ExampleIDE/1.0": {
  32. "autoFormat": true
  33. }
  34. }
  35. },
  36. {
  37. "name": "ninja-multi",
  38. "inherits": "default",
  39. "displayName": "Ninja Multi-Config",
  40. "description": "Default build using Ninja Multi-Config generator",
  41. "generator": "Ninja Multi-Config"
  42. },
  43. {
  44. "name": "windows-only",
  45. "inherits": "default",
  46. "displayName": "Windows-only configuration",
  47. "description": "This build is only available on Windows",
  48. "condition": {
  49. "type": "equals",
  50. "lhs": "${hostSystemName}",
  51. "rhs": "Windows"
  52. }
  53. }
  54. ],
  55. "buildPresets": [
  56. {
  57. "name": "default",
  58. "configurePreset": "default"
  59. }
  60. ],
  61. "testPresets": [
  62. {
  63. "name": "default",
  64. "configurePreset": "default",
  65. "output": {"outputOnFailure": true},
  66. "execution": {"noTestsAction": "error", "stopOnFailure": true}
  67. }
  68. ],
  69. "packagePresets": [
  70. {
  71. "name": "default",
  72. "configurePreset": "default",
  73. "generators": [
  74. "TGZ"
  75. ]
  76. }
  77. ],
  78. "vendor": {
  79. "example.com/ExampleIDE/1.0": {
  80. "autoFormat": false
  81. }
  82. }
  83. }