From a97b194574b33027611439f73d3fe9b359d97687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hampus=20Sj=C3=B6berg?= Date: Sun, 27 Mar 2022 01:20:30 +0400 Subject: [PATCH] mobile: Add apple Makefile task for compiling xcframework for all Apple platforms --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index cad728c36..7c6e84a07 100644 --- a/Makefile +++ b/Makefile @@ -298,6 +298,11 @@ vendor: @$(call print, "Re-creating vendor directory.") rm -r vendor/; go mod vendor +apple: vendor mobile-rpc + @$(call print, "Building iOS and macOS cxframework ($(IOS_BUILD)).") + mkdir -p $(IOS_BUILD_DIR) + $(GOMOBILE_BIN) bind -target=ios,iossimulator,macos -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG) + ios: vendor mobile-rpc @$(call print, "Building iOS cxframework ($(IOS_BUILD)).") mkdir -p $(IOS_BUILD_DIR)