Commit graph

29 commits

Author SHA1 Message Date
link2xt
2c49febc92 Move ndk-make.sh to scripts/
Keep symlink for backwards compatibility.
2022-08-14 17:46:03 +00:00
link2xt
6ac1984f7c ndk-make.sh: use full path to ndk-build
Remove the requirement to have ndk-build in the PATH.
2022-08-14 17:46:03 +00:00
link2xt
e18c08bc97 ndk-make.sh: error out if ANDROID_NDK_ROOT is not set 2022-08-14 17:46:03 +00:00
link2xt
2a5efba763 Pass APP_ABI to ndk-build instead of creating temporary Application.mk
It's simpler and stores objects inside obj/ in-tree,
preventing unnecessary rebuilds.
2022-07-06 00:00:00 +00:00
link2xt
3b33880fcc ndk-make.sh: do not modify in-tree Application.mk
Use temporary Application.mk directly via NDK_APPLICATION_MK option.
2022-07-03 09:25:16 +00:00
link2xt
b1e6b85764 ndk-make.sh: only add fake libgcc.a if the real one is not found 2022-05-28 17:58:19 +00:00
link2xt
af772762ef Update to Android NDK r23c
Android NDK is updated from legacy ndk-bundle stuck at unsupported
r22b to LTS NDK r23c (23.2.8568313).

Since GNU binutils have been removed from NDK since r23 (see
https://github.com/android/ndk/wiki/Changelog-r23), ndk-make.sh now
uses TARGET_AR=llvm-ar and uses a workaround for `-lgcc` requirement.

Android command line tools used in the Dockerfile are updated to build
8512546

Preview APKs now use NDK r23c too.
2022-05-28 16:11:11 +00:00
Hocuri
f4c39273a5
Make ndk-make.sh debug builds (for just one arch) more usable (#2173)
Debug builds of the core (like `ndk-make.sh arm64-v8a`) take about a minute, while
a release bulid (`ndk-make.sh`) takes about 15 minutes.

But as most people seem not to use debug builds regularly because
they are tricky to use, here comes an improvement :) If you gave the wrong argument to `ndk-make.sh`, a warning dialog will now pop up inside the app, telling you what you did wrong and what you should do instead.

`ndk-make.sh` writes its argument into the file `ndkArch`.
`getNdkArch()` in `build.gradle` then reads this file and its content is assigned to
`BuildConfig.NDK_ARCH`. `checkNdkArchitecture()` then checks this.
2021-12-18 15:57:50 +01:00
Simon Laux
cb84872957
fix that ndk make didn't work with symlinked core (#2139)
* fix that ndk make didn't work with symlinked core

* Use $PWD instead of $(pwd)

Co-authored-by: Hocuri <hocuri@gmx.de>
2021-11-23 11:37:51 +01:00
Alexander Krotov
7d7f93939f ndk-make.sh: use environment variable to control LTO 2020-11-14 21:30:22 +03:00
Alexander Krotov
18a19f98b6 Refactor ndk-make.sh 2020-11-03 02:28:36 +03:00
Alexander Krotov
3b4ed28269 Add scripts/install-toolchains.sh 2020-10-21 14:02:57 +03:00
B. Petersen
335458cbcf
set lto=true for deltachat-core 2020-07-28 16:59:02 +02:00
Hocuri
4b340f1b46
Put it in ndk-make-fast.sh 2020-06-17 10:20:34 +02:00
Hocuri
b6c49f67f5
You won't believe how this makes the compilation 4x faster!
Sorry for the click-bait title, but it fitted too well ;-)

Anyway, I added the possibility to ndk-make.sh to compile only for one
arch.

In my tests, if I also set the optimisation level to 0 (default is 3),
the compilation time went down from 3:30 to 1:20. Not sure if this is
worth it because I remember a comment stating that this makes generating
keys take forever. Maybe I should do some measurements and experiment
with levels 1 and 2 but that's for another PR.

What do you think?
2020-06-16 20:50:11 +02:00
B. Petersen
c5cc6c609b
really use the toolchain defined in the core-rust-submodule 2020-05-23 16:08:31 +02:00
B. Petersen
d8b88ac4e4
clarify that newer ndk versions will likely work 2020-05-11 14:01:36 +02:00
B. Petersen
90425f7710
lower sdk to 16 2020-01-27 09:39:13 +01:00
Angelo Fuchs
bef2898900
fixing unexpected failure when rm does not find a file. 2019-12-27 17:12:26 +01:00
Angelo Fuchs
c2ec093542
added comment with minimum required ndk 2019-12-27 15:38:37 +01:00
cyberta
1b680ba190 fix builds for MacOSX Catalina. CPATH needs to be set in order to compile deltachat iOS whareas deltachat android builds fail if CPATH is set 2019-12-17 13:27:22 +01:00
B. Petersen
546a5dfbb3
support sdk20-18 (android4.4-4.3, kitkat and partly jelly bean) 2019-11-14 20:52:36 +01:00
B. Petersen
638a8e5205
adapt to ndk r20b 2019-11-14 20:47:26 +01:00
B. Petersen
fc6a19e0a7
echo starting/ending time in ndk-make.sh 2019-10-30 16:46:05 +01:00
B. Petersen
3d56bf6601
reorder ndk-make.sh script 2019-10-11 17:10:15 +02:00
B. Petersen
28d6d10c0b
tweak ndk-make 2019-10-05 18:35:00 +02:00
B. Petersen
2d8db42ded
add x86_64 target 2019-10-02 21:50:16 +02:00
B. Petersen
baf9357840
switch rust-linker to clang 2019-10-02 20:52:58 +02:00
B. Petersen
a728ef8200
add script to build dcc-rs for arm64-v8a, armeabi-v7a, x86; remove armeabi 2019-06-08 17:42:13 +02:00