mirror of
https://github.com/anyproto/anytype-heart.git
synced 2025-06-09 09:35:00 +09:00
fix gomobile bin path
This commit is contained in:
parent
46201ba22f
commit
277a6bb26d
3 changed files with 13 additions and 8 deletions
12
Makefile
12
Makefile
|
@ -1,8 +1,6 @@
|
|||
export GOPRIVATE=github.com/anyproto
|
||||
export GOLANGCI_LINT_VERSION=v1.54.2
|
||||
export custom_network_file=./core/anytype/config/nodes/custom.yml
|
||||
export CGO_CFLAGS=-Wno-deprecated-non-prototype -Wno-unknown-warning-option -Wno-deprecated-declarations -Wno-xor-used-as-pow
|
||||
|
||||
ifndef $(GOPATH)
|
||||
GOPATH=$(shell go env GOPATH)
|
||||
export GOPATH
|
||||
|
@ -13,7 +11,9 @@ ifndef $(GOROOT)
|
|||
export GOROOT
|
||||
endif
|
||||
|
||||
export PATH:=$(shell pwd)/deps:$(GOPATH)/bin:$(PATH)
|
||||
DEPS_PATH := $(shell pwd)/deps
|
||||
export PATH := $(DEPS_PATH):$(PATH)
|
||||
|
||||
$(shell git config core.hooksPath .githooks)
|
||||
|
||||
all:
|
||||
|
@ -104,8 +104,10 @@ build-js-addon:
|
|||
@npm install -C ./clientlibrary/jsaddon
|
||||
@rm clientlibrary/jsaddon/lib.a clientlibrary/jsaddon/lib.h clientlibrary/jsaddon/bridge.h
|
||||
|
||||
|
||||
build-ios: setup-go setup-gomobile
|
||||
gomobile init
|
||||
# PATH is not working here, so we need to use absolute path
|
||||
$(DEPS_PATH)/gomobile init
|
||||
@echo 'Clear xcframework'
|
||||
@rm -rf ./dist/ios/Lib.xcframework
|
||||
@echo 'Building library for iOS...'
|
||||
|
@ -123,7 +125,7 @@ endif
|
|||
@go mod tidy
|
||||
|
||||
build-android: setup-go setup-gomobile
|
||||
gomobile init
|
||||
$(DEPS_PATH)/gomobile init
|
||||
@echo 'Building library for Android...'
|
||||
@$(eval FLAGS := $$(shell govvv -flags | sed 's/main/github.com\/anyproto\/anytype-heart\/util\/vcs/g'))
|
||||
@$(eval TAGS := nogrpcserver gomobile nowatchdog nosigar)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue