<div class="gmail_quote">On 28 January 2012 19:03, H. S. Teoh <span dir="ltr"><<a href="mailto:hsteoh@quickfur.ath.cx">hsteoh@quickfur.ath.cx</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Jan 28, 2012 at 06:42:14PM +0200, Manu wrote:<br>
> On 28 January 2012 18:19, H. S. Teoh <<a href="mailto:hsteoh@quickfur.ath.cx">hsteoh@quickfur.ath.cx</a>> wrote:<br>
</div>[...]<br>
<div class="im">> > As far as I know, gdc can already produce ARM code since it uses the<br>
> > gcc backend. All we need now is a nice native D interface to the<br>
> > Android libraries, and I'll be a very very happy man.<br>
><br>
> Libraries are the easy part. If you can make a build-script that 'just<br>
> works' for the average man, and perhaps also mingw binaries for the<br>
> Win users, I think progress in this area will explode almost<br>
> instantly.<br>
<br>
</div>OK, what do you mean by "just works"? What is needed to in the script?<br>
I'll admit I haven't really looked too closely at the Android docs yet,<br>
but shouldn't it just be a matter of compiling your D sources with gdc<br>
as usual, and then link it with a particular set of libraries?<br></blockquote><div><br></div><div>Just build with GDC as usual, and link with the Android NDK libs (we'll obviously need D bindings). They're distributes as binaries with each revision of the Android NDK.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Well, OK, so you do need to setup an ARM cross-compiler, so you'll need<br>
either to build gdc/gcc yourself (ugh) or have someone provide the<br>
binaries. What else?</blockquote><div><br></div><div>That's enough. A script to fully automate building the Android toolchain, and ideally, a set of mingw binaries put on the web somewhere.</div><div>Google have instructions to build the toolchain on the Android developer website, they provide a nice set of scripts to do it on linux... It should just be a matter of patching GDC support into their script and letting it do its thing.</div>
<div><br></div><div>The rest can be left to the community, ie. druntime, making bindings for the NDK libraries (binaries are provided in the NDK distro). I'm sure that'll take care of its self within short time.</div>
</div>