Last active
July 21, 2023 15:39
-
-
Save pakLebah/dab98067e9a388a3a8d2f5c0b44a7d3f to your computer and use it in GitHub Desktop.
My VS Code tasks for Free Pascal programs on Mac.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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": "lldb", | |
"request": "launch", | |
"name": "LLDB Debugger", | |
"program": "${workspaceFolder}/${fileBasenameNoExtension}", | |
"args": [], | |
"cwd": "${workspaceFolder}", | |
"terminal": "integrated", | |
"preLaunchTask": "fpc: Build Debug", | |
"postDebugTask": "fpc: Clean Files" | |
} | |
] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"omnipascal.defaultDevelopmentEnvironment": "FreePascal", | |
"omnipascal.delphiInstallationPath": "/usr/local/bin/fpc", | |
"omnipascal.freePascalSourcePath": "/home/bee/fpc-src/", | |
//"[objectpascal]": {}, | |
"editor.fontFamily": "FiraCode-Light", | |
"editor.fontSize": 12, | |
"editor.tabSize": 2, | |
"editor.rulers": [120], | |
"editor.wordWrapColumn": 120, | |
"editor.fontLigatures": true, | |
"editor.renderLineHighlight": "all", | |
"terminal.integrated.fontSize": 12, | |
"terminal.integrated.cursorBlinking": true, | |
"terminal.integrated.cursorStyle": "line", | |
"telemetry.enableTelemetry": false, | |
"telemetry.enableCrashReporter": false, | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ // shortcut: cmd+shift+B (run build task) | |
"label" : "fpc: Build Debug", | |
"type" : "shell", | |
"group": { | |
"kind": "build", | |
"isDefault": true | |
}, | |
"command": "fpc", | |
"args": [ | |
"${file}", // source code file | |
"-Px86_64", // target platform 64-bit | |
"-Mobjfpc", // object pascal mode | |
"-S2cahi", // pascal syntax setting | |
"-Croti", // generated code setting | |
"-O1", // code optimization setting | |
"-glpsw3", // debug info setting | |
"-godwarfcpp", // dwarf mode setting | |
"-v" // verbose message | |
], | |
"problemMatcher": [] | |
}, | |
{ // shortcut: none | |
"label" : "fpc: Build Release", | |
"type" : "shell", | |
"group" : "build", | |
"command": "fpc", | |
"args": [ | |
"${file}", // source code file | |
"-Px86_64", // target platform 64-bit | |
"-Mobjfpc", // object pascal mode | |
"-S2cahi", // pascal syntax setting | |
"-Croti", // generated code setting | |
"-O3", // code optimization setting | |
"-XXs", // executable setting | |
"-v" // verbose message | |
], | |
"problemMatcher": [] | |
}, | |
{ // shortcut: none | |
"label": "fpc: Syntax Check", | |
"type": "shell", | |
"group": "build", | |
"command": "fpc", | |
"args": [ | |
"${file}", // source code file | |
"-Px86_64", // target platform 64-bit | |
"-Mobjfpc", // object pascal mode | |
"-S2cahi", // pascal syntax setting | |
"-s", // syntax check mode | |
"-v" // verbose message | |
], | |
"problemMatcher": [] | |
}, | |
{ // shortcut: cmd+shift+R (run test task) | |
"label": "fpc: Execute Binary", | |
"type": "shell", | |
"group": { | |
"kind": "test", | |
"isDefault": true | |
}, | |
"command": "./${fileBasenameNoExtension}", | |
"args": [], | |
"problemMatcher": [] | |
}, | |
{ // shortcut: none | |
"label": "fpc: Clean Files", | |
"type": "shell", | |
"command": "rm", | |
"args": [ | |
"${fileBasenameNoExtension}", // executable file | |
"${fileDirname}/*.a", // generated linker file | |
"${fileDirname}/*.o", // generated object file | |
"${fileDirname}/*.s", // generated assembler file | |
"${fileDirname}/*.ppu", // generated unit file | |
"${fileDirname}/*.dwarf", // generated dwarf debug file | |
"link.res", // generated resource file | |
"ppas.sh", // generated build script file | |
"ppaslink.sh" // generated build script file | |
], | |
"problemMatcher": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment