编译Android版本Skia

本文详细描述了在Android平台上,如何使用Chrome/m121分支针对arm64架构进行Skia库的编译,包括NDK路径替换和一系列编译选项设置。
摘要由CSDN通过智能技术生成

背景

Android
https://github.com/google/skia
切换到chrome/m121分支
Android m121

编译参数

  • 主要替换ndk path路径
gn gen out/build_arm64

'--args=target_cpu="arm64"

is_debug = false

is_official_build=true

is_component_build=true

ndk="/data/qci/apps/android-sdk-linux/ndk/25.1.8937393"

target_os="android"

target_cpu="arm64"

skia_use_system_expat=false

skia_use_system_libjpeg_turbo=false

skia_use_system_libpng=false

skia_use_system_libwebp=false

skia_use_system_zlib=false

skia_use_sfntly=false

skia_use_system_freetype2=false

skia_pdf_subset_harfbuzz=true

skia_enable_ganesh=true

skia_use_gl=true

skia_enable_gpu=true

skia_enable_skottie=true

skia_use_dng_sdk=false

skia_use_libjpeg_turbo_decode=true

skia_use_libjpeg_turbo_encode=true

skia_use_libpng_decode=true

skia_use_libpng_encode=true

skia_use_libwebp_decode=true

skia_use_libwebp_encode=true

skia_use_wuffs=true

skia_use_lua=false

skia_use_webgl=true

skia_use_piex=true

skia_enable_tools=true

skia_enable_fontmgr_custom_directory=true

skia_enable_fontmgr_custom_embedded=true

skia_enable_fontmgr_custom_empty=true

skia_enable_svg=true

skia_enable_pdf=true

skia_use_expat=true

skia_use_xps=false

skia_use_vulkan=false

skia_enable_discrete_gpu=false

skia_enable_skshaper=true

skia_use_harfbuzz=false

skia_use_icu=false

skia_use_metal=false

extra_cflags_cc=["-frtti", "-fexceptions","-std=c++17"]

extra_cflags=["-gdwarf", "-gsplit-dwarf"]'

arm64位编译

ninja -C out/build_arm64
  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

forevermgg

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值