Refactor project structure by moving core files to corelogic and updating build configurations

This commit is contained in:
2024-11-22 16:41:06 +11:00
parent 2ae140f17e
commit 4ccd8daa69
37 changed files with 845 additions and 708 deletions
+36
View File
@@ -0,0 +1,36 @@
{
// 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": "C++ Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/harikoff",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "build",
"miDebuggerPath": "/usr/bin/gdb",
"logging": {
"trace": true,
"traceResponse": true,
"engineLogging": true,
"programOutput": true,
"exceptions": true
}
}
]
}
+69
View File
@@ -0,0 +1,69 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "Create Build Directory",
"type": "shell",
"command": "mkdir -p b",
"problemMatcher": [],
"detail": "Creates the build directory."
},
{
"label": "Configure",
"type": "shell",
"command": "${workspaceFolder}/configure",
"options": {
"cwd": "${workspaceFolder}/b"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"dependsOn": ["Create Build Directory"],
"detail": "Runs the configure script to prepare the build environment."
},
{
"label": "build",
"type": "shell",
"command": "make",
"options": {
"cwd": "${workspaceFolder}/b"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"dependsOn": "Configure",
"detail": "Builds the project using make."
},
{
"label": "clean",
"type": "shell",
"command": "make clean",
"options": {
"cwd": "${workspaceFolder}/b"
},
"group": {
"kind": "none"
},
"problemMatcher": [],
"detail": "Cleans the build artifacts."
},
{
"label": "test",
"type": "shell",
"command": "make test",
"options": {
"cwd": "${workspaceFolder}/b"
},
"group": {
"kind": "test",
"isDefault": true
},
"problemMatcher": ["$gcc"],
"detail": "Runs the tests."
}
]
}