xmrwallet/external-libs/Makefile

69 lines
2.6 KiB
Makefile
Raw Normal View History

2021-04-22 12:17:02 -06:00
FLAVOUR = monero
2021-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
all: arm64-v8a armeabi-v7a x86_64 x86 include/wallet2_api.h VERSION
2021-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
arm64-v8a: $(FLAVOUR) android64.Dockerfile
2021-02-19 08:31:35 -07:00
-rm -rf arm64-v8a
2021-04-22 12:17:02 -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/
docker cp $(FLAVOUR)-android-arm64:/src/build/release/lib/. arm64-v8a/$(FLAVOUR)
2021-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
armeabi-v7a: $(FLAVOUR) android32.Dockerfile
2021-02-19 08:31:35 -07:00
-rm -rf armeabi-v7a
2021-04-22 12:17:02 -06:00
-docker container rm $(FLAVOUR)-android-arm32 -f
docker build -f android32.Dockerfile -t $(FLAVOUR)-android-arm32 $(FLAVOUR)
docker create -it --name $(FLAVOUR)-android-arm32 $(FLAVOUR)-android-arm32 bash
docker cp $(FLAVOUR)-android-arm32:/opt/android/prefix/lib/. armeabi-v7a
docker cp $(FLAVOUR)-android-arm32:/src/build/release/lib/. armeabi-v7a/$(FLAVOUR)
2021-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
x86_64: $(FLAVOUR) android64_x86.Dockerfile
2021-02-19 08:31:35 -07:00
-rm -rf x86_64
2021-04-22 12:17:02 -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-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
x86: $(FLAVOUR) android32_x86.Dockerfile
2021-02-19 08:31:35 -07:00
-rm -rf x86
2021-04-22 12:17:02 -06:00
-docker container rm $(FLAVOUR)-android-x86 -f
docker build -f android32_x86.Dockerfile -t $(FLAVOUR)-android-x86 $(FLAVOUR)
docker create -it --name $(FLAVOUR)-android-x86 $(FLAVOUR)-android-x86 bash
docker cp $(FLAVOUR)-android-x86:/opt/android/prefix/lib/. x86
docker cp $(FLAVOUR)-android-x86:/src/build/release/lib/. x86/$(FLAVOUR)
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-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
include:
mkdir include
2021-02-19 08:31:35 -07:00
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
2018-09-27 10:24:22 -06:00
clean:
2021-02-19 08:31:35 -07:00
-rm -rf arm64-v8a
-rm -rf armeabi-v7a
-rm -rf x86_64
-rm -rf x86
-rm -rf include
-rm -f VERSION
2018-09-27 10:24:22 -06:00
distclean: clean
2021-04-22 12:17:02 -06:00
-docker container rm $(FLAVOUR)-android-arm64 -f
-docker container rm $(FLAVOUR)-android-arm32 -f
-docker container rm $(FLAVOUR)-android-x86_64 -f
-docker container rm $(FLAVOUR)-android-x86 -f
-docker image rm $(FLAVOUR)-android-arm64 -f
-docker image rm $(FLAVOUR)-android-arm32 -f
-docker image rm $(FLAVOUR)-android-x86_64 -f
-docker image rm $(FLAVOUR)-android-x86 -f
-rm $(FLAVOUR)
2021-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
$(FLAVOUR):
$(error Please ln -s $(FLAVOUR))
2021-02-19 08:31:35 -07:00
2021-04-22 12:17:02 -06:00
.PHONY: all clean distclean