From a557c058908b3cb7c1bc150a8458c6cec8dac957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Tue, 9 Feb 2021 17:14:56 +0100 Subject: [PATCH] rust-sdk: Add a Makefile to build the bindings and put them into the jni folder --- rust-sdk/Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 rust-sdk/Makefile diff --git a/rust-sdk/Makefile b/rust-sdk/Makefile new file mode 100644 index 0000000000..3d2be7c95b --- /dev/null +++ b/rust-sdk/Makefile @@ -0,0 +1,11 @@ +x86_64: + cargo build --target x86_64-linux-android + install -D target/x86_64-linux-android/debug/libmatrix_crypto.so ../matrix-sdk-android/src/main/jniLibs/x86_64/libuniffi_olm.so + +x86: + cargo build --target i686-linux-android + install -D target/i686-linux-android/debug/libmatrix_crypto.so ../matrix-sdk-android/src/main/jniLibs/x86/libuniffi_olm.so + +aarch64: + cargo build --target aarch64-linux-android + install -D target/aarch64-linux-android/debug/libmatrix_crypto.so ../matrix-sdk-android/src/main/jniLibs/aarch64/libuniffi_olm.so