Automate flutter engine build on ubuntu like distro.
Install Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt-get update
sudo apt install -y docker-ce
sudo usermod -aG docker ${USER}
su - ${USER}
build the docker image
make docker-image
start the container
make start
clone the flutter engine
# edit the makefile to clone the repository and the branch you want
make clone-engine
build the engine
make build-engine
copy the compiled engine
make copy-binaries
stop the container
make stop
use myflutter.py to use the compiled engine
python myflutter.py doctor
mkdir projects
cd projects
../myflutter.py create -t plugin --platforms=linux testapp
cd testapp/example
../../../myflutter.py run -d linux