You need to set up some environment variables and pass some args into
scons to get v8 to build for android. Also, from what I've seen, you
also need to have the android platform on your machine. I'm sure you
can work around it but I haven't gotten to it yet.

To build I am using a script with this  (totally stolen from another
thread):

export TOP=<location of android platform>
export NDK=<location of android NDK r4>/build/prebuilt/darwin-x86/arm-
eabi-4.4.0
(notice it says darwin, that's because I'm on mac, it's different for
others)
export AR=$NDK/bin/arm-eabi-ar
export CXX=$NDK/bin/arm-eabi-g++
export RANLIB=$NDK/bin/arm-eabi-ranlib
export CC=$NDK/bin/arm-eabi-gcc

scons mode=debug snapshot=off library=static importenv=TOP arch=arm
os=android

This, along with a few minor source changes, will build and link v8. I
can run scripts with it, but running javascript (native or local)
functions is currently failing for me.


On May 11, 10:31 am, Shooting <[email protected]> wrote:
> Hi all
> I'm new to this javascript engine. I just heard thatAndroid2.0
> already uses V8 in its webkit. So suppose V8 can build under NDK. The
> question is how to do that? Seems we don't have direct option in V8
> project to build a standalone V8 binary forandroid?
>
> --
> v8-users mailing list
> [email protected]http://groups.google.com/group/v8-users

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to