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