Merge pull request #6373 from hsjoberg/macos-makefile

mobile: Add macos and apple Makefile tasks
This commit is contained in:
Oliver Gugger 2022-04-01 12:35:57 +02:00 committed by GitHub
commit 0f858958f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 3 deletions

View File

@ -298,10 +298,20 @@ vendor:
@$(call print, "Re-creating vendor directory.")
rm -r vendor/; go mod vendor
ios: vendor mobile-rpc
@$(call print, "Building iOS framework ($(IOS_BUILD)).")
apple: vendor mobile-rpc
@$(call print, "Building iOS and macOS cxframework ($(IOS_BUILD)).")
mkdir -p $(IOS_BUILD_DIR)
$(GOMOBILE_BIN) bind -target=ios -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG)
$(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)
$(GOMOBILE_BIN) bind -target=ios,iossimulator -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG)
macos: vendor mobile-rpc
@$(call print, "Building macOS cxframework ($(IOS_BUILD)).")
mkdir -p $(IOS_BUILD_DIR)
$(GOMOBILE_BIN) bind -target=macos -tags="mobile $(DEV_TAGS) autopilotrpc" $(LDFLAGS) -v -o $(IOS_BUILD) $(MOBILE_PKG)
android: vendor mobile-rpc
@$(call print, "Building Android library ($(ANDROID_BUILD)).")

View File

@ -132,6 +132,15 @@ then watch it on chain. Taproot script spends are also supported through the
specifies the maximum duration it allows for a remote peer to respond to a
locally initiated commitment update.
* [`macos` and `apple` Makefile tasks have been added.](https://github.com/lightningnetwork/lnd/pull/6373)
The `macos` task uses `gomobile` to build an `XCFramework` that can be used to
embed lnd to macOS apps, similar to how the `ios` task builds for iOS.
The `apple` task uses `gomobile` to build an `XCFramework` that can be used to
embed lnd to both iOS and macOS apps.
## RPC Server
* [Add value to the field
@ -226,6 +235,7 @@ gRPC performance metrics (latency to process `GetInfo`, etc)](https://github.com
* Elle Mouton
* ErikEk
* Eugene Siegel
* Hampus Sjöberg
* henta
* Joost Jager
* Jordi Montes