make: define make android, make mobile (ios+android)
This commit is contained in:
parent
4dcaea1f5d
commit
3aa9f18395
11
Makefile
11
Makefile
@ -18,6 +18,8 @@ BTCD_DIR :=${GOPATH}/src/$(BTCD_PKG)
|
|||||||
MOBILE_BUILD_DIR :=${GOPATH}/src/$(MOBILE_PKG)/build
|
MOBILE_BUILD_DIR :=${GOPATH}/src/$(MOBILE_PKG)/build
|
||||||
IOS_BUILD_DIR := $(MOBILE_BUILD_DIR)/ios
|
IOS_BUILD_DIR := $(MOBILE_BUILD_DIR)/ios
|
||||||
IOS_BUILD := $(IOS_BUILD_DIR)/Lndmobile.framework
|
IOS_BUILD := $(IOS_BUILD_DIR)/Lndmobile.framework
|
||||||
|
ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR)/android
|
||||||
|
ANDROID_BUILD := $(ANDROID_BUILD_DIR)/Lndmobile.aar
|
||||||
|
|
||||||
COMMIT := $(shell git describe --abbrev=40 --dirty)
|
COMMIT := $(shell git describe --abbrev=40 --dirty)
|
||||||
LDFLAGS := -ldflags "-X $(PKG)/build.Commit=$(COMMIT)"
|
LDFLAGS := -ldflags "-X $(PKG)/build.Commit=$(COMMIT)"
|
||||||
@ -188,6 +190,13 @@ ios: vendor mobile-rpc
|
|||||||
mkdir -p $(IOS_BUILD_DIR)
|
mkdir -p $(IOS_BUILD_DIR)
|
||||||
$(GOMOBILE_BIN) bind -target=ios -tags="ios $(DEV_TAGS) autopilotrpc experimental" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG)
|
$(GOMOBILE_BIN) bind -target=ios -tags="ios $(DEV_TAGS) autopilotrpc experimental" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG)
|
||||||
|
|
||||||
|
android: vendor mobile-rpc
|
||||||
|
@$(call print, "Building Android library ($(ANDROID_BUILD)).")
|
||||||
|
mkdir -p $(ANDROID_BUILD_DIR)
|
||||||
|
$(GOMOBILE_BIN) bind -target=android -tags="android $(DEV_TAGS) autopilotrpc experimental" $(LDFLAGS) -v -o $(ANDROID_BUILD) $(MOBILE_PKG)
|
||||||
|
|
||||||
|
mobile: ios android
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@$(call print, "Cleaning source.$(NC)")
|
@$(call print, "Cleaning source.$(NC)")
|
||||||
$(RM) ./lnd-debug ./lncli-debug
|
$(RM) ./lnd-debug ./lncli-debug
|
||||||
@ -220,4 +229,6 @@ clean:
|
|||||||
mobile-rpc \
|
mobile-rpc \
|
||||||
vendor \
|
vendor \
|
||||||
ios \
|
ios \
|
||||||
|
android \
|
||||||
|
mobile \
|
||||||
clean
|
clean
|
||||||
|
Loading…
Reference in New Issue
Block a user