[dev] Add devcontainers and vscode config templates

This commit is contained in:
Christian Meffert
2024-10-03 07:56:32 +02:00
committed by Alain Nussbaumer
parent 9fbd07a75d
commit 2fe6969f72
13 changed files with 1088 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**",
"/usr/include/json-c"
],
"defines": [],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}

28
.dev/vscode/launch.json Normal file
View File

@@ -0,0 +1,28 @@
{
"configurations": [
{
"name": "OwnTone",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/src/owntone",
"args": ["-f", "-c", "/data/conf/owntone.conf", "-w", "${workspaceFolder}/htdocs", "-s", "${workspaceFolder}/sqlext/.libs/owntone-sqlext.so"],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
],
"version": "2.0.0"
}

12
.dev/vscode/settings.json Normal file
View File

@@ -0,0 +1,12 @@
{
"C_Cpp.default.forcedInclude": [
"${workspaceFolder}/config.h"
],
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[c]": {
"editor.detectIndentation": false,
"editor.tabSize": 8
}
}

106
.dev/vscode/tasks.json Normal file
View File

@@ -0,0 +1,106 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "[server] autoreconf",
"type": "shell",
"command": "autoreconf -i",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "[server] configure",
"type": "shell",
"command": "./configure",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "[server] make",
"type": "shell",
"command": "make",
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "[server] scan-build",
"type": "shell",
"command": "make clean && scan-build --status-bugs -disable-checker deadcode.DeadStores --exclude src/parsers make",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "[server] clean",
"type": "shell",
"command": "make clean",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "[web] install",
"type": "npm",
"script": "install",
"options": {
"cwd": "${workspaceFolder}/web-src"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "[web] build",
"type": "npm",
"script": "build",
"options": {
"cwd": "${workspaceFolder}/web-src"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "[web] serve",
"type": "npm",
"script": "serve",
"options": {
"cwd": "${workspaceFolder}/web-src"
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "[docs] serve",
"type": "shell",
"command": "mkdocs serve",
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "[docs] build",
"type": "shell",
"command": "mkdocs build",
"group": {
"kind": "build",
"isDefault": true
}
}
]
}