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

C++ API for MCU #2136

Closed
7 tasks done
ogoffart opened this issue Jan 26, 2023 · 0 comments
Closed
7 tasks done

C++ API for MCU #2136

ogoffart opened this issue Jan 26, 2023 · 0 comments
Assignees
Labels
a:language-c++ C++ API, codegen, CMake build system (mS,mO) a:platform-mcu Microcontrollers (mO,bS)
Milestone

Comments

@ogoffart
Copy link
Member

ogoffart commented Jan 26, 2023

With Slint 0.3, we released the platform API for Rust that allows to use the software renderer from a MCU.
But we postponed the work for C++.
This summarize what is left to do.
Some WIP prototype is in the olivier/wip/mcu_cpp branch

Milestone 1: C++ on MCU using a Slint platform written in Rust

  • create a main.cpp and CMakeLists.txt file in the printerdemo_mcu folder Created esp-idf component and examples using it.
  • make api/cpp no_std and ability to remove all dependencies we don't need
  • [ ] add a function to the mcu_board_support crate to initialize the MCU backend. Use it from api/cpp
  • add #ifdefs in slint.h for the unsupported stuff on MCU (iostream, thread, and the like)
  • Do the right incentation to get CMake generate a static lib
  • Serialize the bitmap fonts to C++ datastructure in generator/cpp.rs
  • Get cmake to cross compile for such devices

Milestone 2: Platform in C++

  • Complete and stabilize the experimental slint_platform.h and slint::experimental::platform namespace. Most of the API in there still relies on raw cbindgen enums for which we need to write a good C++ API
@ogoffart ogoffart added a:language-c++ C++ API, codegen, CMake build system (mS,mO) a:platform-mcu Microcontrollers (mO,bS) labels Jan 26, 2023
@ogoffart ogoffart self-assigned this Apr 4, 2023
ogoffart added a commit that referenced this issue Jul 5, 2023
And make it no_std otherwise

This is a first step towards getting C++ on MCU (#2136)
ogoffart added a commit that referenced this issue Jul 5, 2023
And make it no_std otherwise

This is a first step towards getting C++ on MCU (#2136)
ogoffart added a commit that referenced this issue Jul 5, 2023
And make it no_std otherwise

This is a first step towards getting C++ on MCU (#2136)
@ogoffart ogoffart added this to the 1.2 milestone Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:language-c++ C++ API, codegen, CMake build system (mS,mO) a:platform-mcu Microcontrollers (mO,bS)
Projects
None yet
Development

No branches or pull requests

2 participants