1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 00:01:19 +00:00
syncthing-android/syncthing/build.gradle

16 lines
460 B
Groovy
Raw Normal View History

task buildNative(type: Exec) {
environment "NDK_VERSION", "$ndkVersionShared"
2018-07-17 23:17:58 +00:00
inputs.dir("$projectDir/src/")
outputs.dir("$projectDir/../app/src/main/jniLibs/")
executable = 'python3'
2018-07-17 23:17:58 +00:00
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) {
2018-07-17 23:17:58 +00:00
delete "$projectDir/../app/src/main/jniLibs/"
delete "gobuild"
}