Home | History | Annotate | Download | only in chromium-webview
      1 Building the Chromium-based WebView in AOSP is no longer supported. WebView can
      2 now be built entirely from the Chromium source code.
      3 
      4 General instructions for building WebView from Chromium:
      5 https://www.chromium.org/developers/how-tos/build-instructions-android-webview
      6 
      7 For questions about building WebView, please see
      8 https://groups.google.com/a/chromium.org/forum/#!forum/android-webview-dev
      9 
     10 ------
     11 
     12 The prebuilt APKs here are built from Chromium upstream sources; check the
     13 commit messages to see the version number for a particular prebuilt (the version
     14 number looks like 74.0.3729.127 and this is also the name of the tag in the
     15 Chromium git repository).
     16 
     17 If you want to build your own WebView, you should build the latest stable
     18 version, not the version published here: newer versions have important security
     19 and stability improvements.
     20 
     21 However, if you want to reproduce the native library (libwebviewchromium.so)
     22 contained in these prebuilt APKs, you should be able to do so with the following
     23 GN arguments:
     24 
     25 target_os = "android"
     26 is_debug = false
     27 is_component_build = false
     28 is_official_build = true
     29 is_chrome_branded = false
     30 use_official_google_api_keys = false
     31 exclude_unwind_tables = true
     32 ffmpeg_branding = "Chrome"
     33 proprietary_codecs = true
     34 enable_remoting = true
     35 
     36 as well as specifying the appropriate target_cpu, which should be one of
     37 "arm", "arm64", "x86" or "x64".
     38 
     39 To build a complete WebView APK it is necessary to also set android_sdk_release
     40 to the current Android SDK version (for example, "q"). However, it's not always
     41 possible to do this successfully for all public Chromium versions: we are not
     42 able to publish the required Java code changes to support a given Android
     43 version until after that Android version's SDK has been publicly released, and
     44 so the public versions of Chromium do not always support the latest version of
     45 Android.
     46