fix: get gomobile before building mobile targets

This commit is contained in:
Richard Ramos 2022-08-09 14:26:00 -04:00
parent e7bc6799ed
commit 0525b1cbc7
No known key found for this signature in database
GPG Key ID: BD36D48BC9FFC88C
1 changed files with 2 additions and 0 deletions

View File

@ -124,12 +124,14 @@ endif
mobile-android:
gomobile init && \
go get -d golang.org/x/mobile/cmd/gomobile && \
gomobile bind -v -target=android -ldflags="-s -w" $(BUILD_FLAGS) -o ./build/lib/gowaku.aar ./mobile
@echo "Android library built:"
@ls -la ./build/lib/*.aar ./build/lib/*.jar
mobile-ios:
gomobile init && \
go get -d golang.org/x/mobile/cmd/gomobile && \
gomobile bind -target=ios -ldflags="-s -w" -o ./build/lib/Gowaku.xcframework ./mobile
@echo "IOS library built:"
@ls -la ./build/lib/*.xcframework