Skip to content
The patches and revision of v8 we use in Titanium Mobile
Find file
New pull request

This is where we store the patches and revision of the v8 repository that we use in the Android port of Titanium Mobile. Build Status

To build V8, you'll need:

  • Android NDK r10e

Build V8 for Android against the NDK:

$ ./ -n /path/to/android-ndk


$ export ANDROID_NDK=/path/to/android-ndk
$ ./

To publish V8 to S3, you'll need s3cmd:

The Whole Shebang

# Apply our patches to v8
git apply 0001-Fix-cross-compilation-for-Android-from-a-Mac.patch
git apply 0002-Create-standalone-static-libs.patch

# Install Android NDK
chmod a+x android-ndk-r10e-linux-x86.bin
export ANDROID_NDK=${PWD}/android-ndk-r10e

# Download s3cmd
tar -xzf s3cmd-1.6.0.tar.gz
export PATH=${PWD}/android-ndk-r10e

# Configure s3cmd
s3cmd --configure

# build v8 for ARM, and then x86
./ -n /path/to/android-ndk-r10e -j16 
./ -n /path/to/android-ndk-r10e -j16 -l ia32

# Generate a tarball to publish
./ -t

# Publish
./ build/release/libv8-4.8.154-release.tar.bz2

Full usage:

$ ./ -h
Usage: ./ options

This script builds v8 against the Android NDK. 
    -h              Show this help message and exit
    -n <ndk_dir>    The path to the Android NDK. Alternatively, you may set the ANDROID_NDK environment variable
    -j <num-cpus>   The number of processors to use in building (passed on to scons)
    -m <mode>       The v8 build mode (release, debug. default: release)
    -t              Build a thirdparty tarball for uploading

Note: This build is designed to work on a 32-bit Linux. If you wish to install it on a 64-bit version, you would need to install 32-bit libraries:

sudo apt-get -y install gcc-multilib g++-multilib

Something went wrong with that request. Please try again.