diff --git a/.vscode/launch.json b/.vscode/launch.json index c91f12e2..9e2deecb 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -3,14 +3,14 @@ "configurations": [ { - "name": "(gdb) Lancer", + "name": "(gdb) Launch", "type": "cppdbg", "request": "launch", - "program": "${workspaceRoot}/src/bin/calaos_server/calaos_server", + "program": "${workspaceRoot}/_build/src/bin/calaos_server/calaos_server", "args": [], "stopAtEntry": false, - "cwd": "${workspaceRoot}/src/bin/calaos_server", + "cwd": "${workspaceRoot}/_build/src/bin/calaos_server", "environment": [], "externalConsole": false, "MIMode": "gdb", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5b81764d..aa0b9b49 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -3,27 +3,47 @@ // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ + { + "label": "create_build_folder", + "type": "shell", + "command": "mkdir -p _build", + "group": "build", + }, { "label": "build", "type": "shell", "command": "make -j16", "problemMatcher": "$gcc", + "options": { + "cwd": "${workspaceFolder}/_build" + }, "group": { "kind": "build", "isDefault": true - } + }, + "dependsOn": [ + "create_build_folder", + ], }, { "label": "clean", "type": "shell", "command": "make clean", + "options": { + "cwd": "${workspaceFolder}/_build" + }, "group": "build", + "dependsOn": [ + "create_build_folder", + ], + }, { "label": "configure (Debug)", "type": "shell", - "command": "./configure", + "command": "../configure", "options": { + "cwd": "${workspaceFolder}/_build", "env": { "CFLAGS": "-g3 -ggdb -O0", "CXXFLAGS": "-g3 -ggdb -O0" @@ -37,7 +57,10 @@ { "label": "configure (Release)", "type": "shell", - "command": "./configure", + "command": "../configure", + "options": { + "cwd": "${workspaceFolder}/_build", + }, "dependsOn": [ "clean" ],