How to contribute to the Flutter engine [Windows]
Writing this thing because its a pain setting up the repo + the docs are outdated. Make sure that you don’t have any flutter executable in your PATH. Install python3 git depot\_tools Visual Studio 2017Windows 10 SDK` (required for non-Googlers only). Make sure to install the “Debugging Tools for Windows” feature. git clone https://github.com/flutter/flutter.git cd flutter git remote rename origin upstream Fork flutter and change the origin to your fork: git remote add origin git@github.com:\/flutter.git Add flutter/bin to PATH. make sure flutter is in your PATH where.exe flutter you'd might need to restart your terminal Setting up the engine development environment Add these to your env vars: DEPOT_TOOLS_WIN_TOOLCHAIN=0 GYP_MSVS_OVERRIDE_PATH=C:\Program Files\Microsoft Visual Studio\2022\Community (make sure the path is correct) cd flutter/engine cp .\scripts\standard.gclient .gclient Flutter has a tool for building the engine called et. Add it to PATH: C:\Users\temp\Desktop\flutter\engine\src\flutter\bin cd into flutter/engine and run et build to build the engine. (make sure et is in your PATH) Go make some ☕️
![How to contribute to the Flutter engine [Windows]](https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6l3gn3x9ffod81mk92vm.png)
Writing this thing because its a pain setting up the repo + the docs are outdated.
- Make sure that you don’t have any flutter executable in your PATH.
- Install python3
git
depot\_tools
Visual Studio 2017
Windows 10 SDK` (required for non-Googlers only). Make sure to install the “Debugging Tools for Windows” feature. - git clone https://github.com/flutter/flutter.git
-
cd flutter
-
git remote rename origin upstream
- Fork flutter and change the origin to your fork:
git remote add origin git@github.com:\
/flutter.git - Add flutter/bin to PATH.
- make sure flutter is in your PATH
where.exe flutter
you'd might need to restart your terminal
Setting up the engine development environment
- Add these to your env vars:
DEPOT_TOOLS_WIN_TOOLCHAIN=0
-
GYP_MSVS_OVERRIDE_PATH=C:\Program Files\Microsoft Visual Studio\2022\Community
(make sure the path is correct)
- cd flutter/engine
- cp
.\scripts\standard.gclient
.gclient
- Flutter has a tool for building the engine called
et
. Add it to PATH:C:\Users\temp\Desktop\flutter\engine\src\flutter\bin
- cd into
flutter/engine
and runet build
to build the engine. (make sureet
is in your PATH) - Go make some ☕️