mirror of
https://github.com/logos-messaging/sds-go-bindings.git
synced 2026-01-07 16:43:12 +00:00
add android support
This commit is contained in:
parent
45106c938c
commit
267810e77f
30
sds/Makefile
30
sds/Makefile
@ -1,10 +1,5 @@
|
|||||||
# Makefile for SDS Go Bindings
|
# Makefile for SDS Go Bindings
|
||||||
|
|
||||||
# Directories
|
|
||||||
THIRD_PARTY_DIR := ../third_party
|
|
||||||
NIM_SDS_REPO := https://github.com/waku-org/nim-sds
|
|
||||||
NIM_SDS_DIR := $(THIRD_PARTY_DIR)/nim-sds
|
|
||||||
|
|
||||||
.PHONY: all clean prepare build-libsds build
|
.PHONY: all clean prepare build-libsds build
|
||||||
|
|
||||||
# Default target
|
# Default target
|
||||||
@ -13,31 +8,34 @@ all: build
|
|||||||
# Prepare third_party directory and clone nim-sds
|
# Prepare third_party directory and clone nim-sds
|
||||||
prepare:
|
prepare:
|
||||||
@echo "Creating third_party directory..."
|
@echo "Creating third_party directory..."
|
||||||
@mkdir -p $(THIRD_PARTY_DIR)
|
@mkdir -p ../third_party
|
||||||
|
|
||||||
@echo "Cloning nim-sds repository..."
|
@echo "Cloning nim-sds repository..."
|
||||||
@if [ ! -d "$(NIM_SDS_DIR)" ]; then \
|
@if [ ! -d "../third_party/nim-sds" ]; then \
|
||||||
cd $(THIRD_PARTY_DIR) && \
|
cd ../third_party/ && \
|
||||||
git clone $(NIM_SDS_REPO) && \
|
git clone https://github.com/waku-org/nim-sds && \
|
||||||
cd $(NIM_SDS_DIR) && \
|
cd nim-sds && \
|
||||||
git checkout master; \
|
git checkout add-android-support; \
|
||||||
make update; \
|
make update; \
|
||||||
else \
|
else \
|
||||||
echo "nim-sds repository already exists."; \
|
echo "nim-sds repository already exists."; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Build libsds
|
# Build SDS Go Bindings
|
||||||
build-libsds: prepare
|
build: prepare
|
||||||
@echo "Building libsds..."
|
@echo "Building libsds..."
|
||||||
@cd $(NIM_SDS_DIR) && make libsds
|
@cd $(NIM_SDS_DIR) && make libsds
|
||||||
|
@echo "Building SDS Go Bindings..."
|
||||||
|
go build ./...
|
||||||
|
|
||||||
# Build SDS Go Bindings
|
build-android: prepare
|
||||||
build: build-libsds
|
@echo "Building libsds..."
|
||||||
|
@cd $(NIM_SDS_DIR) && make libsds-android
|
||||||
@echo "Building SDS Go Bindings..."
|
@echo "Building SDS Go Bindings..."
|
||||||
go build ./...
|
go build ./...
|
||||||
|
|
||||||
# Clean up generated files
|
# Clean up generated files
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning up..."
|
@echo "Cleaning up..."
|
||||||
@rm -rf $(THIRD_PARTY_DIR)
|
@rm -rf ../third_party/
|
||||||
@rm -f sds-go-bindings
|
@rm -f sds-go-bindings
|
||||||
Loading…
x
Reference in New Issue
Block a user