How to create and build a standalone ESP-IDF static library?
Posted: Mon May 21, 2018 5:12 pm
I'm learning ESP-IDF platform and now want to create a library in order to be able to structure my code properly in the future.
I've done some research and found out that a component needs to be under a `components/<component-name>` folder. The documentation doesn't talk about or I missed how to create a standalone component and how to compile it to a static library, into a `.a` file which later can be linked to different projects.
- What is the minimum configuration for an ESP-IDF static library that can be built into a `.a` file?
- How to compile a component into a standalone static library?
I've done some research and found out that a component needs to be under a `components/<component-name>` folder. The documentation doesn't talk about or I missed how to create a standalone component and how to compile it to a static library, into a `.a` file which later can be linked to different projects.
- What is the minimum configuration for an ESP-IDF static library that can be built into a `.a` file?
- How to compile a component into a standalone static library?