From 56062bef8fc8c8ca49b33c4c73b645f083625f2c Mon Sep 17 00:00:00 2001 From: phevosccp Date: Tue, 30 Jun 2026 13:09:10 +0000 Subject: [PATCH 1/2] add vscode task for monolith build and install shortcut --- .vscode/tasks.json | 87 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index b62fd3f..fc7c804 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -55,6 +55,71 @@ }, "problemMatcher": [] }, + { + "label": "Configure Monolith", + "type": "shell", + "command": "cmake", + "args": [ + "--preset", + "x64-windows-${input:monolithFlavor}", + "-B", + "${workspaceFolder}/.cmake-build-monolith-${input:monolithFlavor}", + "-DINSTALL_TO_MONOLITH=ON" + ], + "hide": true, + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "problemMatcher": [] + }, + { + "label": "Build Monolith", + "type": "shell", + "command": "cmake", + "args": [ + "--build", + "${workspaceFolder}/.cmake-build-monolith-${input:monolithFlavor}", + "--config", + "${input:monolithFlavor}" + ], + "hide": true, + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "problemMatcher": "$msCompile" + }, + { + "label": "Install to Monolith", + "type": "shell", + "command": "cmake", + "args": [ + "--install", + "${workspaceFolder}/.cmake-build-monolith-${input:monolithFlavor}", + "--config", + "${input:monolithFlavor}", + "--prefix", + "${input:monolithBranchRoot}/vendor/github.com/ccpgames/carbon-audio/develop" + ], + "dependsOn": [ + "Configure Monolith", + "Build Monolith" + ], + "dependsOrder": "sequence", + "group": "build", + "presentation": { + "echo": true, + "reveal": "always", + "focus": true, + "panel": "shared" + }, + "problemMatcher": [] + }, { "label": "Clean Build Directory", "type": "shell", @@ -109,5 +174,27 @@ }, "problemMatcher": [] } + ], + "inputs": [ + { + "id": "monolithFlavor", + "type": "pickString", + "description": "Which build flavor to install to the monolith", + "options": [ + "internal", + "release", + "debug", + "trinitydev" + ], + "default": "internal" + }, + { + "id": "monolithBranchRoot", + "type": "pickString", + "description": "Perforce branch root to install CarbonAudio into", + "options": [ + "C:/Users/phevos/Perforce/phevos_remote_frontier" + ] + } ] } \ No newline at end of file From e8aefe1fc73b1675774f29c1623d8c00f4e3f4c9 Mon Sep 17 00:00:00 2001 From: phevosccp Date: Wed, 1 Jul 2026 11:27:55 +0000 Subject: [PATCH 2/2] add a task to configure p4v paths --- .vscode/tasks.json | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index fc7c804..d627531 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -104,7 +104,7 @@ "--config", "${input:monolithFlavor}", "--prefix", - "${input:monolithBranchRoot}/vendor/github.com/ccpgames/carbon-audio/develop" + "${config:carbonAudio.monolithBranchRoot}/vendor/github.com/ccpgames/carbon-audio/develop" ], "dependsOn": [ "Configure Monolith", @@ -120,6 +120,25 @@ }, "problemMatcher": [] }, + { + "label": "Set Perforce Branch", + "type": "shell", + "command": "powershell", + "args": [ + "-Command", + "$p = '${workspaceFolder}\\.vscode\\settings.json'; $root = '${input:perforceBranchRoot}'; if (Test-Path $p) { $c = Get-Content $p -Raw } else { $c = '' }; if ([string]::IsNullOrWhiteSpace($c)) { $j = [PSCustomObject]@{} } else { $j = $c | ConvertFrom-Json }; $j | Add-Member -NotePropertyName 'carbonAudio.monolithBranchRoot' -NotePropertyValue $root -Force; $j | ConvertTo-Json -Depth 10 | Set-Content -Path $p -Encoding UTF8; Write-Host \"Perforce branch root set to: $root\" -ForegroundColor Green" + ], + "presentation": { + "echo": true, + "reveal": "always", + "focus": false, + "panel": "shared" + }, + "problemMatcher": [], + "windows": { + "command": "powershell" + } + }, { "label": "Clean Build Directory", "type": "shell", @@ -189,12 +208,10 @@ "default": "internal" }, { - "id": "monolithBranchRoot", - "type": "pickString", + "id": "perforceBranchRoot", + "type": "promptString", "description": "Perforce branch root to install CarbonAudio into", - "options": [ - "C:/Users/phevos/Perforce/phevos_remote_frontier" - ] + "default": "${config:carbonAudio.monolithBranchRoot}" } ] } \ No newline at end of file