diff --git a/build.gradle b/build.gradle index 22d1f790cf..b28ab08f23 100644 --- a/build.gradle +++ b/build.gradle @@ -250,6 +250,32 @@ model { } } } + getHeaders(Task) { + def list = [] + $.components.each { + if (it in NativeLibrarySpec && (it.name == 'cscore')) { + 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 + } + } + } } }