xmrwallet/external-libs/Makefile

71 lines
2.8 KiB
Makefile
Raw Normal View History

2021-04-22 12:17:02 -06:00
FLAVOUR = monero
2024-08-13 09:28:04 -06:00
NPROC=16
2021-02-19 08:31:35 -07:00
2024-08-13 09:28:04 -06:00
all: arm64-v8a armeabi-v7a x86_64 include/wallet2_api.h VERSION
debug: arm64-v8a armeabi-v7a 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
2024-08-13 09:28:04 -06:00
docker build -f android64.Dockerfile -t $(FLAVOUR)-android-arm64 $(FLAVOUR) --build-arg NPROC=$(NPROC)
2021-04-22 12:17:02 -06:00
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
2024-08-13 09:28:04 -06:00
docker build -f android32.Dockerfile -t $(FLAVOUR)-android-arm32 $(FLAVOUR) --build-arg NPROC=$(NPROC)
2021-04-22 12:17:02 -06:00
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
2024-08-13 09:28:04 -06:00
docker build -f android64_x86.Dockerfile -t $(FLAVOUR)-android-x86_64 $(FLAVOUR) --build-arg NPROC=$(NPROC)
2021-04-22 12:17:02 -06:00
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
2024-08-13 09:28:04 -06:00
docker build -f android32_x86.Dockerfile -t $(FLAVOUR)-android-x86 $(FLAVOUR) --build-arg NPROC=$(NPROC)
2021-04-22 12:17:02 -06:00
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