Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
813 stars 105 forks source link

Add Chromium backend build instructions #1442

Closed svillar closed 5 months ago

svillar commented 5 months ago

As the README.md file is already way too crowded we've decided to add them in a separate file at least until we don't reorganize the documentation.

Fixes #1437

felipeerias commented 5 months ago

I tried the instructions to compile Chromium from scratch and they were very incomplete. Perhaps we are better off telling people to follow the official guide to compile Chromium and then add our fork.

svillar commented 5 months ago

I tried the instructions to compile Chromium from scratch and they were very incomplete. Perhaps we are better off telling people to follow the official guide to compile Chromium and then add our fork.

Agree I totally forgot to add a link to the chromium official build instructions

felipeerias commented 5 months ago

The following sequence worked for me with a fresh install of Chromium.

Reference: https://chromium.googlesource.com/chromium/src/+/main/docs/linux/build_instructions.md

solutions = [
  {
    "name": "src",
    "url": "https://chromium.googlesource.com/chromium/src.git",
    "managed": False,
    "custom_deps": {},
    "custom_vars": {
      "checkout_pgo_profiles": True, 
    },
  },
]
target_os = ["android"]
target_os = "android"
target_cpu = "arm64"
is_official_build = true
ffmpeg_branding="Chrome"
proprietary_codecs=true

After the compilation has finished successfully, continue with the steps to integrate the libraries into Wolvic.

chromium_aar=<LOCATION OF AAR FILES>
felipeerias commented 5 months ago

@svillar I have added a commit with more details about the process of downloading and building Chromium from scratch.