-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
790 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
// 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": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{ | ||
"files.associations": { | ||
"chrono": "cpp", | ||
"array": "cpp", | ||
"atomic": "cpp", | ||
"bit": "cpp", | ||
"*.tcc": "cpp", | ||
"cmath": "cpp", | ||
"compare": "cpp", | ||
"concepts": "cpp", | ||
"cstddef": "cpp", | ||
"cstdlib": "cpp", | ||
"cwchar": "cpp", | ||
"deque": "cpp", | ||
"string": "cpp", | ||
"unordered_map": "cpp", | ||
"vector": "cpp", | ||
"exception": "cpp", | ||
"functional": "cpp", | ||
"memory": "cpp", | ||
"memory_resource": "cpp", | ||
"string_view": "cpp", | ||
"type_traits": "cpp", | ||
"algorithm": "cpp", | ||
"numeric": "cpp", | ||
"random": "cpp", | ||
"iosfwd": "cpp", | ||
"limits": "cpp", | ||
"new": "cpp", | ||
"numbers": "cpp", | ||
"ostream": "cpp", | ||
"ratio": "cpp", | ||
"stdexcept": "cpp", | ||
"stop_token": "cpp", | ||
"streambuf": "cpp", | ||
"system_error": "cpp", | ||
"thread": "cpp", | ||
"tuple": "cpp", | ||
"typeinfo": "cpp", | ||
"utility": "cpp", | ||
"cctype": "cpp", | ||
"cerrno": "cpp", | ||
"cfloat": "cpp", | ||
"climits": "cpp", | ||
"clocale": "cpp", | ||
"cstdarg": "cpp", | ||
"cstdint": "cpp", | ||
"cstdio": "cpp", | ||
"cstring": "cpp", | ||
"ctime": "cpp", | ||
"cwctype": "cpp", | ||
"iterator": "cpp", | ||
"initializer_list": "cpp", | ||
"ios": "cpp", | ||
"queue": "cpp", | ||
"semaphore": "cpp", | ||
"cinttypes": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"tasks": [ | ||
{ | ||
"type": "cppbuild", | ||
"label": "C/C++: gcc build active file", | ||
"command": "/usr/bin/gcc", | ||
"args": [ | ||
"-fdiagnostics-color=always", | ||
"-g", | ||
"${file}", | ||
"-o", | ||
"${fileDirname}/${fileBasenameNoExtension}" | ||
], | ||
"options": { | ||
"cwd": "${fileDirname}" | ||
}, | ||
"problemMatcher": [ | ||
"$gcc" | ||
], | ||
"group": { | ||
"kind": "build", | ||
"isDefault": true | ||
}, | ||
"detail": "Task generated by Debugger." | ||
} | ||
], | ||
"version": "2.0.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
|
||
current_directory=$(pwd) | ||
last_keyword=$(basename "$current_directory") | ||
|
||
if [[ $last_keyword == "build" ]]; then | ||
# Execute commands for the specified directory | ||
echo "Executing commands for build" | ||
echo "removing build directory" | ||
cd .. | ||
rm -r build | ||
cd .. | ||
|
||
# Add your commands here | ||
elif [[ $last_keyword == "gbemu" ]]; then | ||
# Execute commands for another directory | ||
echo "Executing commands for gbemu" | ||
|
||
if [[ -d "$current_directory/build" ]]; then | ||
rm -r build | ||
echo "removing build directory" | ||
echo "making new build directory" | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . -j8 | ||
./gbemu | ||
else | ||
echo "making new build directory" | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . -j8 | ||
./gbemu | ||
fi | ||
|
||
# Add your commands here | ||
else | ||
# Default case if no match is found | ||
echo "No matching directory found." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.