aboutsummaryrefslogtreecommitdiff
path: root/.vscode
diff options
context:
space:
mode:
Diffstat (limited to '.vscode')
-rw-r--r--.vscode/launch.json28
-rw-r--r--.vscode/settings.json5
-rw-r--r--.vscode/tasks.json38
3 files changed, 70 insertions, 1 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..160d242
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,28 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Debug with Ninja",
+ "type": "cppdbg",
+ "request": "launch",
+ "program": "${workspaceFolder}/mwe/ecs-homemade/build/ecs-homemade.exe",
+ "args": [],
+ "stopAtEntry": true,
+ "cwd": "${workspaceFolder}",
+ "environment": [],
+ "externalConsole": false,
+ "MIMode": "gdb",
+ "preLaunchTask": "build",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for gdb",
+ "text": "-enable-pretty-printing",
+ "ignoreFailures": true
+ }
+ ],
+ "logging": {
+ "engineLogging": true
+ }
+ }
+ ]
+}
diff --git a/.vscode/settings.json b/.vscode/settings.json
index d265510..af4ae4e 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -1,3 +1,6 @@
{
- "cmake.sourceDirectory": "${workspaceFolder}/src"
+ "cmake.sourceDirectory": "${workspaceFolder}/src",
+ "files.associations": {
+ "*.tcc": "cpp"
+ }
}
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
new file mode 100644
index 0000000..19afa6f
--- /dev/null
+++ b/.vscode/tasks.json
@@ -0,0 +1,38 @@
+{
+ "version": "2.0.0",
+ "tasks": [
+ {
+ "label": "configure",
+ "type": "shell",
+ "command": "cmake",
+ "args": [
+ "-G",
+ "Ninja",
+ "-B",
+ "${workspaceFolder}/mwe/ecs-homemade/build", // Create build folder here
+ "${workspaceFolder}/mwe/ecs-homemade" // Path to your source directory
+ ],
+ "group": {
+ "kind": "build",
+ "isDefault": false
+ },
+ "problemMatcher": []
+ },
+ {
+ "label": "build",
+ "type": "shell",
+ "command": "cmake",
+ "args": [
+ "--build",
+ "${workspaceFolder}/mwe/ecs-homemade/build" // Build directory
+ ],
+ "dependsOn": "configure", // Ensure the configure task runs first
+ "group": {
+ "kind": "build",
+ "isDefault": true
+ },
+ "problemMatcher": ["$gcc"],
+ "detail": "Generated task for building the project."
+ }
+ ]
+}