You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on conan-io/conan-center-index#26392 for the Doxygen's custom theme, I thought about how Conan could model it properly?
Currently I had implemented it as "unknown" package with source() and package() methods only, and this package requires to use the Conan deployers. It seems that we could generalize this kind of packages (resources/assets only) for something new package type ("assets"? "resources"?).
In this issue I request for comments and possible brainstorming about similar packages and want to discuss how we could properly model this kind of packages.
This topic has been also raised before. The main issue with it is that while the package "contents" would be well defined by a pontential new type package_type = "resources", for example, the usage and consumption scenarios of that new package type is not clear at all. It seems there is no reasonable default, as there are very different usage scenarios:
Those resources can be embedded by their consumers, then they don't need to be propagated further down the graph
The resources could be also runtime resources that are not embedded by the consumers but rather necessary at runtime.
While Conan knows to deduce good defaults for other package types, for example, it knows that it must propagate linkage requirements for static libraries depending on other static libraries, but it doesn't need to propagate linkage requirements if a shared library depends on a static library, the same doesn't seem as clear for this new package type.
I think this topic would be mostly a duplicate of #15379, so we can probably close this one as duplicate and continue there? It would be good to have your feedback in that other thread also for the other participants.
Thanks for the feedback, closing the ticket as duplicate then.
I thought also about custom layouts
Are you refererring to the layout() method of recipes? It doesn't sound like that, but instead talking about deployers. It might be better to avoid the "layout" terminology or clarify the intent. If we are talking about deployers, not sure about the suggestion, might need a separate ticket with more details. Deployers are mostly user code, so it is possible to write any deploy logic that you want, like putting different package artifacts in different folders.
What is your suggestion?
While working on conan-io/conan-center-index#26392 for the Doxygen's custom theme, I thought about how Conan could model it properly?
Currently I had implemented it as "unknown" package with
source()
andpackage()
methods only, and this package requires to use the Conan deployers. It seems that we could generalize this kind of packages (resources/assets only) for something new package type ("assets"? "resources"?).In this issue I request for comments and possible brainstorming about similar packages and want to discuss how we could properly model this kind of packages.
CC @memsharded.
Thanks for attention.
Have you read the CONTRIBUTING guide?
The text was updated successfully, but these errors were encountered: