New model: how to declare a dependency on another project's header files


(Martin d'Anjou) #1

In the documentation, I see the exportedHeaders.

I manually publish headers to an Ivy repository in a source distribution artifact. I am able to declare that artifact as a dependency in another project, download it, and unzip it to the build/ folder (of that other project).

But what is not clear to me how to declare, in the new model DSL, which source set needs which header file. Is there a syntax for this in the native software plugin?

To clarify, I think I am asking if there a concept of “header importing source set”, a source set that imports headers from a dependency before its own compilation?