Created
March 20, 2020 21:27
-
-
Save Honeybunch/5f4e182929f68d9860846ec2d22f9f70 to your computer and use it in GitHub Desktop.
My Personal VSCode Tasks setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
/* | |
Configure Windows Ninja LLVM | |
*/ | |
{ | |
"label": "Configure Windows Ninja LLVM Debug", | |
"type": "shell", | |
"command": "cmake -G Ninja -B build_windows_ninja_llvm_debug -DCMAKE_BUILD_TYPE=DEBUG", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Configure Windows Ninja LLVM Profile", | |
"type": "shell", | |
"command": "cmake -G Ninja -B build_windows_ninja_llvm_profile -DCMAKE_BUILD_TYPE=RELWITHDEBINFO", | |
"problemMatcher": [] | |
}, | |
{ | |
"label": "Configure Windows Ninja LLVM Release", | |
"type": "shell", | |
"command": "cmake -G Ninja -B build_windows_ninja_llvm_release -DCMAKE_BUILD_TYPE=RELEASE", | |
"problemMatcher": [] | |
}, | |
/* | |
Configure Windows Ninja MSVC | |
*/ | |
{ | |
"label": "Configure Windows Ninja MSVC Debug", | |
"command": "cmd", | |
"type": "process", | |
"args": [ | |
"/C %vcvarsall% && cmake -G Ninja -B build_windows_ninja_msvc_debug -DCMAKE_BUILD_TYPE=DEBUG", | |
], | |
"problemMatcher": [], | |
"options": { | |
"env": { | |
"vcvarsall": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64", | |
} | |
} | |
}, | |
{ | |
"label": "Configure Windows Ninja MSVC Profile", | |
"command": "cmd", | |
"type": "process", | |
"args": [ | |
"/C %vcvarsall% && cmake -G Ninja -B build_windows_ninja_msvc_profile -DCMAKE_BUILD_TYPE=RELWITHDEBINFO", | |
], | |
"problemMatcher": [], | |
"options": { | |
"env": { | |
"vcvarsall": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64", | |
} | |
} | |
}, | |
{ | |
"label": "Configure Windows Ninja MSVC Release", | |
"command": "cmd", | |
"type": "process", | |
"args": [ | |
"/C %vcvarsall% && cmake -G Ninja -B build_windows_ninja_msvc_release -DCMAKE_BUILD_TYPE=RELEASE", | |
], | |
"problemMatcher": [], | |
"options": { | |
"env": { | |
"vcvarsall": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64", | |
} | |
} | |
}, | |
/* | |
Configure All | |
*/ | |
{ | |
"label": "Configure All", | |
"type": "shell", | |
"dependsOn": [ | |
"Configure Windows Ninja LLVM Debug", | |
"Configure Windows Ninja LLVM Profile", | |
"Configure Windows Ninja LLVM Release", | |
"Configure Windows Ninja MSVC Debug", | |
"Configure Windows Ninja MSVC Profile", | |
"Configure Windows Ninja MSVC Release", | |
], | |
"problemMatcher": [] | |
}, | |
/* | |
Build Windows Ninja LLVM | |
*/ | |
{ | |
"label": "Build Windows Ninja LLVM Debug", | |
"type": "shell", | |
"command": "cmake --build build_windows_ninja_llvm_debug --target install", | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/build_windows_ninja_llvm_debug" | |
], | |
"base": "$gcc" | |
} | |
], | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
} | |
}, | |
{ | |
"label": "Build Windows Ninja LLVM Profile", | |
"type": "shell", | |
"command": "cmake --build build_windows_ninja_llvm_profile --target install", | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/build_windows_ninja_llvm_profile" | |
], | |
"base": "$gcc" | |
} | |
], | |
"group": "build" | |
}, | |
{ | |
"label": "Build Windows Ninja LLVM Release", | |
"type": "shell", | |
"command": "cmake --build build_windows_ninja_llvm_release --target install", | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/build_windows_ninja_llvm_release" | |
], | |
"base": "$gcc" | |
} | |
], | |
"group": "build" | |
}, | |
/* | |
Build Windows Ninja MSVC | |
*/ | |
{ | |
"label": "Build Windows Ninja MSVC Debug", | |
"type": "process", | |
"command": "cmd", | |
"args": [ | |
"/C %vcvarsall% && cmake --build build_windows_ninja_msvc_debug --target install", | |
], | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/build_windows_ninja_msvc_debug" | |
], | |
"base": "$gcc" | |
} | |
], | |
"options": { | |
"env": { | |
"vcvarsall": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64", | |
} | |
}, | |
"group": "build" | |
}, | |
{ | |
"label": "Build Windows Ninja MSVC Profile", | |
"type": "process", | |
"command": "cmd", | |
"args": [ | |
"/C %vcvarsall% && cmake --build build_windows_ninja_msvc_profile --target install", | |
], | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/build_windows_ninja_msvc_profile" | |
], | |
"base": "$gcc" | |
} | |
], | |
"options": { | |
"env": { | |
"vcvarsall": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64", | |
} | |
}, | |
"group": "build" | |
}, | |
{ | |
"label": "Build Windows Ninja MSVC Release", | |
"type": "process", | |
"command": "cmd", | |
"args": [ | |
"/C %vcvarsall% && cmake --build build_windows_ninja_msvc_release --target install", | |
], | |
"problemMatcher": [ | |
{ | |
"fileLocation": [ | |
"relative", | |
"${workspaceRoot}/build_windows_ninja_msvc_release" | |
], | |
"base": "$gcc" | |
} | |
], | |
"options": { | |
"env": { | |
"vcvarsall": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat\" -arch=amd64", | |
} | |
}, | |
"group": "build" | |
}, | |
/* | |
Build All | |
*/ | |
{ | |
"label": "Build All", | |
"type": "shell", | |
"dependsOn": [ | |
"Build Windows Ninja LLVM Debug", | |
"Build Windows Ninja LLVM Profile", | |
"Build Windows Ninja LLVM Release", | |
"Build Windows Ninja MSVC Debug", | |
"Build Windows Ninja MSVC Profile", | |
"Build Windows Ninja MSVC Release", | |
], | |
"problemMatcher": [] | |
}, | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment