-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Add Arduino lib to arduino as IDF component #8115
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
Conversation
In general I would recommend avoiding the error-prone modifications of arduino-esp32/CMakeLists.txt. The main reason is that if a user has done local changes to the file, upgrading to a newer version of arduino-esp32 component becomes difficult. IDF build system recommends keeping each library as a separate component. With that in mind, my recommendation for adding additional Arduino libraries to an IDF project would be as follows:
|
e_param="" | ||
l_param="" | ||
n_param="" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO the variable names should be more descriptive to help with code maintenance.
Closed in favor of #8721 |
This Doc update is based on "for reference" issue #7839
This update provides info on how to add Arduino library when using arduino-esp32 as an ESP_IDF component.
There is also new script in
tools/add_lib.sh
which helps with that. The script also creates theCMakefileLists.txt
Usage of the script:
The script was tested with this (manually checked the results):