What is the command line to build V8 for Android using the latest GYP build system? I'm trying to do this on OS X.I've seen multiple references to people doing this and that fact that it's possible, but I haven't found any documentation for what args need to be passed to make.
Thanks!matt--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
On Wed, Dec 7, 2011 at 16:59, Matt Seegmiller <ma...@muzzylane.com> wrote:What is the command line to build V8 for Android using the latest GYP build system? I'm trying to do this on OS X.I've seen multiple references to people doing this and that fact that it's possible, but I haven't found any documentation for what args need to be passed to make.There's no official way to do that yet. Some of us have hacky experimental patches on our hard drives that we're playing around with. Eventually something will be committed, but we're not there yet and it doesn't have terribly high priority.
Using the build script wrapper in there, that sets up an NDK toolchain and then builds using scons, I was able to compile V8 for Android successfully. Is there any gotcha with this method of building V8 for Android I should watch out for? Also, are there any gotchas of using V8 on Android that I should be aware of in general?
That's a nice find. I like their build setup. I gotta say I'm surprised, though, that it works at all with what little patching they're doing :-)If you have time, I'd be very interested in what the optimal GCC compiler flags are for building for ARM/Android. There might be a few percent of performance to gain by carefully selecting optimization flags.
Using the build script wrapper in there, that sets up an NDK toolchain and then builds using scons, I was able to compile V8 for Android successfully. Is there any gotcha with this method of building V8 for Android I should watch out for? Also, are there any gotchas of using V8 on Android that I should be aware of in general?If it compiles and runs, it seems you've successfully evaded any gotchas.One thing to be aware of is that the SCons based build is on its way out. By the time we actually delete the SConstruct files, however, the gyp/make based build should provide similarly comfortable support for building for Android, so it shouldn't be much of a hassle for any downstream projects to switch. (ETA for this is unknown, I was hoping Q4, but that's out of the question by now. There'll be plenty of warning.)