Commit fdb19f56 authored by Martin Cífka's avatar Martin Cífka
Browse files

vscode config

parent 43c9ad80
Loading
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+1 −0
Original line number Diff line number Diff line
/miphoto-x86
+21 −0
Original line number Diff line number Diff line
{
    "configurations": [
        {
            "name": "Linux",
            "includePath": [
                "${workspaceFolder}/sdk/src/**",
                "/usr/include/linux/**",
                "/usr/include/c++/10/tr1/**"
            ],
            "defines": [],
            "compilerPath": "/usr/bin/gcc",
            "cStandard": "gnu17",
            "cppStandard": "gnu++17",
            "intelliSenseMode": "linux-gcc-x64",
            "compilerArgs": [
                "-DUWS_NO_ZLIB -pthread -lstdc++fs"
            ]
        }
    ],
    "version": 4
}
 No newline at end of file

.vscode/gdb

0 → 100755
+1 −0
Original line number Diff line number Diff line
pkexec /usr/bin/gdb "$@"

.vscode/launch.json

0 → 100644
+29 −0
Original line number Diff line number Diff line
{
    // 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": "g++ - Build and debug active file",
            "type": "cppdbg",
            "request": "launch",
            "program": "${workspaceFolder}/miphoto-x86",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}/sdk/build/miphoto",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                }
            ],
            "preLaunchTask": "x86 build",
            "miDebuggerPath": "${workspaceFolder}/.vscode/gdb"
        }
    ]
}
 No newline at end of file

.vscode/tasks.json

0 → 100644
+49 −0
Original line number Diff line number Diff line
{
    "tasks": [
        {
            "label": "arm build",
            "command": "sudo",
            "args": [
                "sdk/run.sh",
                "-br",
            ],
            /*"group": {
                "kind": "build",
                "isDefault": true
            },*/
        },

        {
            "type": "cppbuild",
            "label": "x86 build",
            "command": "g++",
            "args": [
                "src/**.cpp",
                "-std=c++17",
                "-Wno-psabi",
                "-static-libstdc++",
                "-DUWS_NO_ZLIB",
                "-Isrc/lib/ArduinoJson",
                "-Isrc/lib/uSockets",
                "-Isrc/lib/uWebSockets",
                "-Lsrc/lib",
                "-pthread",
                "-lstdc++fs",
                "-l:uSockets_x86_64.a",
                "-o",
                "${workspaceFolder}/miphoto-x86"
            ],
            "options": {
                "cwd": "${workspaceFolder}/sdk"
            },
            "problemMatcher": [
                "$gcc"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
        }
    ],
    "version": "2.0.0"
}
Loading