v8 engine編譯javascript
v8 Engine 用來編譯javascript ,chrome 瀏覽器就是使用該引擎, v8引擎是獨立模塊,c++能夠嵌入js腳本並執行html
v8
svn checkout http://v8.googlecode.com/svn/branches/bleeding_edge/ v8java
python
svn co http://src.chromium.org/svn/trunk/tools/thirdparty/python26@89111 thirdparty/python26python
cygwin
svn co http://src.chromium.org/svn/trunk/deps/thirdparty/cygwin@231940 thirdparty/cygwinc++
icu
svn co https://src.chromium.org/chrome/trunk/deps/thirdparty/icu46 thirdparty/icugit
gyp
svn co http://gyp.googlecode.com/svn/trunk build/gypgithub
- 把下載後的
third_party
拷貝到v8目錄下,設置python的環境變量,方便直接調用python命令- cd 到v8目錄下,執行命令
python build\gyp_v8
生成工程文件- "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" /build Release build\All.sln
使用vs2010打開All.sln編譯好的工程,能夠進行調試,設置啓動項爲 sample/shell,運行shell print('hello world!');web