Skip to content

allenleeok/v8-android-buildscripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version CircleCI

V8 build scripts for React Native Android

The aim of this project is to support V8 runtime for React Native.

Integrate prebuilt V8 library

We publish prebuilt V8 shared libraries at npm. https://www.npmjs.com/package/v8-android

This makes upgrade V8 from React Native easier and is pretty much like what jsc-android-buildscripts did.

To integrate with React Native, please check react-native-v8.

V8 Feature Flags

  1. Single libv8.so file.
  2. Support i18n and JavaScript Intl.
  3. V8 Lite mode (JIT-less mode) for armeabi-v7a, x86, x86_64. Otherwise, arm64-v8a still enables JIT due to mksnapshot issue from V8 internal bug.
  4. Build by Android official NDK r17c which prevent potential ABI incompatible issue to integrate with React Native.

Build Guides

Prerequisites

  • Ubuntu 18.04
  • git + python + nodejs + npm + wget + yarn

Build steps

# Checkout V8 code and install necessary packages
yarn setup

# Build
yarn start

Could further check real build steps for CircleCI from CircleCI Config.

About

V8 build scripts for React Native Android

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 96.2%
  • Dockerfile 3.8%