Added mips compilation code (yet unsupported).

This commit is contained in:
Felix Ableitner 2014-05-18 15:24:14 +02:00
parent fd24e50511
commit 2cd100e4bb
2 changed files with 5 additions and 1 deletions

View File

@ -7,7 +7,7 @@ A port of [syncthing](https://github.com/calmh/syncthing) to Android.
## Building
There are multiple ways to get the native syncthing binary:
- Depending on your target architecture, download `syncthing-linux-386`, `syncthing-linux-armv5` or `syncthing-linux-armv7` from [syncthing releases](https://github.com/calmh/syncthing/releases), and extract the binary to `libs/x86/libsyncthing.so`, `libs/armeabi-v7a/libsyncthing.so` or `libs/armeabi/libsyncthing.so` respectively.
- Depending on your target architecture, download `syncthing-linux-386`, `syncthing-linux-armv5`, `syncthing-linux-armv7` or `syncthing-linux-mips` from [syncthing releases](https://github.com/calmh/syncthing/releases), and extract the binary to `libs/x86/libsyncthing.so`, `libs/armeabi-v7a/libsyncthing.so`, `libs/armeabi/libsyncthing.so` or `libs/mips/libsyncthing.so` respectively.
- Set up a syncthing compile and run `gradle buildNative` in your syncthing-android directory.
Then, run `gradle assembleDebug`.

View File

@ -21,3 +21,7 @@ cp syncthing syncthing-armeabi-v7a
export GOARM=5
./build.sh
cp syncthing syncthing-armeabi
#export GOARCH=mips
#./build.sh
#cp syncthing syncthing-mips