背景
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