diff --git a/build.gradle b/build.gradle index 60969ca7d6..630cd35e81 100644 --- a/build.gradle +++ b/build.gradle @@ -145,6 +145,32 @@ model { } } } + getHeaders(Task) { + def list = [] + $.components.each { + if (it in NativeLibrarySpec && (it.name == 'wpiutil')) { + it.sources.each { + it.exportedHeaders.srcDirs.each { + list.add(it) + } + } + it.binaries.each { + it.libs.each { + it.includeRoots.each { + list.add(it) + } + } + } + } + } + list = list.unique(false) + doLast { + list.each { + print "WPIHEADER: " + println it + } + } + } } }