Skip to content

Commit

Permalink
feat: add android support
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed Sep 18, 2024
1 parent 612cdc8 commit 1917240
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions lib/aarch64-android/lib_android_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package lib
5 changes: 5 additions & 0 deletions west_android_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//go:build !dev

//go:generate cp ./target/release/libwest_sys.a ./lib/aarch64-android/libwest.a

package west

0 comments on commit 1917240

Please sign in to comment.