mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-23 18:35:54 +00:00
Adjust build process for syncthing v0.9.0 (binary moved, fixes #72).
This commit is contained in:
parent
fd5455eff4
commit
804912062c
2 changed files with 11 additions and 20 deletions
|
@ -2,26 +2,18 @@
|
||||||
|
|
||||||
cd "$GOPATH/src/github.com/syncthing/syncthing/"
|
cd "$GOPATH/src/github.com/syncthing/syncthing/"
|
||||||
|
|
||||||
|
rm bin/
|
||||||
|
|
||||||
./build.sh test || exit 1
|
./build.sh test || exit 1
|
||||||
|
|
||||||
export GOOS=linux
|
export GOOS=linux
|
||||||
export ENVIRONMENT=android
|
export ENVIRONMENT=android
|
||||||
|
|
||||||
export GOARCH=386
|
GOARCH=386 ./build.sh "" -tags noupgrade
|
||||||
|
mv bin/linux_386/syncthing bin/syncthing-x86
|
||||||
|
|
||||||
./build.sh "" -tags noupgrade
|
GOARCH=arm GOARM=5 ./build.sh "" -tags noupgrade
|
||||||
cp syncthing syncthing-x86
|
mv bin/linux_arm/syncthing bin/syncthing-armeabi
|
||||||
|
|
||||||
export GOARCH=arm
|
GOARCH=arm GOARM=7 ./build.sh "" -tags noupgrade
|
||||||
|
mv bin/linux_arm/syncthing bin/syncthing-armeabi-v7a
|
||||||
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
|
|
||||||
|
|
|
@ -101,13 +101,12 @@ task buildNative(type: Exec) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task copyNative(type: Copy) {
|
task copyNative(type: Copy) {
|
||||||
def st_dir = System.getenv("GOPATH") + "/src/github.com/syncthing/syncthing/";
|
def st_dir = System.getenv("GOPATH") + "/src/github.com/syncthing/syncthing/bin/";
|
||||||
from st_dir + 'syncthing-x86', st_dir + 'syncthing-armeabi', st_dir + 'syncthing-armeabi-v7a';
|
from st_dir + 'syncthing-x86', st_dir + 'syncthing-armeabi-v7a', st_dir + 'syncthing-armeabi';
|
||||||
into 'libs/'
|
into 'libs/'
|
||||||
rename('syncthing-x86', 'x86/libsyncthing.so')
|
rename('syncthing-x86', 'x86/libsyncthing.so')
|
||||||
rename('syncthing-armeabi-v7a', 'armeabi-v7a/libsyncthing.so')
|
rename('syncthing-armeabi-v7a', 'armeabi-v7a/libsyncthing.so')
|
||||||
rename('syncthing-armeabi', 'armeabi/libsyncthing.so')
|
rename('syncthing-armeabi', 'armeabi/libsyncthing.so')
|
||||||
rename('syncthing-mips', 'mips/libsyncthing.so')
|
|
||||||
}
|
}
|
||||||
buildNative.finalizedBy copyNative
|
buildNative.finalizedBy copyNative
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue