Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CMake file to build under Windows #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

boraozgen
Copy link

Adds the possibility to use the VSCode simulator under Windows.

One must download SDL and set the CMake cache variable LVGL_SIMULATOR_SDL_DIR to the root of the respective architecture (e.g. <download-path>/SDL2-2.0.14/x86_64-w64-mingw32). Eventually this could be done by CMake automatically.

I only tested with MinGW, some adaptations might be needed to get this working on Linux. There we have the Makefile option, so this does not break anything.

The respective CMake PRs in lv_drivers and lv_examples must be merged before this.

Also adds the keyboard initialization to main. This was enabled in Visual Studio by default.

Related but bit out of scope: I believe the simulators should be merged into a single platform-independent repo to avoid duplication.

* Otherwise lvgl does not get recompiled if there is a change in lv_conf.h
O-Software-Team pushed a commit to O-Software-Team/lv_port_pc_vscode that referenced this pull request Oct 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant