2017-10-24 05:55:28 +00:00
|
|
|
task buildNative(type: Exec) {
|
2018-07-17 23:17:58 +00:00
|
|
|
inputs.dir("$projectDir/src/")
|
|
|
|
outputs.dir("$projectDir/../app/src/main/jniLibs/")
|
2021-09-07 17:20:44 +00:00
|
|
|
executable = 'python3'
|
2018-07-17 23:17:58 +00:00
|
|
|
args = ['-u', './build-syncthing.py']
|
2017-10-24 05:55:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2018-04-09 20:13:25 +00:00
|
|
|
* Use separate task instead of standard clean(), so these folders aren't deleted by `gradle clean`.
|
2017-10-24 05:55:28 +00:00
|
|
|
*/
|
|
|
|
task cleanNative(type: Delete) {
|
2018-07-17 23:17:58 +00:00
|
|
|
delete "$projectDir/../app/src/main/jniLibs/"
|
2017-10-24 05:55:28 +00:00
|
|
|
delete "gobuild"
|
|
|
|
}
|