Hi,

The basic support for building Boost for Android comes from: https://github.com/MysticTreeGames/Boost-for-Android/
This contains a script that downloads boost, patches it (creating android.jam) and then builds it. I've attached android.jam. The script is meant to build  Boost for Android on ARM, I changed the user-config.jam a litle to allow it to build for Android on x86.

Thanks,
Shlomy

On Fri, Aug 5, 2011 at 12:32 PM, Jürgen Hunold <juergen.hunold@ivembh.de> wrote:
Hi Shlomy,

On Friday, 5. August 2011 11:09:41 Shlomy Reinstein wrote:
> I tried to use <include> in the jam file, as part of the toolset
> definition, but it didn't work - maybe I didn't do it correctly.

That may be a bug in the toolset definition

> Here's
> how I tried to do it:
>
> using android : x86 :
> $(NDK_PATH)/toolchains/x86-4.4.3/prebuilt/linux-x86/i686-android-linux/bin
> /c++ :
> <archiver>$(NDK_PATH)/toolchains/x86-4.4.3/prebuilt/linux-x86/i686-android
> -linux/bin/ar <include>$(NDK_PATH)/platforms/android-9/arch-x86/usr/include
> ...

I've just checked and found no "android.jam" in Boost.Build trunk.  So this
seems to come from somewhere else. Please attach a copy /link for further
diagnosis.
Maybe we can even add it to Boost.Build.

> But the <include> directive was ignored - the include directory did not
> appear in the compilation. Should it be placed outside the toolset
> definition (maybe above it)?

No, the place is right.

> It works fine when I provide it on the bjam command line using "include=",
> but since this include path must be specified whenever I use this toolset,
> I'd like it to be specified as part of the toolset.

As all other toolset provide this, this is reasonably.

Hope this helps,

Yours,

Jürgen
--
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold@ivembh.de        ! www.ivembh.de
*
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost-build