1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-29 15:51:17 +00:00
syncthing-android/syncthing/build.gradle
Catfriend1 7188f0a923
Support python3 during build - Install MinGit on-demand on Windows (#69)
* Build with python3 - Replace urllib
* Fix build.gradle cleanNative
* Update README.md
* build-syncthing - Install MinGit on demand if missing on Windows
2018-09-23 14:36:49 +02:00

17 lines
473 B
Groovy

task buildNative(type: Exec) {
inputs.dir("$projectDir/src/")
outputs.dir("$projectDir/../app/src/main/jniLibs/")
executable = 'python'
args = ['-u', './build-syncthing.py']
}
/**
* Use separate task instead of standard clean(), so these folders aren't deleted by `gradle clean`.
*/
task cleanNative(type: Delete) {
delete "$projectDir/../app/src/main/jniLibs/"
delete "android-ndk-r18"
delete "gobuild"
delete "go"
delete "mingit"
}