diff --git a/build.go b/build.go index 48cc8bf..9510afd 100644 --- a/build.go +++ b/build.go @@ -8,6 +8,7 @@ package west // #cgo LDFLAGS: -lwest // #cgo linux LDFLAGS: -lm +// #cgo android,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-android // #cgo darwin,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-darwin // #cgo darwin,arm64 LDFLAGS: -L${SRCDIR}/lib/aarch64-darwin // #cgo linux,amd64 LDFLAGS: -L${SRCDIR}/lib/x86_64-linux diff --git a/lib/aarch64-android/lib_android_arm64.go b/lib/aarch64-android/lib_android_arm64.go new file mode 100644 index 0000000..55c21f8 --- /dev/null +++ b/lib/aarch64-android/lib_android_arm64.go @@ -0,0 +1 @@ +package lib diff --git a/west_android_arm64.go b/west_android_arm64.go new file mode 100644 index 0000000..a12e633 --- /dev/null +++ b/west_android_arm64.go @@ -0,0 +1,5 @@ +//go:build !dev + +//go:generate cp ./target/release/libwest_sys.a ./lib/aarch64-android/libwest.a + +package west