From 55fa1e5e76a3de02edfb3a0e257b0fe889020b0d Mon Sep 17 00:00:00 2001 From: Thad House Date: Thu, 9 Nov 2017 18:43:21 -0800 Subject: [PATCH] Adds header task (#101) --- build.gradle | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 + } + } + } } }