mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-22 04:11:14 +00:00
Use default folder for syncthing binaries.
This commit is contained in:
parent
80b0578b73
commit
9c06ae22c5
3 changed files with 6 additions and 13 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -12,7 +12,7 @@
|
|||
bin/
|
||||
build/
|
||||
gen/
|
||||
libs/
|
||||
src/main/jniLibs/
|
||||
obj/
|
||||
.gradle/
|
||||
|
||||
|
|
10
build.gradle
10
build.gradle
|
@ -45,12 +45,6 @@ android {
|
|||
testFunctionalTest true
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
jniLibs.srcDir file("libs/")
|
||||
}
|
||||
}
|
||||
|
||||
// Without this parameter, all builds fail with error:
|
||||
// Execution failed for task ':mergeArmeabiDebugResources'.
|
||||
// > Some file crunching failed, see logs for details
|
||||
|
@ -110,9 +104,7 @@ task buildNative(type: Exec) {
|
|||
}
|
||||
|
||||
task cleanNative(type: Delete) {
|
||||
delete 'bin/'
|
||||
delete 'build/'
|
||||
delete 'libs/'
|
||||
delete 'src/main/jniLibs/'
|
||||
delete 'ext/syncthing/bin/'
|
||||
delete 'ext/syncthing/pkg/'
|
||||
}
|
||||
|
|
|
@ -5,6 +5,7 @@ set -e
|
|||
RESET=1
|
||||
|
||||
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
JNIDIR="/src/main/jniLibs"
|
||||
|
||||
case "$1" in
|
||||
arm)
|
||||
|
@ -12,20 +13,20 @@ case "$1" in
|
|||
export GOOS=linux
|
||||
export GOARCH=arm
|
||||
export GOARM=5
|
||||
export TARGETDIR=${MYDIR}/libs/armeabi
|
||||
export TARGETDIR=$MYDIR$JNIDIR/armeabi
|
||||
;;
|
||||
386)
|
||||
export CGO_ENABLED=0
|
||||
export GOOS=linux
|
||||
export GOARCH=386
|
||||
export GO386=387
|
||||
export TARGETDIR=${MYDIR}/libs/x86
|
||||
export TARGETDIR=$MYDIR$JNIDIR/x86
|
||||
;;
|
||||
amd64)
|
||||
export CGO_ENABLED=0
|
||||
export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
export TARGETDIR=${MYDIR}/libs/x86_64
|
||||
export TARGETDIR=$MYDIR$JNIDIR/x86_64
|
||||
;;
|
||||
*)
|
||||
echo "Must specify either arm or 386 or amd64"
|
||||
|
|
Loading…
Reference in a new issue