mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-21 17:21:13 +00:00
vscode: fix launch from macOS
Add a temporal fix for https://github.com/microsoft/vscode-cpptools/issues/8411 to support launching applications from macOS. Rather than using the meson-vscode.env, set the few variables required to launch GStreamer uninstalled. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5399>
This commit is contained in:
parent
0ab48250a9
commit
7b5967d699
1 changed files with 14 additions and 3 deletions
17
.vscode/launch.json
vendored
17
.vscode/launch.json
vendored
|
@ -12,15 +12,26 @@
|
|||
"windows": {
|
||||
"type": "cppvsdbg",
|
||||
"program": "gst-launch-1.0.exe",
|
||||
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
|
||||
},
|
||||
"osx": {
|
||||
// https://github.com/microsoft/vscode-cpptools/issues/8411
|
||||
"MIMode": "lldb",
|
||||
// lldb-mi doesn't support large environment variables: https://github.com/lldb-tools/lldb-mi/pull/87
|
||||
"environment": [
|
||||
{
|
||||
"name": "GST_PLUGIN_PATH",
|
||||
"value": "${workspaceFolder}/${config:mesonbuild.buildFolder}/subprojects",
|
||||
},
|
||||
{
|
||||
"name": "GST_PLUGIN_SCANNER",
|
||||
"value": "${workspaceFolder}/${config:mesonbuild.buildFolder}/subprojects/gstreamer/libs/gst/helpers/gst-plugin-scanner",
|
||||
},
|
||||
],
|
||||
},
|
||||
"linux": {
|
||||
"MIMode": "gdb"
|
||||
},
|
||||
"MIMode": "gdb",
|
||||
"envFile": "${workspaceFolder}/${config:mesonbuild.buildFolder}/meson-vscode.env",
|
||||
},
|
||||
"cwd": "${workspaceFolder}/${config:mesonbuild.buildFolder}/subprojects/gstreamer/tools/",
|
||||
"program": "${workspaceFolder}/${config:mesonbuild.buildFolder}/subprojects/gstreamer/tools/gst-launch-1.0",
|
||||
"args": [
|
||||
|
|
Loading…
Reference in a new issue