Sascha Bacardit
2fffb966d5
PEMA-103
Fixed small typo, while 1.60.0 vs 1.60 shouldn't change anything, this is mostly for the sake of completionism and clean code.
3 years ago
Sascha Bacardit
a191ea2986
PEMA-103
Fixed Cargo's compile arguments, added crate commands to create a .so, will review them later to see if I require "lib".
Commented the compile only for device arch as it is slightly buggy on emulator.
3 years ago
Sascha Bacardit
5ba924dab2
PEMA-103
Added Cargo.toml, mostly to generate a static lib so we don't have to link.
Moved libuuid to static lib as it should be.
TODO: Update MakefileTemplate to reflect these changes.
3 years ago
ignaciogarcia
1b0c5dffa0
PEMA-103 Replace sequoia with pEpEngineSequoiaBackend
3 years ago
ignaciogarcia
189514a507
PEMA-107 Add Makefile help and colors
Ignore errors in non-essential recipes.
3 years ago
ignaciogarcia
c9bd25ac39
PEMA-107 Do not use phony targets as prerequisites
If we do that, the rule will always run. Instead we need to use real files as prerequisites.
Reference: https://www.gnu.org/software/make/manual/make.html#Phony-Targets :
"A phony target should not be a prerequisite of a real target file; if it is, its recipe will be run every time make goes to update that file."
3 years ago
ignaciogarcia
b430f7369b
PEMA-107 Improve showsetup clarity
3 years ago
ignaciogarcia
5573f86809
PEMA-107 Add PerArchMakefile.conf
This file is meant to hold common variables for *only* architectures' Makefiles.
Organize Makefile.conf.
3 years ago
ignaciogarcia
abdaba628e
PEMA-107 Remove duplicate ANDROID_API variable
3 years ago
ignaciogarcia
a54a339e03
PEMA-107 Move common variables to Makefile.conf
Done so that we do not need to repeat much generated code.
3 years ago
ignaciogarcia
786d6f9c01
PEMA-107 Use uuid-prebuild instead of uuid-install
Done since uuid-install is not used anywhere, instead we just copy uuid.h file to external/output/arch/include.
3 years ago
ignaciogarcia
2bd70c9b44
PEMA-107 Move some code to Makefile.conf and createMakefile.sh
3 years ago
ignaciogarcia
1b8c820ab0
PEMA-107 Replace sed tag for real variable
3 years ago
ignaciogarcia
a3feba18a9
PEMA-107 Make all -src targets work with a pattern
3 years ago
ignaciogarcia
67f50f311e
PEMA-107 Make all -clean targets work with a pattern (except sequoia-ffi)
3 years ago
ignaciogarcia
0544920675
PEMA-107 Use toolchains installed by default with the NDK
Change binutils tools prefix for arm architecture.
Slightly improve script formatting.
3 years ago
ignaciogarcia
523eb83013
PEMA-107 Create template with common parts for Makefiles
3 years ago
ignaciogarcia
048bb5dc15
PEMA-107 Move uuid patch application to downloads Makefile
3 years ago
ignaciogarcia
3d328f51d9
PEMA-107 Move nettle patches application to downloads Makefile
3 years ago
Sascha Bacardit
009c20f919
Compile changes
Using assorted changes gotten from Huss we've managed to make it work with a few caveats:
-You need to open android studio via the terminal
-Certain libraries (OpenSSL) needed to be updated
-Rust Tool Chain has to be updated
-New NDK is 25, which changes and removes certain things from the per-architecture make files to the general make file (LD, AR, AS, RANLIB, STRIP)
3 years ago
Hussein Kasem
143b8eafa0
JNI-177 Update libetpan to use autoconf and build for current arch
This saves time and space but also requires to drop support for Android <21 (5.0), its fine as now a days android 22 is like 98% of market.
3 years ago
Hussein Kasem
ea179e14dc
JNI-177 Stop using NDK Standalone toolchains.
3 years ago
Hussein Kasem
f31ea6e5e3
Android build: Update sequoia to 1.3.0 and get rid of cargo experimental for the build.
4 years ago
Hussein Kasem
2f715f9f88
Android build: Move from 3.7.3 patch to 3.7.3 release
4 years ago
Hussein Kasem
92b6dc1bd3
Android build: Apply nettle 3.7.3 patch
4 years ago
Hussein Kasem
15b9fe1062
JNI-120 Android build: Update sequoia version and use rust nightly
Currently is needed to use rust nightly to cross-build the latest sequoia version for Android.
Before building again is needed to run, on the build machine:
rustup default nightly
rustup update nightly
rustup component add rust-src
rustup target add aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android
5 years ago
Hussein Kasem
ea5681179d
Android build: Fix untar, use xvf instead of xvfz
6 years ago
Hussein Kasem
c36078e5a1
Android build: Fix libetpan clean
6 years ago
Hussein Kasem
78288a198a
Android build: add PATH
6 years ago
Hussein Kasem
6786a9b0aa
JNI-81: Add missing libetpan clean
6 years ago
Hussein Kasem
a061c3fcf5
JNI-81: Update libetpan build to use output dir and avoid unziping
6 years ago
Hussein Kasem
7210d4ae63
JNI-81 Make can build arm and arm64 concurrently
6 years ago
Hussein Kasem
179fc860eb
JNI-81 Clean android build: Move common to downloads
6 years ago
Hussein Kasem
dc6ee73fdf
JNI-81 Clean Android build: Move all non-git-hosted libs to common Makefile.
6 years ago
Hussein Kasem
96ad4681d1
JNI-81 Clean Android build: Move libuuid download to common Makefile.
6 years ago
Hussein Kasem
4b11f1dbf2
JNI-81 Clean Android build: Move libiconv download to common Makefile.
6 years ago
Hussein Kasem
484c7a4a1f
JNI-81: Arm64 first approach
6 years ago
Hussein Kasem
7bae3ce2dd
JNI-81 Add Makefile for armeabi-v7a and WIP Makefile for arm64-v8a
6 years ago
Hussein Kasem
9456cb696c
Android: Add script calling OpenSSL configure with the right parameters
6 years ago
Hussein Kasem
ab87f2ab88
Fix prerequisite
6 years ago
Hussein Kasem
e7a0cfcffd
Cleanup Makefile: make non file target as order-only prerequisites, touch wget downloaded files.
This prevents libetpan to be always build, saving 1 minutes per build
6 years ago
Hussein Kasem
90381957ca
Fix type and include ndk setup.mk
6 years ago
Hussein Kasem
565bffe71a
Remove unused var
6 years ago
Hussein Kasem
6fac2b8ab3
Fix removed prerequisite
6 years ago
Hussein Kasem
84d3a76ffe
Remove non-existent target from PHONY
6 years ago
Hussein Kasem
a3e977d190
Fix P4A-806: Add patch to remove versioning on Android build
Also some Makefile cleanup
6 years ago
Hussein Kasem
405919dd08
Update android MakeFiles
6 years ago
Hussein Kasem
80f5431587
Cp sequoia include files to install dir
6 years ago
Hussein Kasem
02e975e6a8
Switch to sequoia and update from pEp.* to foundation.*
6 years ago
Hussein Kasem
11c083f6c5
Android: Add libGMP and nettle to the external libs Makefile
6 years ago