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/")
|
|
|
|
executable = 'python'
|
|
|
|
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/"
|
2018-09-23 12:36:49 +00:00
|
|
|
delete "android-ndk-r18"
|
2017-10-24 05:55:28 +00:00
|
|
|
delete "gobuild"
|
2018-09-13 07:57:31 +00:00
|
|
|
delete "go"
|
2018-09-23 12:36:49 +00:00
|
|
|
delete "mingit"
|
2017-10-24 05:55:28 +00:00
|
|
|
}
|