wolfssl
wolfssl copied to clipboard
Introduce Espressif common cmake
Description
Introduces a new wolfSSL Espressif CMake Library location: IDE/Espressif/ESP-IDF/cmake.
This directory contains common functions used in various examples and components.
Instead of duplicating and maintaining functions in various examples and components, this common library can be used.
Although it can be used as-is, the intent is to include it in the published wolfSSL Managed Component and include it from there when possible.
Inspiration came from my most recent publish of the Staging Component for wolfMQTT, in particular the examples. Note there are more examples for the wolfssl Managed Component and examples for the wolfssh Managed Component - all of which need to check for duplicate components.
The initial file contains just one commonly needed function to check for duplicate component directories:
CHECK_DUPLICATE_LIBRARIES
Searches for duplicate directories containing duplicate component libraries.
Parameters:
- RESULT_VAR (output variable)
- KEYWORD (e.g. "wolfssl", "wolfmqtt", etc)
Fixes zd# n/a
Testing
Tested only when directly implemented in other CMakeFiles.txt. This include capability has otherwise NOT yet been implemented in any shared manner, pending review and acceptance of this PR.
Checklist
- [ ] added tests
- [ ] updated/added doxygen
- [ ] updated appropriate READMEs
- [ ] Updated manual and documentation
Jenkins retest this please.
To retry unrelated "java.io.StreamCorruptedException: invalid stream header: 636F7272"
I was not planning to use it as-is in the reference directory. My intention was to copy it during Managed Component publishing.
Converting to draft while I give it some more thought.