Skip to content

Commit

Permalink
Add .vscode configs
Browse files Browse the repository at this point in the history
There configs should make life easier for other folks trying to build and debug
  • Loading branch information
tstirrat committed Jul 16, 2024
1 parent 7c8cd09 commit f1aa614
Show file tree
Hide file tree
Showing 4 changed files with 92 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.vscode/
.vscode/settings.json
gbdk/
Source/obj
Source/out
mgb.gb
mgb.gb
13 changes: 13 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"configurations": [
{
"name": "Mac",
"includePath": ["${workspaceFolder}/**"],
"defines": ["__TARGET_gb=1", "__PORT_sm83=1"],
"compilerPath": "",
"cStandard": "c11",
"intelliSenseMode": "${default}"
}
],
"version": 4
}
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "emulicious-debugger",
"request": "launch",
"name": "Debug in Emulicious",
"program": "${workspaceFolder}/Source/out/mGB.gb",
"port": 58870,
"stopOnEntry": false,
"preLaunchTask": "make-debug",
"additionalSrcFolders": "Source/obj"
}
]
}
62 changes: 62 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "make-debug",
"type": "shell",
"command": "make clean && make DEBUG=1",
"options": {
"cwd": "Source/"
},
"problemMatcher": []
},
{
"label": "make",
"type": "shell",
"command": "make clean && make",
"options": {
"cwd": "Source/"
},
"problemMatcher": []
},
{
"label": "make-release",
"type": "shell",
"command": "make clean && make RELEASE=1",
"options": {
"cwd": "Source/"
},
"problemMatcher": []
},
{
"label": "install",
"detail": "Installs the rom onto a cartridge using ems-flasher (bank 2)",
"type": "shell",
"command": "ems-flasher --write --verbose --bank 2 out/mGB.gb",
"options": {
"cwd": "Source/"
},
"dependsOn": "make-release",
"problemMatcher": []
},
{
"label": "romusage",
"type": "shell",
"command": "gbdk/bin/romusage",
"args": ["Source/out/mGB.noi", "-sRe", "-sRp", "-g"],
"dependsOn": "make-debug",
"problemMatcher": []
},
{
"label": "run-sameboy",
"type": "shell",
"command": "/Applications/SameBoy.app/Contents/MacOS/SameBoy",
"args": ["out/mGB.gb", "~/Downloads/lsdj9_3_3-arduinoboy/lsdj.gb"],
"options": {
"cwd": "Source/"
},
"dependsOn": "make-debug",
"problemMatcher": []
}
]
}

0 comments on commit f1aa614

Please sign in to comment.