Refactor project structure and remove unnecessary files
- Deleted generated CMake files and build artifacts from the cmake-build-debug directory. - Removed the Intellisense header - what was that??? - Cleaned up the melonDS.ini configuration (removed hard path)
This commit is contained in:
60
.vscode/launch.json
vendored
60
.vscode/launch.json
vendored
@@ -1,32 +1,32 @@
|
||||
{
|
||||
// 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": [
|
||||
// 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}/snakePlus.elf",
|
||||
"targetArchitecture": "arm",
|
||||
"preLaunchTask": "gdb-debug",
|
||||
"postDebugTask": "stop-emulation",
|
||||
"serverLaunchTimeout": 10000,
|
||||
"stopAtEntry": true,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": true,
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "${env:DEVKITPRO}/devkitARM/bin/arm-none-eabi-gdb",
|
||||
"miDebuggerServerAddress": "localhost:3333",
|
||||
"setupCommands": [
|
||||
{
|
||||
"name": "(gdb) Launch",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/${workspaceFolderBasename}.elf",
|
||||
"targetArchitecture": "arm",
|
||||
"preLaunchTask": "gdb-debug",
|
||||
"postDebugTask": "stop-emulation",
|
||||
"serverLaunchTimeout": 10000,
|
||||
"stopAtEntry": true,
|
||||
"cwd": "${workspaceFolder}",
|
||||
"environment": [],
|
||||
"externalConsole": true,
|
||||
"MIMode": "gdb",
|
||||
"miDebuggerPath": "/opt/devkitpro/devkitARM/bin/arm-none-eabi-gdb",
|
||||
"miDebuggerServerAddress": "localhost:20000",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "Enable pretty-printing",
|
||||
"text": "file ${workspaceFolder}/${workspaceFolderBasename}.elf -enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"description": "Enable pretty-printing",
|
||||
"text": "file ${workspaceFolder}/snakePlus.elf -enable-pretty-printing",
|
||||
"ignoreFailures": true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
6
.vscode/settings.json
vendored
6
.vscode/settings.json
vendored
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"files.associations": {
|
||||
"array": "cpp"
|
||||
}
|
||||
},
|
||||
"clangd.arguments": [
|
||||
"--query-driver=${env:DEVKITPRO}/devkitARM/bin/arm-none-eabi-*",
|
||||
"--compile-commands-dir=."
|
||||
]
|
||||
}
|
||||
245
.vscode/tasks.json
vendored
245
.vscode/tasks.json
vendored
@@ -1,130 +1,123 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "cmake configure",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake -E copy_if_different ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}/compile_commands.json",
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"label": "cmake build",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && cmake --build build",
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"label": "Run new build",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && pwd && cmake -S . -B build -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake -E copy_if_different ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}/compile_commands.json && cmake --build build --target run",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true,
|
||||
},
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "dedicated",
|
||||
"showReuseMessage": true,
|
||||
"clear": true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "Copy new build to SD",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && pwd && cmake -S . -B build -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake -E copy_if_different ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}/compile_commands.json && cmake --build build --target install_sd",
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "silent",
|
||||
"focus": false,
|
||||
"panel": "dedicated",
|
||||
"showReuseMessage": true,
|
||||
"clear": false,
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "cmake debug",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && cmake -S . -B build-debug -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake -E copy_if_different ${workspaceFolder}/build-debug/compile_commands.json ${workspaceFolder}/compile_commands.json && cmake --build build-debug",
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"label": "cmake release",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON && cmake -E copy_if_different ${workspaceFolder}/build/compile_commands.json ${workspaceFolder}/compile_commands.json && cmake --build build",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true,
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "cmake clean",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && if [ -d build ]; then cmake --build build --target clean; fi && if [ -d build-debug ]; then cmake --build build-debug --target clean; fi",
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"label": "run",
|
||||
"type": "shell",
|
||||
"isBackground": true,
|
||||
"command": "melonDS",
|
||||
"args": ["${workspaceFolder}/${workspaceFolderBasename}.nds"],
|
||||
"presentation": {
|
||||
"clear": true,
|
||||
"reveal": "always",
|
||||
},
|
||||
"problemMatcher": [],
|
||||
},
|
||||
{
|
||||
"label": "gdb-debug",
|
||||
"type": "shell",
|
||||
"dependsOn": ["cmake debug"],
|
||||
"isBackground": true,
|
||||
"command": "melonDS",
|
||||
"args": [
|
||||
"${workspaceFolder}/${workspaceFolderBasename}.nds"
|
||||
],
|
||||
"presentation": {
|
||||
"clear": true,
|
||||
"reveal": "always",
|
||||
},
|
||||
"problemMatcher": [
|
||||
{
|
||||
"label": "Run new build",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && pwd && make run",
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": ".",
|
||||
"file": 1,
|
||||
"location": 2,
|
||||
"message": 3,
|
||||
},
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "always",
|
||||
"focus": false,
|
||||
"panel": "dedicated",
|
||||
"showReuseMessage": true,
|
||||
"clear": true
|
||||
}
|
||||
],
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": ".",
|
||||
"endsPattern": ".",
|
||||
},
|
||||
},
|
||||
{
|
||||
"label": "Copy new build to SD",
|
||||
"type": "shell",
|
||||
"command": "cd ${workspaceFolder} && pwd && make install",
|
||||
"problemMatcher": [],
|
||||
"presentation": {
|
||||
"echo": true,
|
||||
"reveal": "silent",
|
||||
"focus": false,
|
||||
"panel": "dedicated",
|
||||
"showReuseMessage": true,
|
||||
"clear": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "make debug",
|
||||
"type": "process",
|
||||
"command": "make",
|
||||
"args": [
|
||||
"DEBUG=1"
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "make release",
|
||||
"type": "process",
|
||||
"command": "make",
|
||||
"args": [
|
||||
"DEBUG=0"
|
||||
],
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "clean",
|
||||
"type": "process",
|
||||
"command": "make",
|
||||
"args": [
|
||||
"clean"
|
||||
],
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "run",
|
||||
"type": "shell",
|
||||
"isBackground": true,
|
||||
"command": "desmume-cli",
|
||||
"args": [
|
||||
"${workspaceFolder}/${workspaceFolderBasename}.nds"
|
||||
],
|
||||
"presentation": {
|
||||
"clear": true,
|
||||
"reveal": "always"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "gdb-debug",
|
||||
"type": "shell",
|
||||
"dependsOn": [
|
||||
"make debug"
|
||||
],
|
||||
"isBackground": true,
|
||||
"command": "desmume-cli",
|
||||
"args": [
|
||||
"${workspaceFolder}/${workspaceFolderBasename}.nds",
|
||||
"--arm9gdb",
|
||||
"20000"
|
||||
],
|
||||
"presentation": {
|
||||
"clear": true,
|
||||
"reveal": "always"
|
||||
},
|
||||
"problemMatcher": [
|
||||
{
|
||||
"pattern": [
|
||||
{
|
||||
"regexp": ".",
|
||||
"file": 1,
|
||||
"location": 2,
|
||||
"message": 3
|
||||
}
|
||||
],
|
||||
"background": {
|
||||
"activeOnStart": true,
|
||||
"beginsPattern": ".",
|
||||
"endsPattern": ".",
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": "stop-emulation",
|
||||
"type": "shell",
|
||||
"command": "pkill",
|
||||
"args": [
|
||||
"--signal",
|
||||
"9",
|
||||
"desmume-cli"
|
||||
],
|
||||
"problemMatcher": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
},
|
||||
{
|
||||
"label": "stop-emulation",
|
||||
"type": "shell",
|
||||
"command": "pkill",
|
||||
"args": ["--signal", "9", "melonDS"],
|
||||
"problemMatcher": [],
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user