22 lines
527 B
Makefile
22 lines
527 B
Makefile
111MODULE = on
|
|
export GO111MODULE
|
|
|
|
unexport SWIFT_DEBUG_INFORMATION_VERSION
|
|
unexport SWIFT_DEBUG_INFORMATION_FORMAT
|
|
|
|
clean:
|
|
rm -rf mobileNebula.aar MobileNebula.xcframework
|
|
|
|
mobileNebula.aar: *.go go.sum
|
|
go get -d golang.org/x/mobile/cmd/gomobile
|
|
gomobile bind -trimpath -v --target=android -androidapi=26
|
|
|
|
MobileNebula.xcframework: *.go go.sum
|
|
go get -d golang.org/x/mobile/cmd/gomobile
|
|
gomobile bind -trimpath -v -target=ios
|
|
|
|
.DEFAULT_GOAL := mobileNebula.aar
|
|
|
|
.PHONY: clean
|
|
all: mobileNebula.aar MobileNebula.framework
|