Skip to content

Commit

Permalink
Merge pull request #10 from fedebenelli/dev
Browse files Browse the repository at this point in the history
update
  • Loading branch information
fedebenelli authored Dec 27, 2023
2 parents 9cd4ff9 + 50066a4 commit a421c51
Show file tree
Hide file tree
Showing 10 changed files with 463 additions and 310 deletions.
60 changes: 60 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
// 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) Launch",
"type": "cppdbg",
"request": "launch",
// Executable name here:
"program": "${workspaceFolder}/build/vscode/bin/fenvelopes",
// Optional arguments here:
"args": ["--infile", "infiles/case2.nml"],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "fpm: install"
},
{
"name": "(gdb) Launch Test",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/vscode/${relativeFileDirname}/${fileBasenameNoExtension}",
"args": [],
"stopAtEntry": true,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
],
"preLaunchTask": "fpm: test Single File"
}
]
}
64 changes: 64 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "fpm: install",
"type": "shell",
"command": "fpm",
"args": [
"install",
"--profile",
"debug",
"--prefix",
"${workspaceRoot}/build/vscode"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "fpm: test Single File",
"type": "shell",
"command": "fpm",
"args": [
"test",
"--target",
"${fileBasenameNoExtension}",
"--profile",
"debug",
"--runner",
"cp",
"--",
"${workspaceFolder}/build/vscode/test/"
],
"group": {
"kind": "test",
"isDefault": true
},
"dependsOn": ["Copy Directory Structure"],
"dependsOrder": "sequence"
},
{
"label": "Copy Directory Structure",
"type": "shell",
"options": { "cwd": "${workspaceFolder}/test" },
"linux": {
"command": "find",
"args": [
".",
"-type",
"d",
"-exec",
"mkdir",
"-p",
"--",
"${workspaceRoot}/build/vscode/test/{}",
"\\;"
]
}
}
]
}
Loading

0 comments on commit a421c51

Please sign in to comment.