Skip to content

Commit

Permalink
feat: add variable for additionnal go package in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
aeddi committed Dec 1, 2019
1 parent 29de656 commit f0f6a52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ GO_SRC = $(shell find $(GO_DIR) -not \( -path $(GO_DIR)/vendor -prune \) -name \

GOMOBILE = $(GOPATH)/bin/gomobile
GOMOBILE_OPT ?=
ADDITIONAL_GO_PKG ?=

VERSION_FILE = $(MAKEFILE_DIR)/version
LIB_VERSION = $(shell cat $(VERSION_FILE))
Expand All @@ -31,7 +32,7 @@ build: build.android build.ios
build.android: $(BUILD_LIB_ANDROID) $(BUILD_POM_ANDROID)

$(BUILD_LIB_ANDROID): $(BUILD_DIR_ANDROID) $(GO_SRC) $(VENDOR) | $(GOMOBILE)
GO111MODULE=off $(GOMOBILE) bind -v $(GOMOBILE_OPT) -target=android -o $(BUILD_LIB_ANDROID) github.com/berty/gomobile-ipfs/go
GO111MODULE=off $(GOMOBILE) bind -v $(GOMOBILE_OPT) -target=android -o $(BUILD_LIB_ANDROID) github.com/berty/gomobile-ipfs/go $(ADDITIONAL_GO_PKG)

$(BUILD_DIR_ANDROID):
mkdir -p $(BUILD_DIR_ANDROID)
Expand All @@ -42,7 +43,7 @@ $(BUILD_POM_ANDROID):
build.ios: $(BUILD_LIB_IOS)

$(BUILD_LIB_IOS): $(BUILD_DIR_IOS) $(GO_SRC) $(VENDOR) | $(GOMOBILE)
GO111MODULE=off $(GOMOBILE) bind -v $(GOMOBILE_OPT) -target=ios -o $(BUILD_LIB_IOS) github.com/berty/gomobile-ipfs/go
GO111MODULE=off $(GOMOBILE) bind -v $(GOMOBILE_OPT) -target=ios -o $(BUILD_LIB_IOS) github.com/berty/gomobile-ipfs/go $(ADDITIONAL_GO_PKG)

$(BUILD_DIR_IOS):
mkdir -p $(BUILD_DIR_IOS)
Expand Down

0 comments on commit f0f6a52

Please sign in to comment.