How would I include files with no extension in cppHeaders Zip task. The suggested approach to include files not enforced by gradle API works for files with extension but not without extension. So, to include inl and hpp the following code works.
You partly got it right @Shahji. The pattern **/* is right, unfortunately, due to how the cppHeaders task is configured, adding include pattern at the root level of the task won’t change the outcome. Instead, you need to add something like this:
cppHeaders {
from("src/main/public") {
include "**/*"
}
}
I’m surprised your other pattern worked as they should have to work the same way.
So here is the full solution that worked for me:
tasks.withType(Zip).configureEach{
cppHeaders{
from(“inc”){
include"**/*.cc"
}
}
}
Is this the preferred way? This is due to templated headers normally including the implementation, in my case .cc with the header file, this seems like the standard way of doing things with c++.