-
Notifications
You must be signed in to change notification settings - Fork 18
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
Managed Components not part of project in separate directory? (PACMAN-744) #43
Comments
Hello @gojimmypi At the same, what is stopping you from adding the dependency from the component registry to all the examples? |
Hi @kumekay - Thanks for your feedback!
hm, yes, I suspected as much.
Ah, a good question! What I neglected to explain in enough detail here (but explained more in the long thread of wolfSSL/wolfssl#5909), is that in the case of the I'm thinking in the end, the best place to add the managed component in this example is the esp32-homekit submodule, as that's where the Somewhat related to this topic is the desire / ability to not only use a managed component, but also be able to configure it. For example, today if the wolfSSL component is used as a managed component, I believe the |
Regarding user_settings.h: in IDF we generally follow the approach that users should not need to modify source or header files of libraries they didn't write. Where compile-time configuration is necessary, it is achieved using Kconfig. It is also possible to let the wolfssl component find user_settings.h in another location — for example, in the build directory. The user's project can then use CMake configure_file command to generate the user_settings.h file at build time. However, I would generally suggest creating a Kconfig file for configuration options. Here's an example how this is done with MbedTLS:
|
We were able to resolve the ESP32 HomeKit issues (it's really quite cool, and I created a little blog on the topic). Given the comment from @kumekay regarding the complexity of implementing I plan to follow @igrr 's suggestion and use the kconfig for wolfSSL Thank you. |
Related area
component directory
Is your feature request related to a problem?
This is similar to #13 and #40 but I would like to be able to manage components in a shared project directory.
Describe the solution you'd like
I'd like to be able to
idf.py add-dependency
or perhaps have newidf.py install-component
into a directory that is not part of a project, but is otherwise shared by possibly multiple projects or examples.I didn't see anything mentioned in the IDF Component Manager Documentation.
Note I was able to use
add-dependency
, but needed to create a hackymain
directory:Any guidance as to Best Practices would also be appreciated.
Describe alternatives you've considered
Install the component to each example.
Install the component to the
HomeKit
submodule. (see below)Additional context
This is specifically in reference to @AchimPieters using wolfSSL as a managed component in the esp32-homekit project.
In particular, note there's a shared solution
components
directory that's used by the examples.I have somewhat of a workaround as described in wolfSSL/wolfssl#5909 (comment). However it's not a very graceful solution in that I copied the managed component source into a new, non-managed component directory.
I have checked existing list of Feature requests and I have provided enough information.
The text was updated successfully, but these errors were encountered: