Merge pull request #35 from gcopoix/fix/vscode_workspace_v9
fixed VS Code workspace file after v9 upate
This commit is contained in:
commit
d1f7c041c8
@ -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.
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ git clone --recursive https://github.com/lvgl/lv_port_pc_vscode
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Install graphics driver
|
### Install graphics driver
|
||||||
|
|
||||||
Please make sure **SDL** is installed in the system:
|
Please make sure **SDL** is installed in the system:
|
||||||
|
|
||||||
#### Install SDL
|
#### Install SDL
|
||||||
@ -51,4 +51,4 @@ git checkout release/6.0
|
|||||||
./configure --disable-all --disable-autodetect --disable-podpages --disable-asm --enable-avcodec --enable-avformat --enable-decoders --enable-encoders --enable-demuxers --enable-parsers --enable-protocol='file' --enable-swscale --enable-zlib
|
./configure --disable-all --disable-autodetect --disable-podpages --disable-asm --enable-avcodec --enable-avformat --enable-decoders --enable-encoders --enable-demuxers --enable-parsers --enable-protocol='file' --enable-swscale --enable-zlib
|
||||||
make
|
make
|
||||||
sudo make install
|
sudo make install
|
||||||
```
|
```
|
||||||
|
|||||||
@ -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": [
|
||||||
]
|
]
|
||||||
@ -22,13 +23,7 @@
|
|||||||
"files.trimTrailingWhitespace": true,
|
"files.trimTrailingWhitespace": true,
|
||||||
"files.insertFinalNewline": true,
|
"files.insertFinalNewline": true,
|
||||||
"files.trimFinalNewlines": true,
|
"files.trimFinalNewlines": true,
|
||||||
"cmake.configureOnOpen": false,
|
"cmake.configureOnOpen": true,
|
||||||
"files.associations": {
|
|
||||||
"lv_demos.h": "c",
|
|
||||||
"lvgl.h": "c",
|
|
||||||
"lv_drv_conf.h": "c",
|
|
||||||
"stdlib.h": "c"
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
// tasks.json section
|
// tasks.json section
|
||||||
"tasks": {
|
"tasks": {
|
||||||
@ -36,7 +31,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 +62,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": "${workspaceFolder}/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