{
  "version": 3,

  "configurePresets": [
    {
      "name": "windows",
      "generator": "Ninja Multi-Config",
      "binaryDir": "${sourceDir}/out/build/windows",
      "cacheVariables": {
        "CMAKE_C_COMPILER": "clang-cl",
        "CMAKE_CXX_COMPILER": "clang-cl",
        "USE_CCACHE": "ON",
        "JAS_VST3_REAPER_INTEGRATION": "true"
      },
      "condition": {
        "type": "equals",
        "lhs": "${hostSystemName}",
        "rhs": "Windows"
      }
    },
    {
      "name": "macos",
      "generator": "Xcode",
      "binaryDir": "${sourceDir}/out/build/macos",
      "cacheVariables": {
        "CMAKE_OSX_ARCHITECTURES": "x86_64;arm64",
        "CMAKE_OSX_DEPLOYMENT_TARGET": "10.13",
        "JAS_ENABLE_AVX2": "OFF",
        "USE_CCACHE": "ON"
      },
      "condition": {
        "type": "equals",
        "lhs": "${hostSystemName}",
        "rhs": "Darwin"
      }
    },
    {
      "name": "linux",
      "generator": "Ninja Multi-Config",
      "binaryDir": "${sourceDir}/out/build/linux",
      "cacheVariables": {
        "USE_CCACHE": "ON"
      },
      "condition": {
        "type": "equals",
        "lhs": "${hostSystemName}",
        "rhs": "Linux"
      }
    }
  ],

  "buildPresets": [
    { "name": "debug-windows", "configurePreset": "windows", "configuration": "Debug", "targets": ["JustASample_VST3"] },
    { "name": "release-windows", "configurePreset": "windows", "configuration": "Release", "targets": ["JustASample_VST3"] },

    { "name": "debug-linux",   "configurePreset": "linux", "configuration": "Debug", "targets": ["JustASample_VST3"] },
    { "name": "release-linux", "configurePreset": "linux", "configuration": "Release", "targets": ["JustASample_VST3"] },

    { "name": "debug-macos",   "configurePreset": "macos", "configuration": "Debug", "targets": ["JustASample_VST3", "JustASample_AU"] },
    { "name": "release-macos", "configurePreset": "macos", "configuration": "Release", "targets": ["JustASample_VST3", "JustASample_AU"] }
  ]
}
