diff options
author | cyBerta <cyberta@riseup.net> | 2019-10-06 18:01:13 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2019-10-06 18:01:13 +0200 |
commit | b76ca198dfb281829461b1e422aec17ea6e31440 (patch) | |
tree | 6eda1e716d22a53fb2e119c8fe8d38285b11cf1e /go/android_build_shapeshifter.sh | |
parent | 70d08db8f17279ac7a370b2255c51aefc3995d54 (diff) |
tweak build script
Diffstat (limited to 'go/android_build_shapeshifter.sh')
-rwxr-xr-x | go/android_build_shapeshifter.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/go/android_build_shapeshifter.sh b/go/android_build_shapeshifter.sh index 35b85121..85204906 100755 --- a/go/android_build_shapeshifter.sh +++ b/go/android_build_shapeshifter.sh @@ -11,7 +11,7 @@ function quit { exit 1 } -if [ "$1" == "removeall" ]; then +if [ "$1" == "removeAll" ]; then echo "removing golang, sources and generated files" for folder in /tmp/android-toolchain-*; do if [[ -d $folder ]]; then @@ -51,9 +51,9 @@ elif [ "$1" == "clean" ]; then fi echo "Done!" else - if [[ "$1" == "--library" ]]; then - BUILD_LIBRARY=true; - fi; + if [[ "$1" == "createLibrary" ]]; then + BUILD_LIBRARY=true + fi if [ -z $ANDROID_NDK_HOME ]; then echo "Android NDK path not specified!" @@ -122,7 +122,8 @@ else echo "Starting compilation for $suffix..." if [[ BUILD_LIBRARY ]]; then - ./golang/go/bin/go build -buildmode=pie -ldflags '-w -s -extldflags=-pie' -o ./out/${suffix}/piedispatcherlib se.leap.bitmaskclient/shapeshifter || quit "Failed to cross-compile shapeshifter-dispatcher-library" + ./android_build_shapeshifter_lib.sh || quit "Failed to cross-compile shapeshifter-dispatcher-library" + else ./golang/go/bin/go build -buildmode=pie -ldflags '-w -s -extldflags=-pie' -o ./out/${suffix}/piedispatcher github.com/OperatorFoundation/shapeshifter-dispatcher/shapeshifter-dispatcher || quit "Failed to cross-compile shapeshifter-dispatcher" fi |