I give up! Android and ldc

Joakim dlang at joakim.fea.st
Mon Nov 20 03:13:29 UTC 2017


On Sunday, 19 November 2017 at 23:10:23 UTC, Indigo wrote:
> Seems too much of a mess. Why can't I just download the arm 
> libs or have a batch file to compile them from git and then 
> simply invoke ldc easily? Maybe Visual D needs to add support 
> for android?

How far did you get?

Rather than have a batch file, we have a small D binary tool, 
ldc-build-runtime, which invokes ldc for you:

https://wiki.dlang.org/Building_LDC_runtime_libraries
https://wiki.dlang.org/Build_D_for_Android

As for downloading prebuilt ARM libs, we chose to try to make it 
easy for you to generate them yourself, rather than putting up a 
bunch of libraries for every platform we support, from 
Android/ARM to linux/PowerPC.  Unfortunately, that means reusing 
our existing CMake/Make/Ninja build process, which I'm not too 
happy with.

I'd like to move to dub, so that no external build tools are 
required, but that means making dub work for cross-compilation 
and writing dub files for druntime and phobos.  Maybe not too 
much work, but I haven't looked into it.

It would be nice if Visual D supported Android cross-compilation, 
but I don't know if its developer has any plans to do so.


More information about the digitalmars-d-ldc mailing list