maint: add vscode build tasks
This commit is contained in:
parent
a4a056ae5b
commit
7a3e3bd061
63
.vscode/tasks.json
vendored
Normal file
63
.vscode/tasks.json
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
{
|
||||
"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\\iw7-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"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user