javascript engine:V8 之编译V8

一:下载V8

javascript engine:V8 之编译V8
 
javascript engine:V8 之编译V8
 
javascript engine:V8 之编译V8
 
javascript engine:V8 之编译V8
 
javascript engine:V8 之编译V8
 2:下载并安装Python相关

1:安装Python2.7.5;

2:从http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe#md5=57e1e64f6b7c7f1d2eddfc9746bbaf20下载setuptools并安装。进入Python\Scripts,运行easy_install  virtualenv; 
javascript engine:V8 之编译V8
 3:将Python和Python\Scripts加环境变量;

javascript engine:V8 之编译V8
 三:下载并安装GYP:

 

1:下载GYP

javascript engine:V8 之编译V8
javascript engine:V8 之编译V8
javascript engine:V8 之编译V8

2:解压缩

javascript engine:V8 之编译V8
 三:安装cygwin

在Google搜索 chromium cygwin git
javascript engine:V8 之编译V8
javascript engine:V8 之编译V8
 
javascript engine:V8 之编译V8
 放到v8\third_party\cygwin下

javascript engine:V8 之编译V8
 四:安装icu46

1:介绍icu46的页面是https://src.chromium.org/chrome/trunk/deps/third_party/icu46/,提供svn下载,但是太慢,有时把source/i18n下载不到

javascript engine:V8 之编译V8
 在Google中搜索chroomium icu46,下载
javascript engine:V8 之编译V8

javascript engine:V8 之编译V8
 
javascript engine:V8 之编译V8
 2:解压缩到v8\third_party\icu目录下


javascript engine:V8 之编译V8
 五:安装V8

1:在V8目录中编译:python build\gyp_v8
javascript engine:V8 之编译V8
2:用vs2010打开生成的vs工程
javascript engine:V8 之编译V8
3:编译。
javascript engine:V8 之编译V8
至此,V8的编译已经完成。编译成功的标志是:vs2010提示15个成功,0个失败;并且相应目录生成上图所示.lib静态库文件。

六:致谢

http://blog.csdn.net/wap1981314/article/details/12110973

Google

相关推荐