Thanks for the inquiry on sharing your Android proton work. Please
open a Jira (of type "improvement") and attach a relevant patch.
You can leave it in rough form and I can try taking it from there, or
you can scrub it up, put a bow on it, and submit directly to review
As you put together your patch, consider some of the following:, if
you used third party helpers for uuid, ssl, or other functionality on
Android, please check that the licenses appear compatible with the
Apache license. Also see if you can find some cmake find_package
script that might automagically find an android ndk in a standard
location (if there is such a thing). And if you have some sort of
push button test program that could be run on an Android device to
check out a release, that would be great (perhaps msgr-send as a
Thanks very much.
On Fri, Jun 13, 2014 at 1:23 PM, Jimmy Campbell <t-jic...@microsoft.com> wrote:
> Hello all,
> I recently took it upon myself to get proton-c working with android. I ended
> up being successful in my endeavor. It took me a couple weeks to get it
> working but I have put in some effort to make the process straightforward.
> The bulk of the work did not involve many changes to proton-c code, as it was
> mostly focused on getting the library to build for android. I did have to
> change a couple lines of code in driver.c, (getprotobyname doesn't work). My
> method utilizes the android build system 'ndk-build' and the swig bindings
> produced from proton 0.6. Because of the lack of swig bindings in proton-c
> 0.7 I have not used this version on android. I have been able to successfully
> create apps and upload them to my phone for sending and receiving messages
> with proton-c.
> This was not a straightforward process, but with the work I've done it's easy
> to build proton-c targeting ARM and other android architectures. I have a
> folder with a readme that lists the instructions for building the proton-c
> library targeting android architectures and all it involves is downloading
> the ndk, and calling 'ndk-build' three times in three different folders.
> I was wondering how I can contribute this to the proton project? It would be
> really cool if my work could somehow be included into the build system for
> proton so that with a simple option the ARM architecture libraries could be
> created alongside the normal build targets.
> For example I envision something along the lines of:
> cmake -DCMAKE_INSTALL_PREFIX=/usr -DINCLUDE_ANDROID ..