Adds get header task (#46)

This commit is contained in:
Thad House
2017-11-09 18:55:27 -08:00
committed by Peter Johnson
parent f03b31f433
commit cf4afb6feb

View File

@@ -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
}
}
}
}
}