diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..a204a31 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,28 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/inspect", + "args": ["../Downloads/img3.jpg"], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..931aad5 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "files.associations": { + "*.idl": "cpp" + }, + "C_Cpp.errorSquiggles": "Enabled" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..dc790be --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,52 @@ +{ + "version": "2.0.0", + "command": "make", + "type": "shell", + "presentation": { + "reveal": "always" + }, + // Use the standard less compilation problem matcher. + "problemMatcher": { + "owner": "cpp", + "fileLocation": ["relative", "${workspaceRoot}"], + "pattern": { + "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + }, + + "tasks": [ + { + "label": "Debug build", + "group": { + "kind": "build", + "isDefault": true + }, + + "options": { + "env": { + "CFLAGS": "-g -Wall -fPIC", + } + }, + "args": ["all"], + }, + { + "label": "Release build", + + "options": { + "env": { + "CFLAGS": "-O3 -Wall -fPIC", + } + }, + "args": ["all"] + }, + { + "label": "Clean", + "args": ["clean"] + }, + ] +} \ No newline at end of file