fixed VS Code workspace file after v9 upate
- fixed the make command (use cmake --build instead of make to be independent from cmake generator) - fixed launched executable path - added recommendation for cmake extension
This commit is contained in:
parent
0a1a1a867c
commit
a82f4eabaa
@ -5,7 +5,7 @@ The [LVGL](https://github.com/lvgl/lvgl) is written mainly for microcontrollers
|
|||||||
## Requirements
|
## Requirements
|
||||||
This project is configured for [VSCode](https://code.visualstudio.com) and only tested on Linux, although this may work on OSx or WSL. It requires a working version of GCC, GDB and make in your path.
|
This project is configured for [VSCode](https://code.visualstudio.com) and only tested on Linux, although this may work on OSx or WSL. It requires a working version of GCC, GDB and make in your path.
|
||||||
|
|
||||||
To allow debugging inside VSCode you will also require a GDB [extension](https://marketplace.visualstudio.com/items?itemName=webfreak.debug) or other suitable debugger. All the requirements have been pre-configured in the [.workspace](simulator.code-workspace) file (simply open the project by doubleclick on this file).
|
To allow debugging inside VSCode you will also require a GDB [extension](https://marketplace.visualstudio.com/items?itemName=webfreak.debug) or other suitable debugger. All the requirements, build and debug settings have been pre-configured in the [.workspace](simulator.code-workspace) file (simply open the project by doubleclick on this file).
|
||||||
|
|
||||||
The project can use **SDL** but it can be easily relaced by any other built-in LVGL dirvers.
|
The project can use **SDL** but it can be easily relaced by any other built-in LVGL dirvers.
|
||||||
|
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
"recommendations": [
|
"recommendations": [
|
||||||
"ms-vscode.cpptools", // common C/C++ support
|
"ms-vscode.cpptools", // common C/C++ support
|
||||||
"ms-vscode.cpptools-themes", // general C/C++ theme
|
"ms-vscode.cpptools-themes", // general C/C++ theme
|
||||||
|
"ms-vscode.cmake-tools" // cmake support
|
||||||
],
|
],
|
||||||
"unwantedRecommendations": [
|
"unwantedRecommendations": [
|
||||||
]
|
]
|
||||||
@ -36,7 +37,10 @@
|
|||||||
"tasks": [
|
"tasks": [
|
||||||
{
|
{
|
||||||
"label": "Build",
|
"label": "Build",
|
||||||
"command": "make",
|
"command": "cmake",
|
||||||
|
"args": [
|
||||||
|
"--build", "${command:cmake.buildDirectory}"
|
||||||
|
],
|
||||||
"group": {
|
"group": {
|
||||||
"kind": "build",
|
"kind": "build",
|
||||||
"isDefault": true
|
"isDefault": true
|
||||||
@ -64,9 +68,9 @@
|
|||||||
"name": "Debug LVGL demo with gdb",
|
"name": "Debug LVGL demo with gdb",
|
||||||
"type": "cppdbg",
|
"type": "cppdbg",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"program": "${workspaceFolder}/build/bin/demo",
|
"program": "bin/main",
|
||||||
"args": [],
|
"args": [],
|
||||||
"cwd": "${fileDirname}",
|
"cwd": "${workspaceFolder}",
|
||||||
"preLaunchTask": "Build",
|
"preLaunchTask": "Build",
|
||||||
"stopAtEntry": false,
|
"stopAtEntry": false,
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user