Skip to content

Development

Chance Snow edited this page Sep 25, 2024 · 3 revisions

Compiling the Flutter engine for a new platform requires an exorbitant amount of disk space.

Dependencies

  • .envrc, i.e. direnv
  • sudo apt-get install build-essential

Note: In GitHub Codespaces:

  1. Install Linux Brew
  2. brew install direnv
  3. Ensure the Brew and direnv shell hooks are installed, i.e. added to ~/.bashrc:
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
eval "$(direnv hook bash)"

Compiling Flutter Engine

  1. Install depot_tools

    For best results, cp example.envrc .envrc and ensure depo_tools is added to the path.

  2. Download Flutter engine sources, assuming depot_tools is available on the path:

  • fetch flutter
  • git -C src/flutter remote rename origin upstream
  • gclient sync

Resources

Clone this wiki locally