mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +00:00
18 lines
496 B
Groovy
18 lines
496 B
Groovy
plugins {
|
|
id 'ru.vyarus.use-python' version '2.3.0'
|
|
}
|
|
|
|
task buildNative(type: PythonTask) {
|
|
environment "NDK_VERSION", "$ndkVersionShared"
|
|
inputs.dir("$projectDir/src/")
|
|
outputs.dir("$projectDir/../app/src/main/jniLibs/")
|
|
command = "-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 "gobuild"
|
|
}
|