mirror of
https://github.com/nsacyber/HIRS.git
synced 2024-12-29 09:19:00 +00:00
16 lines
318 B
Groovy
16 lines
318 B
Groovy
task make(type: Exec) {
|
|
outputs.file 'tpm_module'
|
|
inputs.dir fileTree(dir: '.').include('main.cpp').include('*.hpp')
|
|
commandLine 'make'
|
|
}
|
|
|
|
task cleanUp() {
|
|
delete 'tpm_module', 'main.d', 'main.o'
|
|
}
|
|
|
|
task fullBuild(type: GradleBuild) {
|
|
tasks = ['cleanUp', 'make']
|
|
}
|
|
|
|
build.dependsOn tasks.fullBuild
|