{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Autoreconf",
            "type": "shell",
            "command": "autoreconf -if",
            "problemMatcher": []
        },
        {
            "label": "Configure",
            "type": "shell",
            "command": "mkdir ${workspaceFolder}/${env:ATS_VSCODE_BUILDDIR}; cd ${workspaceFolder}/${env:ATS_VSCODE_BUILDDIR}; ${workspaceFolder}/configure --prefix=${workspaceFolder}/target --enable-ccache --enable-experimental-plugins --enable-example-plugins --enable-test-tools --enable-debug --enable-werror ${env:ATS_VSCODE_CONFIGURE}",
            "dependsOrder": "sequence",
            "dependsOn": ["Autoreconf"],
            "problemMatcher": []
        },
        {
            "label": "Build",
            "type": "shell",
            "command": "make -j 16 -C ${workspaceFolder}/${env:ATS_VSCODE_BUILDDIR}",
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            }
        },
        {
            "label": "Install",
            "type": "shell",
            "command": "make -j 16 install -C ${workspaceFolder}/${env:ATS_VSCODE_BUILDDIR}",
            "problemMatcher": [
                "$gcc"
            ],
        },
        {
            "label": "Test",
            "type": "shell",
            "command": "make -j 8 test -C ${workspaceFolder}/${env:ATS_VSCODE_BUILDDIR}",
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "test",
                "isDefault": true
            }
        },
        {
            "label": "Full Build",
            "dependsOrder": "sequence",
            "dependsOn": ["Configure", "Build", "Install"],
            "problemMatcher": [
                "$gcc"
            ]
        },
        {
            "label": "Dump Enviroment Variables",
            "command": "env",
            "problemMatcher": []
        }
    ]
}
