mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-21 13:57:56 +00:00
24 lines
382 B
Groovy
24 lines
382 B
Groovy
task cleanup() {
|
|
delete 'build'
|
|
}
|
|
|
|
task prep(type: Exec) {
|
|
workingDir './'
|
|
commandLine 'mkdir', 'build'
|
|
}
|
|
|
|
task cmake(type: Exec) {
|
|
workingDir './build'
|
|
commandLine 'cmake', '../'
|
|
}
|
|
|
|
task make(type: Exec) {
|
|
workingDir './build'
|
|
commandLine 'make'
|
|
}
|
|
|
|
task fullBuild(type: GradleBuild) {
|
|
tasks = ['cleanup', 'prep', 'cmake', 'make']
|
|
}
|
|
|
|
build.dependsOn tasks.fullBuild |