1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2025-01-23 10:25:54 +00:00

Adjust build process for syncthing v0.9.0 (binary moved, fixes #72).

This commit is contained in:
Felix Ableitner 2014-08-06 16:15:44 +02:00
parent fd5455eff4
commit 804912062c
2 changed files with 11 additions and 20 deletions

View file

@ -2,26 +2,18 @@
cd "$GOPATH/src/github.com/syncthing/syncthing/"
rm bin/
./build.sh test || exit 1
export GOOS=linux
export ENVIRONMENT=android
export GOARCH=386
GOARCH=386 ./build.sh "" -tags noupgrade
mv bin/linux_386/syncthing bin/syncthing-x86
./build.sh "" -tags noupgrade
cp syncthing syncthing-x86
GOARCH=arm GOARM=5 ./build.sh "" -tags noupgrade
mv bin/linux_arm/syncthing bin/syncthing-armeabi
export GOARCH=arm
export GOARM=7
./build.sh "" -tags noupgrade
cp syncthing syncthing-armeabi-v7a
export GOARM=5
./build.sh "" -tags noupgrade
cp syncthing syncthing-armeabi
#export GOARCH=mips
#./build.sh "" -tags noupgrade
#cp syncthing syncthing-mips
GOARCH=arm GOARM=7 ./build.sh "" -tags noupgrade
mv bin/linux_arm/syncthing bin/syncthing-armeabi-v7a

View file

@ -101,13 +101,12 @@ task buildNative(type: Exec) {
}
task copyNative(type: Copy) {
def st_dir = System.getenv("GOPATH") + "/src/github.com/syncthing/syncthing/";
from st_dir + 'syncthing-x86', st_dir + 'syncthing-armeabi', st_dir + 'syncthing-armeabi-v7a';
def st_dir = System.getenv("GOPATH") + "/src/github.com/syncthing/syncthing/bin/";
from st_dir + 'syncthing-x86', st_dir + 'syncthing-armeabi-v7a', st_dir + 'syncthing-armeabi';
into 'libs/'
rename('syncthing-x86', 'x86/libsyncthing.so')
rename('syncthing-armeabi-v7a', 'armeabi-v7a/libsyncthing.so')
rename('syncthing-armeabi', 'armeabi/libsyncthing.so')
rename('syncthing-mips', 'mips/libsyncthing.so')
}
buildNative.finalizedBy copyNative