2024-09-08 11:30:36 +00:00
|
|
|
NPROC=16
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-10-05 11:41:09 +00:00
|
|
|
all: arm64-v8a armeabi-v7a x86_64 include/wallet2_api.h
|
|
|
|
debug: arm64-v8a armeabi-v7a include/wallet2_api.h
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-10-05 11:41:09 +00:00
|
|
|
arm64-v8a: monero android64.Containerfile
|
2022-09-07 19:31:20 +00:00
|
|
|
-rm -rf arm64-v8a
|
2024-10-05 11:41:09 +00:00
|
|
|
-podman container rm monero-android-arm64 -f
|
|
|
|
podman build -f android64.Containerfile -t monero-android-arm64 monero --build-arg NPROC=$(NPROC)
|
|
|
|
podman create -it --name monero-android-arm64 monero-android-arm64 bash
|
2024-09-08 11:30:36 +00:00
|
|
|
mkdir arm64-v8a
|
2024-10-05 11:41:09 +00:00
|
|
|
podman cp monero-android-arm64:/opt/android/prefix/lib/. arm64-v8a/
|
|
|
|
podman cp monero-android-arm64:/src/build/release/lib/. arm64-v8a/monero
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-10-05 11:41:09 +00:00
|
|
|
armeabi-v7a: monero android32.Containerfile
|
2022-09-07 19:31:20 +00:00
|
|
|
-rm -rf armeabi-v7a
|
2024-10-05 11:41:09 +00:00
|
|
|
-podman container rm monero-android-arm32 -f
|
|
|
|
podman build -f android32.Containerfile -t monero-android-arm32 monero --build-arg NPROC=$(NPROC)
|
|
|
|
podman create -it --name monero-android-arm32 monero-android-arm32 bash
|
2024-09-08 11:30:36 +00:00
|
|
|
mkdir armeabi-v7a
|
2024-10-05 11:41:09 +00:00
|
|
|
podman cp monero-android-arm32:/opt/android/prefix/lib/. armeabi-v7a
|
|
|
|
podman cp monero-android-arm32:/src/build/release/lib/. armeabi-v7a/monero
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-10-05 11:41:09 +00:00
|
|
|
x86_64: monero android64_x86.Containerfile
|
2022-09-07 19:31:20 +00:00
|
|
|
-rm -rf x86_64
|
2024-10-05 11:41:09 +00:00
|
|
|
-podman container rm monero-android-x86_64 -f
|
|
|
|
podman build -f android64_x86.Containerfile -t monero-android-x86_64 monero --build-arg NPROC=$(NPROC)
|
|
|
|
podman create -it --name monero-android-x86_64 monero-android-x86_64 bash
|
2024-09-08 11:30:36 +00:00
|
|
|
mkdir x86_64
|
2024-10-05 11:41:09 +00:00
|
|
|
podman cp monero-android-x86_64:/opt/android/prefix/lib/. x86_64
|
|
|
|
podman cp monero-android-x86_64:/src/build/release/lib/. x86_64/monero
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-10-05 11:41:09 +00:00
|
|
|
x86: monero android32_x86.Containerfile
|
2022-09-07 19:31:20 +00:00
|
|
|
-rm -rf x86
|
2024-10-05 11:41:09 +00:00
|
|
|
-podman container rm monero-android-x86 -f
|
|
|
|
podman build -f android32_x86.Containerfile -t monero-android-x86 monero --build-arg NPROC=$(NPROC)
|
|
|
|
podman create -it --name monero-android-x86 monero-android-x86 bash
|
2024-09-08 11:30:36 +00:00
|
|
|
mkdir x86
|
2024-10-05 11:41:09 +00:00
|
|
|
podman cp monero-android-x86:/opt/android/prefix/lib/. x86
|
|
|
|
podman cp monero-android-x86:/src/build/release/lib/. x86/monero
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-10-05 11:41:09 +00:00
|
|
|
include/wallet2_api.h: monero include monero/src/wallet/api/wallet2_api.h
|
|
|
|
cp monero/src/wallet/api/wallet2_api.h include/wallet2_api.h
|
2022-09-07 19:31:20 +00:00
|
|
|
|
|
|
|
include:
|
|
|
|
mkdir include
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -rf arm64-v8a
|
|
|
|
-rm -rf armeabi-v7a
|
|
|
|
-rm -rf x86_64
|
|
|
|
-rm -rf x86
|
|
|
|
-rm -rf include
|
|
|
|
-rm -f VERSION
|
|
|
|
|
|
|
|
distclean: clean
|
2024-10-05 11:41:09 +00:00
|
|
|
-podman container rm monero-android-arm64 -f
|
|
|
|
-podman container rm monero-android-arm32 -f
|
|
|
|
-podman container rm monero-android-x86_64 -f
|
|
|
|
-podman container rm monero-android-x86 -f
|
|
|
|
-podman image rm monero-android-arm64 -f
|
|
|
|
-podman image rm monero-android-arm32 -f
|
|
|
|
-podman image rm monero-android-x86_64 -f
|
|
|
|
-podman image rm monero-android-x86 -f
|
2022-09-07 19:31:20 +00:00
|
|
|
|
2024-09-08 11:30:36 +00:00
|
|
|
.PHONY: all clean distclean
|