Skip to content

Commit

Permalink
update sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
matteriot committed Sep 3, 2023
1 parent e483f99 commit ad4f704
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/buildso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ echo "building linux/android so file"
export CGO_ENABLED=1
export GOARCH=amd64
export GOOS=linux
go build -tags linux -ldflags=-w -trimpath -o build/linux/gateway_amd64.so -buildmode c-shared main.go
go build -tags linux -ldflags=-w -trimpath -o build/linux/libgateway_amd64.so -buildmode c-shared
# shellcheck disable=SC2034
export CGO_ENABLED=1
export GOARCH=arm64
Expand All @@ -15,7 +15,7 @@ export CC=aarch64-linux-gnu-gcc
#export CXX=aarch64-linux-gnu-g++
##sudo apt-get install binutils-aarch64-linux-gnu
#export AR=aarch64-linux-gnu-ar
go build -tags linux -ldflags=-w -trimpath -o build/linux/gateway_arm64.so -buildmode c-shared main.go
go build -tags linux -ldflags=-w -trimpath -o build/linux/libgateway_arm64.so -buildmode c-shared

export PATH=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin:~/Android/Sdk/ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH
#android/app/src/main/jniLibs/armeabi-v7a
Expand All @@ -24,25 +24,25 @@ export CGO_ENABLED=1
export GOARCH=arm
export GOOS=android
export CC=armv7a-linux-androideabi33-clang
go build -tags android -ldflags=-w -trimpath -o build/android/armeabi-v7a/gateway.so -buildmode c-shared main.go
go build -tags android -ldflags=-w -trimpath -o build/android/armeabi-v7a/libgateway.so -buildmode c-shared
#android/app/src/main/jniLibs/arm64-v8a
# shellcheck disable=SC2034
export CGO_ENABLED=1
export GOARCH=arm64
export GOOS=android
export CC=aarch64-linux-android33-clang
go build -tags android -ldflags=-w -trimpath -o build/android/arm64-v8a/gateway.so -buildmode c-shared main.go
go build -tags android -ldflags=-w -trimpath -o build/android/arm64-v8a/libgateway.so -buildmode c-shared
#android/app/src/main/jniLibs/x86
# shellcheck disable=SC2034
export CGO_ENABLED=1
export GOARCH=386
export GOOS=android
export CC=i686-linux-android33-clang
go build -tags android -ldflags=-w -trimpath -o build/android/x86/gateway.so -buildmode c-shared main.go
go build -tags android -ldflags=-w -trimpath -o build/android/x86/libgateway.so -buildmode c-shared
#android/app/src/main/jniLibs/x86_64
# shellcheck disable=SC2034
export CGO_ENABLED=1
export GOARCH=amd64
export GOOS=android
export CC=x86_64-linux-android33-clang
go build -tags android -ldflags=-w -trimpath -o build/android/x86_64/gateway.so -buildmode c-shared main.go
go build -tags android -ldflags=-w -trimpath -o build/android/x86_64/libgateway.so -buildmode c-shared

0 comments on commit ad4f704

Please sign in to comment.