Add vscode config file for meson
This commit is contained in:
parent
c3a8b16813
commit
0a96e1404b
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
//For linux amd64 and linux on arm64,some include path may different
|
||||
//Commet and uncomment these lines to compile on a specificed archtiecture
|
||||
//Arm64 linux libs
|
||||
/*
|
||||
"/usr/lib/aarch64-linux-gnu/dbus-1.0/include/**",
|
||||
"/usr/lib/aarch64-linux-gnu/glib-2.0/include",
|
||||
*/
|
||||
//amd64 linux libs(For ubuntu)
|
||||
/*
|
||||
"/usr/lib/x86_64-linux-gnu/dbus-1.0/include",
|
||||
"/usr/lib/x86_64-linux-gnu/glib-2.0/include",
|
||||
*/
|
||||
//For debian and ubuntu,kali
|
||||
/*
|
||||
"/usr/include/gtk-3.0/gtk/**",
|
||||
"/usr/include/uuid/**",
|
||||
*/
|
||||
//For manjaro(Arch linux)
|
||||
"/usr/lib/dbus-1.0/include/**",
|
||||
"/usr/lib/glib-2.0/include/**",
|
||||
"/usr/include/lzo/**",
|
||||
"/usr/include/cloudproviders/**",
|
||||
"${workspaceFolder}/**",
|
||||
"/usr/include/gtk-3.0/**",
|
||||
"/usr/include/at-spi2-atk/2.0/**",
|
||||
"/usr/include/at-spi-2.0/**",
|
||||
"/usr/include/dbus-1.0/**",
|
||||
"/usr/include/gio-unix-2.0/**",
|
||||
"/usr/include/cairo/**",
|
||||
"/usr/include/pango-1.0/**",
|
||||
"/usr/include/fribidi/**",
|
||||
"/usr/include/harfbuzz/**",
|
||||
"/usr/include/atk-1.0/**",
|
||||
"/usr/include/pixman-1/**",
|
||||
"/usr/include/freetype2/**",
|
||||
"/usr/include/libpng16/**",
|
||||
"/usr/include/gdk-pixbuf-2.0/**",
|
||||
"/usr/include/libmount/**",
|
||||
"/usr/include/blkid/**",
|
||||
"/usr/include/glib-2.0/**"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "/usr/bin/gcc",
|
||||
"cStandard": "gnu17",
|
||||
"cppStandard": "gnu++14",
|
||||
"intelliSenseMode": "gcc-x64",
|
||||
"compilerArgs": [
|
||||
"`pkg-config --cflags --libs gtk+-3.0`"
|
||||
],
|
||||
"configurationProvider": "ms-vscode.cmake-tools"
|
||||
},
|
||||
{
|
||||
"name": "win32",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"${workspaceFolder}/src/**",
|
||||
//I assume the msys2 installed in D:/msys64
|
||||
"D:/msys64/mingw64/include/**",
|
||||
"D:/msys64/mingw64/include/glib-2.0/**",
|
||||
"D:/msys64/mingw64/lib/glib-2.0/include/**",
|
||||
"D:/msys64/mingw64/include/gtk-3.0/**",
|
||||
"D:/msys64/mingw64/include/pango-1.0/**",
|
||||
"D:/msys64/mingw64/include/harfbuzz/**",
|
||||
"D:/msys64/mingw64/include/freetype2/**",
|
||||
"D:/msys64/mingw64/include/libpng16/**",
|
||||
"D:/msys64/mingw64/include/fribidi/**",
|
||||
"D:/msys64/mingw64/include/cairo/**",
|
||||
"D:/msys64/mingw64/include/lzo/**",
|
||||
"D:/msys64/mingw64/include/pixman-1/**",
|
||||
"D:/msys64/mingw64/include/gdk-pixbuf-2.0",
|
||||
"D:/msys64/mingw64/include/atk-1.0"
|
||||
],
|
||||
"defines": [],
|
||||
"compilerPath": "D:/msys64/MinGW64/bin/gcc.exe",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "c++17",
|
||||
"intelliSenseMode": "windows-gcc-x64",
|
||||
"compileCommands": "${workspaceFolder}/builddir/compile_commands.json"
|
||||
},
|
||||
{
|
||||
"name": "Mac",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**",
|
||||
"/usr/local/Cellar/libffi/3.3_3/include/**",
|
||||
"/usr/local/Cellar/gtk+3/3.24.29/include/gtk-3.0/**",
|
||||
"/usr/local/Cellar/glib/2.68.2/include/gio-unix-2.0/**",
|
||||
"/usr/local/Cellar/cairo/1.16.0_5/include/cairo/**",
|
||||
"/usr/local/Cellar/libepoxy/1.5.7/include/**",
|
||||
"/usr/local/Cellar/pango/1.48.4/include/pango-1.0",
|
||||
"/usr/local/Cellar/harfbuzz/2.8.1/include/harfbuzz",
|
||||
"/usr/local/Cellar/pango/1.48.4/include/pango-1.0/**",
|
||||
"/usr/local/Cellar/fribidi/1.0.10/include/fribidi/**",
|
||||
"/usr/local/Cellar/harfbuzz/2.8.1/include/harfbuzz/**",
|
||||
"/usr/local/Cellar/graphite2/1.3.14/include/**",
|
||||
"/usr/local/Cellar/atk/2.36.0/include/atk-1.0/**",
|
||||
"/usr/local/Cellar/cairo/1.16.0_5/include/cairo/**",
|
||||
"/usr/local/Cellar/pixman/0.40.0/include/pixman-1/**",
|
||||
"/usr/local/Cellar/fontconfig/2.13.1/include/**",
|
||||
"/usr/local/opt/freetype/include/freetype2/**",
|
||||
"/usr/local/Cellar/libpng/1.6.37/include/libpng16/**",
|
||||
"/usr/local/Cellar/libxcb/1.14_1/include/**",
|
||||
"/usr/local/Cellar/libxrender/0.9.10/include/**",
|
||||
"/usr/local/Cellar/libxext/1.3.4/include/**",
|
||||
"/usr/local/Cellar/libx11/1.7.0/include/**",
|
||||
"/usr/local/Cellar/libxcb/1.14_1/include/**",
|
||||
"/usr/local/Cellar/libxau/1.0.9/include/**",
|
||||
"/usr/local/Cellar/libxdmcp/1.1.3/include/**",
|
||||
"/usr/local/Cellar/gdk-pixbuf/2.42.6/include/gdk-pixbuf-2.0/**",
|
||||
"/usr/local/Cellar/libpng/1.6.37/include/libpng16/**",
|
||||
"/usr/local/Cellar/libtiff/4.3.0/include/**",
|
||||
"/usr/local/Cellar/glib/2.68.2/include/**",
|
||||
"/usr/local/Cellar/glib/2.68.2/include/glib-2.0/**",
|
||||
"/usr/local/Cellar/glib/2.68.2/lib/glib-2.0/include/**",
|
||||
"/usr/local/opt/gettext/include/**",
|
||||
"/usr/local/Cellar/pcre/8.44/include/**",
|
||||
"/usr/local/Cellar/xorgproto/2021.4/include/**"
|
||||
],
|
||||
"defines": [],
|
||||
"macFrameworkPath": [],
|
||||
"compilerPath": "/usr/local/bin/gcc-11",
|
||||
"cStandard": "gnu17",
|
||||
"cppStandard": "gnu++17",
|
||||
"intelliSenseMode": "macos-gcc-x64"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
// 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/gtk109",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"preLaunchTask": "Meson: Build target",
|
||||
"MIMode": "gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "为 gdb 启用整齐打印",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "(gdb) 启动(win32)",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/builddir_win32/gtk109",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"preLaunchTask": "Meson: Build target",
|
||||
"MIMode": "gdb",
|
||||
"setupCommands": [
|
||||
{
|
||||
"description": "为 gdb 启用整齐打印",
|
||||
"text": "-enable-pretty-printing",
|
||||
"ignoreFailures": true
|
||||
}
|
||||
],
|
||||
"miDebuggerPath": "D:/msys64/mingw64/bin/gdb.exe"
|
||||
},
|
||||
{
|
||||
"name": "(lldb) 启动",
|
||||
"type": "cppdbg",
|
||||
"request": "launch",
|
||||
"program": "${workspaceFolder}/builddir/gtk109",
|
||||
"args": [],
|
||||
"stopAtEntry": false,
|
||||
"cwd": "${fileDirname}",
|
||||
"environment": [],
|
||||
"externalConsole": false,
|
||||
"preLaunchTask": "Meson: Build target",
|
||||
"MIMode": "lldb",
|
||||
"setupCommands": []
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"C_Cpp.errorSquiggles": "Disabled",
|
||||
"cmake.configureOnOpen": false,
|
||||
"git.ignoreLimitWarning": true
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"tasks": [
|
||||
{
|
||||
"type": "meson",
|
||||
//"target": "gtk109",
|
||||
"mode": "build",
|
||||
"group": "build",
|
||||
"problemMatcher": [],
|
||||
"label": "Meson: Build target"
|
||||
}
|
||||
],
|
||||
"version": "2.0.0"
|
||||
}
|
Loading…
Reference in New Issue