{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "Configure openQ4 (Meson Debug)",
      "type": "shell",
      "command": "powershell",
      "args": [
        "-NoProfile",
        "-ExecutionPolicy",
        "Bypass",
        "-File",
        "${workspaceFolder}\\.vscode\\meson-task.ps1",
        "setup"
      ],
      "problemMatcher": []
    },
    {
      "label": "Compile openQ4 (Meson Debug)",
      "type": "shell",
      "command": "powershell",
      "args": [
        "-NoProfile",
        "-ExecutionPolicy",
        "Bypass",
        "-File",
        "${workspaceFolder}\\.vscode\\meson-task.ps1",
        "compile"
      ],
      "problemMatcher": [
        "$msCompile"
      ]
    },
    {
      "label": "Stage openQ4 Install Tree (Meson Debug)",
      "type": "shell",
      "command": "powershell",
      "args": [
        "-NoProfile",
        "-ExecutionPolicy",
        "Bypass",
        "-File",
        "${workspaceFolder}\\.vscode\\meson-task.ps1",
        "install"
      ],
      "problemMatcher": []
    },
    {
      "label": "Build openQ4 (Meson Debug)",
      "type": "shell",
      "command": "powershell",
      "args": [
        "-NoProfile",
        "-ExecutionPolicy",
        "Bypass",
        "-File",
        "${workspaceFolder}\\.vscode\\meson-task.ps1",
        "fastbuild"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      },
      "problemMatcher": [
        "$msCompile"
      ]
    },
    {
      "label": "Full Build and Stage openQ4 (Meson Debug)",
      "dependsOrder": "sequence",
      "dependsOn": [
        "Configure openQ4 (Meson Debug)",
        "Compile openQ4 (Meson Debug)",
        "Stage openQ4 Install Tree (Meson Debug)"
      ],
      "problemMatcher": []
    },
    {
      "label": "Bake Light Grids (All MP)",
      "type": "shell",
      "command": "${workspaceFolder}\\.install\\openQ4-client_x64.exe",
      "args": [
        "+set",
        "logFile",
        "2",
        "+set",
        "logFileName",
        "logs/openq4_lightgrids.log",
        "+set",
        "developer",
        "1",
        "+set",
        "s_noSound",
        "1",
        "+set",
        "r_hiddenWindow",
        "1",
        "+set",
        "r_fullscreen",
        "0",
        "+set",
        "fs_basepath",
        "C:\\Program Files (x86)\\Steam\\steamapps\\common\\Quake 4",
        "+set",
        "fs_savepath",
        "${workspaceFolder}\\.home",
        "+set",
        "fs_devpath",
        "${workspaceFolder}\\.install",
        "+set",
        "fs_game",
        "baseoq4",
        "+set",
        "si_gameType",
        "dm",
        "+set",
        "net_serverDedicated",
        "0",
        "+set",
        "sv_cheats",
        "1",
        "+set",
        "net_allowCheats",
        "1",
        "+bakeLightGrids",
        "all-mp",
        "-quit"
      ],
      "dependsOrder": "sequence",
      "dependsOn": [
        "Full Build and Stage openQ4 (Meson Debug)"
      ],
      "options": {
        "cwd": "${workspaceFolder}\\.install"
      },
      "problemMatcher": []
    }
  ]
}
