diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..d209f02 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,17 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**" + ], + "defines": [], + "compilerPath": "/usr/bin/clang", + "cStandard": "c17", + "cppStandard": "c++14", + "intelliSenseMode": "linux-clang-x64", + "compileCommands": "${workspaceFolder}/compile_commands.json" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..3e76093 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,30 @@ +{ + // 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": "QEMU Debug Server", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build/jsix.elf", + "args": [], + "cwd": "${workspaceFolder}", + "logging": { + //"engineLogging": true, + "programOutput": true + }, + "stopAtConnect": true, + "stopAtEntry": false, + + "setupCommands": [], + + "MIMode": "gdb", + "miDebuggerServerAddress": "localhost:1234", + "debugServerPath": "${workspaceFolder}/qemu.sh", + "debugServerArgs": "--debug --no-build", + "serverLaunchTimeout": 5000, + } + ] +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..782953b --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,41 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Ninja", + "type": "shell", + "command": "source ${workspaceFolder}/venv/bin/activate.fish; ninja", + "detail": "Build the project", + "options": { + "cwd": "${workspaceFolder}/build" + }, + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + }, + { + "label": "Run QEMU", + "command": "./qemu.sh", + "args": [ "--no-build", "--kvm" ], + "dependsOn": ["Ninja"], + "options": { + "cwd": "${workspaceFolder}" + }, + }, + { + "label": "clean", + "command": "${workspaceFolder}/venv/bin/ninja", + "options": { + "cwd": "${workspaceFolder}/build" + }, + "args": [ + "-t", + "clean" + ] + } + ] +} \ No newline at end of file