What are the gn parameters for the official compilation of TrichromeLibrary.apk? 1. TrichromeLibrary.apk compiled by autoninja -C out/Default trichrome_webview_apk will cause SVG misalignment under certain circumstances. The gn args I use are as fol

179 views
Skip to first unread message

mars pluto

unread,
May 19, 2024, 12:52:44 PMMay 19
to Chromium-discuss

1. TrichromeLibrary.apk compiled by autoninja -C out/Default trichrome_webview_apk will cause SVG misalignment under certain circumstances.

The gn args I use are as follows:

target_os = "android"
target_cpu = "arm"       # or "arm", "x86", or "x64"; see below

# Create an official release build. Only official builds should be distributed
# to users, as non-official builds are intended for development and may not
# be configured appropriately for production.
is_debug = false
is_official_build = true

# Use the default production settings for field trials, instead of the testing
# defaults.
disable_fieldtrial_testing_config = true

# WebView's efficient native library loading mechanism is not compatible with
# component builds of Chromium.
is_component_build = false

# Disable Google-specific branding/features
is_chrome_branded = false
use_official_google_api_keys = false

# May disable some experimental (unstable) features. Hides WebView DevTools
# (a debugging tool most users won't need to access).
android_channel = "stable"
chrome_pgo_phase = 0

proprietary_codecs = true
ffmpeg_branding = "Chrome"

symbol_level = 0
system_webview_package_name = "com.google.android.webview.canary"

mars pluto

unread,
May 20, 2024, 2:36:31 PMMay 20
to Chromium-discuss, mars pluto
With the same gn parameters, the compiled SystemWebview is good. Only when TrichromeLibrary.apk is compiled will there be problems.
Reply all
Reply to author
Forward
0 new messages