Skip to content

drelaptop/cocos2d-v8

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

v8 build

this repo is a mirror of v8/build module, with some custom behavior, for cocos2d-x-lite use a specific release of v8 engine.

Steps

  1. clone v8 repo, you can refer to v8 official docs

  2. find a release you want to build

    • re-compile only one platform, you can find the version in v8 header v8-version.h located at external.

      #define V8_MAJOR_VERSION 6
      
    • upgrade v8 engine, please select a version that latest stable chrome used. you can refer to wiki/Version-numbers

  3. follow the official docs, sync related sources. and then switch to version tag you want, for example 6.0.286.52. execute gclient sync again after checkout version tag, this will reset related repo to corresponding commit.

  4. run the custom shell script build-android.sh, you will get finally libs and headers in the v8/dist-android directory.

Tips

  1. don't need to execute the script below in wiki/D8-on-Android

    v8$ echo "target_os = ['android']" >> ../.gclient && gclient sync --nohooks
    

    it will download NDK & SDK, spend much time, and no benific if you have NDK already.

  2. build v8 using clang, you can refer to chromium/clang.md to know some build parameters.

Links

v8 repo

v8 project

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.7%
  • Shell 8.8%
  • Java 2.6%
  • C++ 1.8%
  • HTML 0.6%
  • JavaScript 0.4%
  • Other 0.1%