chore: add vscode build tasks

This commit is contained in:
Rim 2025-02-20 06:39:52 -05:00
parent a3eb4d70f9
commit a4b6ca020a
2 changed files with 67 additions and 1 deletions

1
.gitignore vendored
View File

@ -58,7 +58,6 @@ build
# Visual Studio 2015 cache/options directory
.vs/
.vscode
# MSTest test Results
[Tt]est[Rr]esult*/

67
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,67 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "🔄 Generate Solution",
"type": "shell",
"command": "git submodule update --init --recursive && tools\\premake5 vs2022",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "🔨 Build Executable",
"type": "shell",
"command": "${input:msbuildPath}",
"args": [
"build\\s1-mod.sln",
"/p:Configuration=Release",
"/p:Platform=x64"
],
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
},
"dependsOn": "🔄 Generate Solution"
},
{
"label": "🔧 Compile Installer",
"type": "shell",
"command": "installer\\compile.bat",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "🚀 Full Build",
"type": "shell",
"dependsOn": [
"🔄 Generate Solution",
"🔨 Build Executable",
"🔧 Compile Installer"
],
"dependsOrder": "sequence",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
// "runOptions": {
// "runOn": "folderOpen"
// }
}
],
"inputs": [
{
"id": "msbuildPath",
"type": "promptString",
"description": "Enter the full path to msbuild.exe",
"default": "C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\MSBuild\\Current\\Bin\\msbuild.exe"
}
]
}