2022-06-07 12:09:04 +00:00
|
|
|
plugins {
|
2022-11-02 22:46:31 +00:00
|
|
|
id 'ru.vyarus.use-python' version '3.0.0'
|
2022-06-07 12:09:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task buildNative(type: PythonTask) {
|
2021-12-08 09:55:50 +00:00
|
|
|
environment "NDK_VERSION", "$ndkVersionShared"
|
2018-07-17 23:17:58 +00:00
|
|
|
inputs.dir("$projectDir/src/")
|
|
|
|
outputs.dir("$projectDir/../app/src/main/jniLibs/")
|
2022-06-07 12:09:04 +00:00
|
|
|
command = "-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"
|
|
|
|
}
|