(源)V8 Engine 编译

v8 engine编译

V8 Engine 编译


概述

v8 Engine 用来编译javascript ,chrome 浏览器就是使用该引擎, v8引擎是独立模块,c++可以嵌入js脚本并执行

windows下编译

1.工具

v8

svn checkout http://v8.googlecode.com/svn/branches/bleeding_edge/ v8

python

svn co http://src.chromium.org/svn/trunk/tools/thirdparty/python26@89111 thirdparty/python26

cygwin

svn co http://src.chromium.org/svn/trunk/deps/thirdparty/cygwin@231940 thirdparty/cygwin

icu

svn co https://src.chromium.org/chrome/trunk/deps/thirdparty/icu46 thirdparty/icu

gyp

svn co http://gyp.googlecode.com/svn/trunk build/gyp

2.编译步骤

  1. 把下载后的third_party拷贝到v8目录下,设置python的环境变量,方便直接调用python命令
  2. cd 到v8目录下,执行命令python build\gyp_v8 生成工程文件
  3. "c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.com" /build Release build\All.sln

3.调试步骤

使用vs2010打开All.sln编译好的工程,可以进行调试,设置启动项为 sample/shell,运行shell print('hello world!');

4.参考资料

 

转载于:https://www.cnblogs.com/fjchenqian/p/3674465.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值