Skip to content

Commit

Permalink
Add nkn-sdk-go to gomobile build target
Browse files Browse the repository at this point in the history
Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Aug 20, 2020
1 parent c134f52 commit 74b61f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ all:
ios:
rm -rf $(BUILD_DIR)/ios Tunnel.framework
mkdir -p $(BUILD_DIR)/ios
gomobile bind -target=ios -ldflags "-s -w" github.com/nknorg/nkn-tunnel github.com/nknorg/nkn-tuna-session github.com/nknorg/ncp-go github.com/nknorg/tuna
gomobile bind -target=ios -ldflags "-s -w" github.com/nknorg/nkn-tunnel github.com/nknorg/nkn-tuna-session github.com/nknorg/ncp-go github.com/nknorg/tuna github.com/nknorg/nkn-sdk-go
mv Tunnel.framework $(BUILD_DIR)/ios/
${MAKE} zip BIN_DIR=ios

.PHONY: android
android:
rm -rf $(BUILD_DIR)/android tunnel.aar tunnel-sources.jar
mkdir -p $(BUILD_DIR)/android
gomobile bind -target=android -ldflags "-s -w" github.com/nknorg/nkn-tunnel github.com/nknorg/nkn-tuna-session github.com/nknorg/ncp-go github.com/nknorg/tuna
gomobile bind -target=android -ldflags "-s -w" github.com/nknorg/nkn-tunnel github.com/nknorg/nkn-tuna-session github.com/nknorg/ncp-go github.com/nknorg/tuna github.com/nknorg/nkn-sdk-go
mv tunnel.aar tunnel-sources.jar $(BUILD_DIR)/android/
${MAKE} zip BIN_DIR=android

0 comments on commit 74b61f4

Please sign in to comment.