Commit 7b0eb89f authored by Carsten Schlote's avatar Carsten Schlote

Add configs for VScode and code-d

parent c4a15d40
{
// 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": [
{
"type": "gdb",
"request": "launch",
"name": "Launch Demo Program 1 (gdb)",
"target": "./mediainfo-demo1",
"cwd": "${workspaceRoot}/examples/mediainfo-demo1/",
"preLaunchTask": "build-demo1",
"arguments": "/path/to/a/mediafile"
},
{
"name": "Launch Program 1 (lldb)",
"type": "lldb-mi",
"request": "launch",
"target": "./mediainfo-demo1",
"preLaunchTask": "build-demo1",
"cwd": "${workspaceRoot}/examples/mediainfo-demo1/",
"arguments": "/path/to/a/mediafile"
},
{
"type": "gdb",
"request": "launch",
"name": "Launch Demo Program 2 (gdb)",
"target": "./mediainfo-demo2",
"cwd": "${workspaceRoot}/examples/mediainfo-demo2/",
"preLaunchTask": "build-demo2",
"arguments": "/path/to/a/media/directory"
},
{
"name": "Launch Program 2 (lldb)",
"type": "lldb-mi",
"request": "launch",
"target": "./mediainfo-demo2",
"preLaunchTask": "build-demo2",
"cwd": "${workspaceRoot}/examples/mediainfo-demo2/",
"arguments": "/path/to/a/media/directory"
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
// Requires dub and ldc to be installed on host
"label": "build-host",
"type": "shell",
"command": "dub build --compiler=ldc2 -v",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
// Requires dub and ldc to be installed on host
"label": "build-demo1",
"type": "shell",
"command": "cd examples/mediainfo-demo1 && dub build --compiler=ldc2 -v",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
// Requires dub and ldc to be installed on host
"label": "build-demo2",
"type": "shell",
"command": "cd examples/mediainfo-demo2 && dub build --compiler=ldc2 -v",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [
"$gcc"
]
},
{
// Requires dub and ldc to be installed on host
"label": "test-host",
"type": "shell",
"command": "dub test --compiler=ldc2 -v",
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": [
"$gcc"
]
}
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment