From 5d845cbecc5046945dfe124bdf44ae93a93893af Mon Sep 17 00:00:00 2001 From: Quinn Date: Sun, 12 Jan 2025 19:02:18 +0100 Subject: [PATCH] update vscode tasks --- .vscode/launch.json | 32 +++++++++++--------------------- .vscode/tasks.json | 14 +++++++------- 2 files changed, 18 insertions(+), 28 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 0258d4f..797639f 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -2,30 +2,20 @@ "version": "2.0.0", "configurations": [ { - "name": "(gdb) C Launch", - "type": "cppdbg", + "name": "(lldb) C Launch", + "type": "lldb", "request": "launch", - "program": "${workspaceFolder}/build/linux-86_64/${workspaceFolderBasename}", + "program": "", + "linux": { + "program": "${workspaceFolder}/bin/linux-x86_64/sdl_template", + "preLaunchTask": "build linux-x86_64" + }, + "windows": { + "program": "${workspaceFolder}/bin/win-x86_64/sdl_template", + "preLaunchTask": "build win-x86_64" + }, "args": [], - "stopAtEntry": false, "cwd": "${workspaceFolder}", - "environment": [], - "externalConsole": false, - "miDebuggerPath": "/usr/bin/gdb", - "MIMode": "gdb", - "setupCommands": [ - { - "description": "Enable pretty-printing for gdb", - "text": "-enable-pretty-printing", - "ignoreFailures": true - }, - { - "description": "Set Disassembly Flavor to Intel", - "text": "-gdb-set disassembly-flavor intel", - "ignoreFailures": true - } - ], - "preLaunchTask": "build linux86_64" } ] } diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 01d44c5..9795335 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -2,10 +2,10 @@ "tasks": [ { "type": "shell", - "label": "build linux86_64", - "command": "./build.sh", + "label": "build linux-x86_64", + "command": "make", "args": [ - "linux86_64" + "linux-x86_64" ], "options": { "cwd": "${workspaceFolder}" @@ -21,10 +21,10 @@ }, { "type": "shell", - "label": "build win86_64", - "command": "./build.sh", + "label": "build win-x86_64", + "command": "make", "args": [ - "win86_64" + "win-x86_64" ], "options": { "cwd": "${workspaceFolder}" @@ -41,7 +41,7 @@ { "type": "shell", "label": "build web", - "command": "./build.sh", + "command": "make", "args": [ "web" ],