android编译v8引擎,V8引擎 Android库构建

强烈推荐大家在linux系统下构建v8引擎,如果您喜欢折腾,非要使用MAC,可参考这篇文章,可以帮您更快速上手MAC 下 V8 Android编译指墙。

Checking out the V8 source code

方案一

在国内需要做以下配置是关键,其余部分请参考这篇文章V8环境搭建,100%成功版

git config --global http.proxy http://ip:port

export http_proxy="http://ip:port/"

export https_proxy=$http_proxy

方案二

直接买海外的ubuntu服务器,同步完代码后打成zip包下载到本地。可能需花费10$。

我是用的方案二。

ubuntu系统

1. 首先使用v8gen.py命令生成arg.gn文件

./tools/dev/v8gen.py android.arm.release

2. v8gen.py 支持的list可以用list参数查看

./tools/dev/v8gen.py list

android.arm.debug

android.arm.optdebug

android.arm.release

//...

3.修改 out.gn/android.arm.release/args.gn

“v8_monolithic = true ”是将所有的静态库打到一个.a里边

arm

v8_use_snapshot = false

v8_monolithic = true

v8_static_library = true

android_unstripped_runtime_outputs = false

is_component_build = false

is_debug = false

target_cpu = "arm"

target_os = "android"

v8_android_log_stdout = true

arm64

v8_target_cpu = "arm64"

v8_use_snapshot = false

v8_monolithic = true

v8_static_library = true

android_unstripped_runtime_outputs = false

is_component_build = false

is_debug = false

target_cpu = "arm64"

target_os = "android"

v8_android_log_stdout = true

本文记录得比较简单一些,有问题可以留言交流。

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值