Add a "deps" attribute to cc_import #5456
Labels
P2
We'll consider working on this in future. (Assignee optional)
team-Rules-CPP
Issues for C++ rules
type: feature request
Description of the problem / feature request:
This is a feature request to add a
deps
attribute tocc_import
.Feature requests: what underlying problem are you trying to solve with this feature?
Some prebuilt libraries have public dependencies on other libraries, by using these libraries' public headers in their own public headers. There currently does not seem to be a way to express this with
cc_import
which is the preferred way to include prebuilts.Have you found anything relevant by searching the web?
There's a way to work around this by declaring a
cc_library
which both depends on thecc_import
and on its public dependencies, and direct clients to depend on thecc_library
.The text was updated successfully, but these errors were encountered: