mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
Adds header task (#101)
This commit is contained in:
committed by
Peter Johnson
parent
c101655419
commit
55fa1e5e76
26
build.gradle
26
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user