Add meson file for vscode

This commit is contained in:
daleclack 2021-07-05 18:56:41 +08:00
parent b83ceeeec4
commit ddf1b9fcb0
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{
// 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) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/builddir/gtk91",
"args": [],
"stopAtEntry": false,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"preLaunchTask": "Meson: Build target",
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}

View File

@ -0,0 +1,13 @@
{
"tasks": [
{
"type": "meson",
"target": "gtk91",
"mode": "build",
"group": "build",
"problemMatcher": [],
"label": "Meson: Build target"
}
],
"version": "2.0.0"
}