Page 1 of 1

Compile components sources files into one .a file (static lib)

Posted: Thu Jan 28, 2021 4:02 am
by aleksnc
Hi there,

I'm working on an ESP32 component that I'd like to share with others. I can't the source code as it must stay private.
I'd like to know if there is a way to compile my component into one ".a" file (static lib) ?

My component has several ".c" files and some dependencies to esp-idf components.

I have found this example "import_prebuilt" on the esp-idf github but it doesn't work for me
https://github.com/espressif/esp-idf/tr ... t_prebuilt

Thanks in advance for your help ;)