Skip to content
This repository was archived by the owner on Mar 18, 2024. It is now read-only.

Commit 4041f4f

Browse files
committed
add vscode build and run targets
1 parent e715c04 commit 4041f4f

File tree

3 files changed

+109
-6
lines changed

3 files changed

+109
-6
lines changed

.gitignore

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
#ignorar resultados de compilacion
1+
#ignore build compilation
22
builddir/
33
build/
44
out/
5-
#ignorar vscode
6-
.vscode/
7-
#ignorar visual studio
5+
#ignore vscode
6+
.vscode/*
7+
## but add launch and tasks
8+
!.vscode/launch.json
9+
!.vscode/tasks.json
10+
#ignore visual studio files
811
.vs/
912
CMakeSettings.json
10-
#ignorar archivos de clangd
13+
#ignore clangd files
1114
.clangd/
1215
.cache/
13-
#ignorar comandos de compilacion (para clangd entre otros)
16+
#ignore compile_commands.json
1417
compile_commands.json

.vscode/launch.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
// Use IntelliSense para saber los atributos posibles.
3+
// Mantenga el puntero para ver las descripciones de los existentes atributos.
4+
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Launch C++ Project",
9+
"type": "lldb",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/builddir/cpp/myApp",
12+
"args": [],
13+
"cwd": "${workspaceFolder}",
14+
"environment": [
15+
{
16+
"name": "Path",
17+
"value": "${env:Path};${workspaceFolder}/builddir/sdk/appcenter"
18+
}
19+
],
20+
"console": "externalTerminal",
21+
"preLaunchTask": "build C++ Project",
22+
"windows": {
23+
"type": "cppvsdbg",
24+
"request": "launch",
25+
"program": "${workspaceFolder}/builddir/cpp/myApp.exe",
26+
}
27+
},
28+
//{
29+
// "name": "Launch C++ Project(Windows)",
30+
// "type": "cppvsdbg",
31+
// "request": "launch",
32+
// "program": "${workspaceFolder}/builddir/cpp/myApp.exe",
33+
// "args": [],
34+
// "stopAtEntry": false,
35+
// "cwd": "${workspaceFolder}",
36+
// "environment": [
37+
// {
38+
// "name": "Path",
39+
// "value": "${env:Path};${workspaceFolder}/builddir/sdk/appcenter"
40+
// }
41+
// ],
42+
// "console": "externalTerminal",
43+
// "preLaunchTask": "build C++ project"
44+
//},
45+
{
46+
"name": "Launch C# Project",
47+
"type": "coreclr",
48+
"request": "launch",
49+
"preLaunchTask": "build C# project",
50+
"program": "${workspaceFolder}/csharp/bin/Debug/net6.0-windows/csharp.dll",
51+
"args": [],
52+
"cwd": "${workspaceFolder}/csharp",
53+
"console": "internalConsole",
54+
"stopAtEntry": false
55+
}
56+
]
57+
}

.vscode/tasks.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "copy compile_commands.json",
8+
"type": "shell",
9+
"command": "cp builddir/compile_commands.json ${workspaceFolder}",
10+
"problemMatcher": []
11+
},
12+
{
13+
"label": "build C++ Project",
14+
"type": "shell",
15+
"command": "meson compile",
16+
"group": "build",
17+
"options": {
18+
"cwd": "${workspaceRoot}/builddir"
19+
}
20+
},
21+
{
22+
"label": "build C# project",
23+
"command": "dotnet",
24+
"type": "shell",
25+
"args": [
26+
"build",
27+
// Ask dotnet build to generate full paths for file names.
28+
"/property:GenerateFullPaths=true",
29+
// Do not generate summary otherwise it leads to duplicate errors in Problems panel
30+
"/consoleloggerparameters:NoSummary"
31+
],
32+
// set workign directory
33+
"options": {
34+
"cwd": "${workspaceRoot}/csharp"
35+
},
36+
"group": "build",
37+
"presentation": {
38+
"reveal": "silent"
39+
},
40+
"problemMatcher": "$msCompile"
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)