mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-23 14:52:31 +00:00
19 lines
335 B
Groovy
19 lines
335 B
Groovy
task cleanup(type: Delete) {
|
|
delete fileTree(dir: 'build', exclude: 'lib/')
|
|
}
|
|
|
|
task cmake(type: Exec) {
|
|
workingDir './build'
|
|
commandLine 'cmake', '../'
|
|
}
|
|
|
|
task make(type: Exec) {
|
|
workingDir './build'
|
|
commandLine 'make'
|
|
}
|
|
|
|
task fullBuild(type: GradleBuild) {
|
|
tasks = ['cleanup', 'cmake', 'make']
|
|
}
|
|
|
|
build.dependsOn tasks.fullBuild |