wowwallet/external-libs/Makefile

47 lines
1.6 KiB
Makefile
Raw Normal View History

2021-04-22 10:45:21 -06:00
FLAVOUR=wownero
all: arm64-v8a x86_64 include/wallet2_api.h VERSION
2021-04-22 12:17:02 -06:00
arm64-v8a: $(FLAVOUR) android64.Dockerfile
-rm -rf arm64-v8a
2021-04-22 10:45:21 -06:00
-docker container rm $(FLAVOUR)-android-arm64 -f
docker build -f android64.Dockerfile -t $(FLAVOUR)-android-arm64 $(FLAVOUR)
docker create -it --name $(FLAVOUR)-android-arm64 $(FLAVOUR)-android-arm64 bash
docker cp $(FLAVOUR)-android-arm64:/opt/android/prefix/lib/. arm64-v8a/
2021-04-22 12:17:02 -06:00
docker cp $(FLAVOUR)-android-arm64:/src/build/release/lib/. arm64-v8a/$(FLAVOUR)
2021-04-22 12:17:02 -06:00
x86_64: $(FLAVOUR) android64_x86.Dockerfile
-rm -rf x86_64
2021-04-22 10:45:21 -06:00
-docker container rm $(FLAVOUR)-android-x86_64 -f
docker build -f android64_x86.Dockerfile -t $(FLAVOUR)-android-x86_64 $(FLAVOUR)
docker create -it --name $(FLAVOUR)-android-x86_64 $(FLAVOUR)-android-x86_64 bash
docker cp $(FLAVOUR)-android-x86_64:/opt/android/prefix/lib/. x86_64
docker cp $(FLAVOUR)-android-x86_64:/src/build/release/lib/. x86_64/$(FLAVOUR)
2021-04-22 12:17:02 -06:00
include/wallet2_api.h: $(FLAVOUR) include $(FLAVOUR)/src/wallet/api/wallet2_api.h
cp $(FLAVOUR)/src/wallet/api/wallet2_api.h include/wallet2_api.h
2021-04-22 12:17:02 -06:00
include:
mkdir include
VERSION:
2021-04-22 12:17:02 -06:00
echo MONERUJO_$(FLAVOUR) `git -C . branch | grep "^\*" | sed 's/^..//'` with $(FLAVOUR) `git -C $(FLAVOUR) branch | grep "^\*" | sed 's/^..//'` > VERSION
clean:
-rm -rf arm64-v8a
-rm -rf x86_64
-rm -rf include
-rm -f VERSION
distclean: clean
2021-04-22 10:45:21 -06:00
-docker container rm $(FLAVOUR)-android-arm64 -f
-docker container rm $(FLAVOUR)-android-x86_64 -f
-docker image rm $(FLAVOUR)-android-arm64 -f
-docker image rm $(FLAVOUR)-android-x86_64 -f
-rm $(FLAVOUR)
2021-04-22 10:45:21 -06:00
$(FLAVOUR):
$(error Please ln -s $(FLAVOUR))
2021-04-22 10:45:21 -06:00
.PHONY: all clean distclean