mirror of
https://github.com/aljazceru/breez-sdk-liquid.git
synced 2025-12-30 12:24:32 +01:00
* Rename CLI and lib projects * Place lib in a workspace * Add uniffi package * Bump uniffi version * Add uniffi.toml config file to customize lib names * Add makefile for kotlin, python, swift bindings * Add missing PaymentError variant * Rename BoltzGeneric error variant
18 lines
664 B
Makefile
18 lines
664 B
Makefile
SOURCES=$(sort $(wildcard ./src/*.rs ./src/**/*.rs))
|
|
|
|
TARGET ?= x86_64-unknown-linux-gnu
|
|
|
|
all: python kotlin swift
|
|
|
|
python: $(SOURCES)
|
|
cargo build --release --target $(TARGET)
|
|
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/ls_sdk.udl --no-format --language python -o ffi/python
|
|
|
|
kotlin: $(SOURCES)
|
|
cargo build --release --target $(TARGET)
|
|
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/ls_sdk.udl --no-format --language kotlin -o ffi/kotlin
|
|
|
|
swift: $(SOURCES)
|
|
cargo build --release --target $(TARGET)
|
|
cargo run --features=uniffi/cli --bin uniffi-bindgen generate src/ls_sdk.udl --no-format --language swift -o ffi/swift
|